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_31807514_4721.cpp: In function 'int main()':
0_0_31807514_4721.cpp:5:5: error: 'cin' was not declared in this scope
     cin>>n;
     ^
0_0_31807514_4721.cpp:6:5: error: 'string' was not declared in this scope
     string lne;
     ^
0_0_31807514_4721.cpp:7:18: error: 'lne' was not declared in this scope
     getline(cin, lne);
                  ^
0_0_31807514_4721.cpp:7:21: error: 'getline' was not declared in this scope
     getline(cin, lne);
                     ^
0_0_31807514_4721.cpp:10:35: error: 'memset' was not declared in this scope
         memset(cnt, 0, sizeof(cnt));
                                   ^
0_0_31807514_4721.cpp:11:9: error: 'stringstream' was not declared in this scope
         stringstream ss(lne);
         ^
0_0_31807514_4721.cpp:12:16: error: expected ';' before 'word'
         string word;
                ^
0_0_31807514_4721.cpp:13:15: error: 'ss' was not declared in this scope
         while(ss>>word){
               ^
0_0_31807514_4721.cpp:13:19: error: 'word' was not declared in this scope
         while(ss>>word){
                   ^
0_0_31807514_4721.cpp:18:9: error: 'cout' was not declared in this scope
         cout<<"a:"<<cnt['a']<<endl;
         ^
0_0_31807514_4721.cpp:18:31: error: 'endl' was not declared in this scope
         cout<<"a:"<<cnt['a']<<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-07-06 01:54:55, Gzip enabled