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_28760145_5153.cpp: In function 'int main()':
0_0_28760145_5153.cpp:17:8: error: 'cin' was not declared in this scope
  while(cin>>p)
        ^
0_0_28760145_5153.cpp:19:23: error: 'memset' was not declared in this scope
   memset(a,0,sizeof(a));
                       ^
0_0_28760145_5153.cpp:43:7: error: 'cout' was not declared in this scope
  else cout<<endl;//输出格式
       ^
0_0_28760145_5153.cpp:43:13: error: 'endl' was not declared in this scope
  else cout<<endl;//输出格式
             ^
0_0_28760145_5153.cpp:47:12: error: 'cout' was not declared in this scope
   if(g==1) cout<<a[i],g=2;
            ^
0_0_28760145_5153.cpp:48:8: error: 'cout' was not declared in this scope
   else cout<<" "<<a[i];
        ^


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-03 15:32:54, Gzip enabled