0_0_17503294_31977.cpp:8:10: error: 'maxn' was not declared in this scope
int head[maxn];
^
0_0_17503294_31977.cpp:9:9: error: 'maxn' was not declared in this scope
int vis[maxn];
^
0_0_17503294_31977.cpp:18:4: error: 'maxn' was not declared in this scope
}a[maxn];
^
0_0_17503294_31977.cpp:19:8: error: 'maxn' was not declared in this scope
int in[maxn],out[maxn];
^
0_0_17503294_31977.cpp:19:18: error: 'maxn' was not declared in this scope
int in[maxn],out[maxn];
^
0_0_17503294_31977.cpp: In function 'void addedge(int, int, int)':
0_0_17503294_31977.cpp:23:2: error: 'a' was not declared in this scope
a[cnt].id=w;
^
0_0_17503294_31977.cpp:25:14: error: 'head' was not declared in this scope
a[cnt].next=head[u];
^
0_0_17503294_31977.cpp: In function 'void dfs(int)':
0_0_17503294_31977.cpp:33:13: error: 'head' was not declared in this scope
for (int d=head[u];d!=-1;d=a[d].next)
^
0_0_17503294_31977.cpp:33:29: error: 'a' was not declared in this scope
for (int d=head[u];d!=-1;d=a[d].next)
^
0_0_17503294_31977.cpp:36:7: error: 'vis' was not declared in this scope
if (vis[a[d].id]==1) continue;
^
0_0_17503294_31977.cpp:38:8: error: 'in' was not declared in this scope
if (in[u]>=out[u])
^
0_0_17503294_31977.cpp:38:15: error: 'out' was not declared in this scope
if (in[u]>=out[u])
^
0_0_17503294_31977.cpp:40:4: error: 'vis' was not declared in this scope
vis[a[d].id]=1;
^
0_0_17503294_31977.cpp:48:4: error: 'vis' was not declared in this scope
vis[a[d].id]=1;
^
0_0_17503294_31977.cpp: In function 'int main()':
0_0_17503294_31977.cpp:66:10: error: 'head' was not declared in this scope
memset(head,-1,sizeof(head));
^
0_0_17503294_31977.cpp:67:10: error: 'a' was not declared in this scope
memset(a,0,sizeof(a));
^
0_0_17503294_31977.cpp:68:10: error: 'vis' was not declared in this scope
memset(vis,0,sizeof(vis));
^
0_0_17503294_31977.cpp:69:10: error: 'in' was not declared in this scope
memset(in,0,sizeof(in));
^
0_0_17503294_31977.cpp:70:10: error: 'out' was not declared in this scope
memset(out,0,sizeof(out));
^
|