/in/foo.cc: In function 'int main()':
/in/foo.cc:20:5: error: 'unordered_map' was not declared in this scope
unordered_map<int, int> countMap;
^~~~~~~~~~~~~
/in/foo.cc:20:19: error: expected primary-expression before 'int'
unordered_map<int, int> countMap;
^~~
/in/foo.cc:26:30: error: 'countMap' was not declared in this scope
for (const auto& p : countMap) {
^~~~~~~~
/in/foo.cc:34:13: error: 'countMap' was not declared in this scope
countMap[vec[i][0]]++;
^~~~~~~~
/in/foo.cc:36:13: error: 'countMap' was not declared in this scope
countMap[vec[i][0]] = 1;
^~~~~~~~
/in/foo.cc:42:26: error: 'countMap' was not declared in this scope
for (const auto& p : countMap) {
^~~~~~~~
/in/foo.cc: At global scope:
/in/foo.cc:53:5: error: 'cout' does not name a type
cout << twoChildrenFamiliesCount << endl;
^~~~
/in/foo.cc:55:5: error: expected unqualified-id before 'return'
return 0;
^~~~~~
/in/foo.cc:56:1: error: expected declaration before '}' token
}
^