0_0_36356466_9378.cpp: In function 'int main()':
0_0_36356466_9378.cpp:5:2: error: 'string' was not declared in this scope
string s1;
^
0_0_36356466_9378.cpp:6:2: error: 'map' was not declared in this scope
map<string, int> Fmap;
^
0_0_36356466_9378.cpp:6:14: error: expected primary-expression before 'int'
map<string, int> Fmap;
^
0_0_36356466_9378.cpp:7:9: error: 'cin' was not declared in this scope
while (cin>>n) {
^
0_0_36356466_9378.cpp:9:11: error: 's1' was not declared in this scope
cin >> s1;
^
0_0_36356466_9378.cpp:10:6: error: 'Fmap' was not declared in this scope
++Fmap[s1];
^
0_0_36356466_9378.cpp:13:15: error: expected primary-expression before 'int'
map<string, int>::iterator iter;
^
0_0_36356466_9378.cpp:14:15: error: expected primary-expression before 'int'
map<string, int>::iterator maxIter;
^
0_0_36356466_9378.cpp:16:8: error: 'iter' was not declared in this scope
for (iter = Fmap.begin(); iter != Fmap.end(); iter++) {
^
0_0_36356466_9378.cpp:16:15: error: 'Fmap' was not declared in this scope
for (iter = Fmap.begin(); iter != Fmap.end(); iter++) {
^
0_0_36356466_9378.cpp:20:5: error: 'maxIter' was not declared in this scope
maxIter = iter;
^
0_0_36356466_9378.cpp:23:3: error: 'cout' was not declared in this scope
cout << maxIter->first << endl;
^
0_0_36356466_9378.cpp:23:11: error: 'maxIter' was not declared in this scope
cout << maxIter->first << endl;
^
0_0_36356466_9378.cpp:23:29: error: 'endl' was not declared in this scope
cout << maxIter->first << endl;
^
0_0_36356466_9378.cpp:24:3: error: 'Fmap' was not declared in this scope
Fmap.clear();
^
|