Home STD Contest Notification Clarification Problems Ranklist Status Print Sign Out

View Compilation Error

1_867_4658_1752.cpp: In function 'int main()':
1_867_4658_1752.cpp:98:21: error: expected ')' before 'ans'
                     ans[i]=temp-cnt; 
                     ^
1_867_4658_1752.cpp:101:17: error: expected '}' before 'else'
                 else{                
                 ^
1_867_4658_1752.cpp:103:21: error: 'cnt' was not declared in this scope
                     cnt=(cnt+vis[i])*2
                     ^
1_867_4658_1752.cpp:103:34: error: 'i' was not declared in this scope
                     cnt=(cnt+vis[i])*2
                                  ^
1_867_4658_1752.cpp:111:27: error: 'n' was not declared in this scope
             for(int i=0;i<n;i++){
                           ^
1_867_4658_1752.cpp: At global scope:
1_867_4658_1752.cpp:134:9: error: expected unqualified-id before 'else'
         else printf("Case %d: NO\n",t++);
         ^
1_867_4658_1752.cpp:136:5: 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-11-24 21:04:55, Gzip enabled