for (auto it = mymap.rbegin(); it != mymap.rend(); it++) { cout << "(" << it->first << ", " << it->second << ")" << endl;