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_38823829_5209.cpp: In function 'int main()':
0_0_38823829_5209.cpp:37:45: error: 'amp' was not declared in this scope
   37 |                         else if(str[i]=='t'&&str[i+1]=='w')
      |                                             ^~~
0_0_38823829_5209.cpp:37:53: error: expected ')' before ';' token
   37 |                         else if(str[i]=='t'&&str[i+1]=='w')
      |                                ~                    ^
      |                                                     )
0_0_38823829_5209.cpp:37:67: error: expected ';' before ')' token
   37 |                         else if(str[i]=='t'&&str[i+1]=='w')
      |                                                                   ^
      |                                                                   ;
0_0_38823829_5209.cpp:42:25: error: 'else' without a previous 'if'
   42 |                         else if(str[i]=='t'&&str[i+1]=='h')
      |                         ^~~~
0_0_38823829_5209.cpp:42:45: error: 'amp' was not declared in this scope
   42 |                         else if(str[i]=='t'&&str[i+1]=='h')
      |                                             ^~~
0_0_38823829_5209.cpp:42:53: error: expected ')' before ';' token
   42 |                         else if(str[i]=='t'&&str[i+1]=='h')
      |                                ~                    ^
      |                                                     )
0_0_38823829_5209.cpp:42:67: error: expected ';' before ')' token
   42 |                         else if(str[i]=='t'&&str[i+1]=='h')
      |                                                                   ^
      |                                                                   ;
0_0_38823829_5209.cpp:47:25: error: 'else' without a previous 'if'
   47 |                         else if(str[i]=='f'&&str[i+1]=='o')
      |                         ^~~~
0_0_38823829_5209.cpp:47:45: error: 'amp' was not declared in this scope
   47 |                         else if(str[i]=='f'&&str[i+1]=='o')
      |                                             ^~~
0_0_38823829_5209.cpp:47:53: error: expected ')' before ';' token
   47 |                         else if(str[i]=='f'&&str[i+1]=='o')
      |                                ~                    ^
      |                                                     )
0_0_38823829_5209.cpp:47:67: error: expected ';' before ')' token
   47 |                         else if(str[i]=='f'&&str[i+1]=='o')
      |                                                                   ^
      |                                                                   ;
0_0_38823829_5209.cpp:52:25: error: 'else' without a previous 'if'
   52 |                         else if(str[i]=='f'&&str[i+1]=='i')
      |                         ^~~~
0_0_38823829_5209.cpp:52:45: error: 'amp' was not declared in this scope
   52 |                         else if(str[i]=='f'&&str[i+1]=='i')
      |                                             ^~~
0_0_38823829_5209.cpp:52:53: error: expected ')' before ';' token
   52 |                         else if(str[i]=='f'&&str[i+1]=='i')
      |                                ~                    ^
      |                                                     )
0_0_38823829_5209.cpp:52:67: error: expected ';' before ')' token
   52 |                         else if(str[i]=='f'&&str[i+1]=='i')
      |                                                                   ^
      |                                                                   ;
0_0_38823829_5209.cpp:57:25: error: 'else' without a previous 'if'
   57 |                         else if(str[i]=='s'&&str[i+1]=='i')
      |                         ^~~~
0_0_38823829_5209.cpp:57:45: error: 'amp' was not declared in this scope
   57 |                         else if(str[i]=='s'&&str[i+1]=='i')
      |                                             ^~~
0_0_38823829_5209.cpp:57:53: error: expected ')' before ';' token
   57 |                         else if(str[i]=='s'&&str[i+1]=='i')
      |                                ~                    ^
      |                                                     )
0_0_38823829_5209.cpp:57:67: error: expected ';' before ')' token
   57 |                         else if(str[i]=='s'&&str[i+1]=='i')
      |                                                                   ^
      |                                                                   ;
0_0_38823829_5209.cpp:62:25: error: 'else' without a previous 'if'
   62 |                         else if(str[i]=='s'&&str[i+1]=='e')
      |                         ^~~~
0_0_38823829_5209.cpp:62:45: error: 'amp' was not declared in this scope
   62 |                         else if(str[i]=='s'&&str[i+1]=='e')
      |                                             ^~~
0_0_38823829_5209.cpp:62:53: error: expected ')' before ';' token
   62 |                         else if(str[i]=='s'&&str[i+1]=='e')
      |                                ~                    ^
      |                                                     )
0_0_38823829_5209.cpp:62:67: error: expected ';' before ')' token
   62 |                         else if(str[i]=='s'&&str[i+1]=='e')
      |                                                                   ^
      |                                                                   ;
0_0_38823829_5209.cpp:67:25: error: 'else' without a previous 'if'
   67 |                         else if(str[i]=='e')
      |                         ^~~~
0_0_38823829_5209.cpp:80:30: error: 'amp' was not declared in this scope
   80 |                 if(num[0]==0&&num[1]==0) break;
      |                              ^~~
0_0_38823829_5209.cpp:80:38: error: expected ')' before ';' token
   80 |                 if(num[0]==0&&num[1]==0) break;
      |                   ~                  ^
      |                                      )
0_0_38823829_5209.cpp:80:48: error: expected ';' before ')' token
   80 |                 if(num[0]==0&&num[1]==0) break;
      |                                                ^
      |                                                ;


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-11-26 18:16:46, Gzip enabled