0_0_35106672_24896.cpp:6:1: error: expected ',' or ';' before 'int'
int sg[MAX];
^
0_0_35106672_24896.cpp: In function 'int SG_DFS(int)':
0_0_35106672_24896.cpp:18:5: error: 'sg' was not declared in this scope
if(sg[x]!=-1)
^
0_0_35106672_24896.cpp:27:7: error: 'sg' was not declared in this scope
vis[sg[u]]=1;
^
0_0_35106672_24896.cpp:31:4: error: 'sg' was not declared in this scope
sg[x]=i;
^
0_0_35106672_24896.cpp:35:9: error: 'sg' was not declared in this scope
return sg[x];
^
0_0_35106672_24896.cpp: At global scope:
0_0_35106672_24896.cpp:38:2: error: expected primary-expression before 'int'
int N;
^
0_0_35106672_24896.cpp:38:2: error: expected '}' before 'int'
0_0_35106672_24896.cpp:38:2: error: expected ',' or ';' before 'int'
0_0_35106672_24896.cpp:39:2: error: expected unqualified-id before 'while'
while(scanf("%d",&N)!=EOF){
^
|