#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; } } cout << "Number of golfers: " << golfer.size() << endl; cout << "Tiger Woods' Score: " << golfer["Tiger Woods"] << endl; cout << "Jack Nicklaus' Score: " << golfer["Jack Nicklaus"] << endl; cout << "Number of golfers: " << golfer.size() << endl; }