#include #include using namespace std; int main() { // Goal: Determine unique words in a file and their // counts string value; map myMap; // map where key,value is string and int for (int i = 0; i < 10; i++) { cin >> value; myMap[value]++; // note operator[] works; if value is not in the map // this version of the compiler initializes it to zero } // cout << myMap.count() << endl; cout << myMap.size() << endl; }