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_18725726_30693.cpp: In function 'int main(int, char**)':
0_0_18725726_30693.cpp:9:5: error: 'else' without a previous 'if'
     else
     ^
0_0_18725726_30693.cpp:10:15: error: 'a' was not declared in this scope
     if(strcmp(a,"END")==0)cout<<b<<endl;
               ^
0_0_18725726_30693.cpp:10:33: error: 'b' was not declared in this scope
     if(strcmp(a,"END")==0)cout<<b<<endl;
                                 ^
0_0_18725726_30693.cpp:12:34: error: break statement not within loop or switch
     if(strcmp(a,"ENDOFINPUT")==0)break;
                                  ^
0_0_18725726_30693.cpp:21:16: error: 'b' was not declared in this scope
                b[i]=(a[i]-5);
                ^
0_0_18725726_30693.cpp:23:16: error: 'b' was not declared in this scope
                b[i]=a[i]+21;                       
                ^
0_0_18725726_30693.cpp:26:15: error: 'b' was not declared in this scope
               b[i]=a[i]; 
               ^
0_0_18725726_30693.cpp: At global scope:
0_0_18725726_30693.cpp:33:5: error: expected unqualified-id before 'return'
     return EXIT_SUCCESS;
     ^
0_0_18725726_30693.cpp:34:1: error: expected declaration before '}' token
 }
 ^


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-01 19:44:44, Gzip enabled