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++) {
^
|