find and print certain value using key in map c++ code example
Example: prints all the keys and values in a map c++
for (auto x : m) {
cout << x.first << " " << x.second << "\n";
}
for (auto x : m) {
cout << x.first << " " << x.second << "\n";
}