F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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();
   ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-22 22:39:20, Gzip enabled