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_38656299_3097.cpp:7:16: error: expected ';' at end of member declaration
 struct A{int e,nxt} e[N];
                ^~~
                   ;
0_0_38656299_3097.cpp: In function 'void add(int, int)':
0_0_38656299_3097.cpp:9:27: error: 'cnt' was not declared in this scope
 void add(int x,int y){e[++cnt]={t,head[x]}; head[x]=cnt;}
                           ^~~
0_0_38656299_3097.cpp:9:27: note: suggested alternative: 'int'
 void add(int x,int y){e[++cnt]={t,head[x]}; head[x]=cnt;}
                           ^~~
                           int
0_0_38656299_3097.cpp:9:33: error: 't' was not declared in this scope
 void add(int x,int y){e[++cnt]={t,head[x]}; head[x]=cnt;}
                                 ^
0_0_38656299_3097.cpp: In function 'bool dfs(int)':
0_0_38656299_3097.cpp:15:48: error: 'struct A' has no member named 'to'
  for(int i=head[x];~i;i=e[i].nxt) if(!dfs(e[i].to)) return 0;
                                                ^~
0_0_38656299_3097.cpp: In function 'int main()':
0_0_38656299_3097.cpp:32:32: error: 'cnt' was not declared in this scope
   memset(head,-1,sizeof(head)),cnt=1
                                ^~~
0_0_38656299_3097.cpp:32:32: note: suggested alternative: 'int'
   memset(head,-1,sizeof(head)),cnt=1
                                ^~~
                                int
0_0_38656299_3097.cpp:33:16: error: 'i' was not declared in this scope
   for(int i=1; i<=m; i++) {
                ^


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-22 08:16:38, Gzip enabled