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_14056985_30458.cpp: In function 'bool solve()':
0_0_14056985_30458.cpp:18:31: error: expected ';' before '}' token
             if(s[i]=='w') {p=1} else if(s[i]=='v'){if(ok=1) p=1; else ok=1};
                               ^
0_0_14056985_30458.cpp:18:75: error: expected ';' before '}' token
             if(s[i]=='w') {p=1} else if(s[i]=='v'){if(ok=1) p=1; else ok=1};
                                                                           ^
0_0_14056985_30458.cpp:19:13: error: expected '}' before 'else'
             else ok=0;
             ^
0_0_14056985_30458.cpp:21:23: error: 'i' was not declared in this scope
         if(p==1) if(s[i]=='y') p=2;
                       ^
0_0_14056985_30458.cpp:22:23: error: 'i' was not declared in this scope
         if(p==2) if(s[i]=='h') return true;
                       ^
0_0_14056985_30458.cpp: At global scope:
0_0_14056985_30458.cpp:24:5: error: expected unqualified-id before 'return'
     return false;
     ^
0_0_14056985_30458.cpp:25: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-04 18:26:03, Gzip enabled