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_36997210_12404.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_36997210_12404.cpp:3:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_36997210_12404.cpp:5:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
0_0_36997210_12404.cpp: In function 'int main()':
0_0_36997210_12404.cpp:12:1: error: 'string' was not declared in this scope
 string strInput;
 ^
0_0_36997210_12404.cpp:14:7: error: 'cin' was not declared in this scope
 while(cin >> strInput)
       ^
0_0_36997210_12404.cpp:14:14: error: 'strInput' was not declared in this scope
 while(cin >> strInput)
              ^
0_0_36997210_12404.cpp:17:33: error: 'atoi' was not declared in this scope
 int iNum = atoi(strInput.c_str());
                                 ^
0_0_36997210_12404.cpp:19:1: error: 'map' was not declared in this scope
 map smap;
 ^
0_0_36997210_12404.cpp:21:8: error: expected ';' before 'maxColour'
 string maxColour;
        ^
0_0_36997210_12404.cpp:40:1: error: 'maxColour' was not declared in this scope
 maxColour = strInput;
 ^
0_0_36997210_12404.cpp:46:1: error: 'map' is not a class, namespace, or enumeration
 map::iterator ite = smap.find(strInput);
 ^
0_0_36997210_12404.cpp:48:4: error: 'ite' was not declared in this scope
 if(ite != smap.end())
    ^
0_0_36997210_12404.cpp:48:11: error: 'smap' was not declared in this scope
 if(ite != smap.end())
           ^
0_0_36997210_12404.cpp:62:5: error: 'map' is not a class, namespace, or enumeration
 for(map::iterator ite = smap.begin(); ite != smap.end(); ite++)
     ^
0_0_36997210_12404.cpp:62:39: error: 'ite' was not declared in this scope
 for(map::iterator ite = smap.begin(); ite != smap.end(); ite++)
                                       ^
0_0_36997210_12404.cpp:62:46: error: 'smap' was not declared in this scope
 for(map::iterator ite = smap.begin(); ite != smap.end(); ite++)
                                              ^
0_0_36997210_12404.cpp:68:1: error: 'maxColour' was not declared in this scope
 maxColour = ite->first;
 ^
0_0_36997210_12404.cpp:74:1: error: 'cout' was not declared in this scope
 cout << maxColour << endl;
 ^
0_0_36997210_12404.cpp:74:9: error: 'maxColour' was not declared in this scope
 cout << maxColour << endl;
         ^
0_0_36997210_12404.cpp:74:22: error: 'endl' was not declared in this scope
 cout << maxColour << endl;
                      ^


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-10-06 07:18:19, Gzip enabled