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_21432720_3839.cpp: In function 'int main()':
0_0_21432720_3839.cpp:42:5: error: 'res' was not declared in this scope
     res=i;
     ^
0_0_21432720_3839.cpp:44:6: error: 'res' was not declared in this scope
   if(res!=0)
      ^
0_0_21432720_3839.cpp:47:3: error: 'else' without a previous 'if'
   else if(cnt[2]+cnt[4]+cnt[6]>=2) cout<<"2"<<endl;;
   ^
0_0_21432720_3839.cpp:48:3: error: 'else' without a previous 'if'
   else cout<<"1"<<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-12-02 20:24:22, Gzip enabled