Medium
Erasing one key from a three-key map
What does this program print?
main.cpp
#include <iostream>
#include <map>
int main() {
std::map<int, int> m = {{1, 10}, {2, 20}, {3, 30}};
auto it1 = m.find(1);
auto it2 = m.find(2);
m.erase(it1);
std::cout << it2->second << std::endl;
}19 of 117 in C++