#include #include using namespace std; main() { map golfer; map ::iterator git; int score; string name, s; while (!cin.fail()) { cin >> score >> name; if (!cin.fail()) { getline(cin, s); golfer[name+s] = score; } } for (git = golfer.begin(); git != golfer.end(); git++) { printf("%-30s %5d\n", git->first.c_str(), git->second); } }