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_25771350_9575.cpp: In function 'void judge()':
0_0_25771350_9575.cpp:21:21: error: 'i' was not declared in this scope
             if(edge[i].c[j]==ans[j]) c1++;
                     ^
0_0_25771350_9575.cpp:22:21: error: 'i' was not declared in this scope
         if(c1==edge[i].wei)
                     ^
0_0_25771350_9575.cpp: At global scope:
0_0_25771350_9575.cpp:34:5: error: expected unqualified-id before 'for'
     for(int i=0; i<4; ++i)
     ^
0_0_25771350_9575.cpp:34:18: error: 'i' does not name a type
     for(int i=0; i<4; ++i)
                  ^
0_0_25771350_9575.cpp:34:23: error: expected unqualified-id before '++' token
     for(int i=0; i<4; ++i)
                       ^
0_0_25771350_9575.cpp:36:5: error: 'sum' does not name a type
     sum++;
     ^
0_0_25771350_9575.cpp:37:5: error: expected unqualified-id before 'return'
     return;
     ^
0_0_25771350_9575.cpp:38: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-10-06 21:30:15, Gzip enabled