foo.cc:13:31: error: expected primary-expression before ',' token
int visited[MAXS],leave[MAXS]=,head[MAXS]=,dis[MAXS]=,indegree[MAXS];
^
foo.cc: In function 'void DFS(int, int)':
foo.cc:17:2: error: 'dis' was not declared in this scope
dis[u]=time;
^~~
foo.cc:17:2: note: suggested alternative: 'div'
dis[u]=time;
^~~
div
foo.cc:18:12: error: 'head' was not declared in this scope
for(int i=head[u];i;i=edge[i].F)
^~~~
foo.cc:18:12: note: suggested alternative: 'fread'
for(int i=head[u];i;i=edge[i].F)
^~~~
fread
foo.cc: In function 'int main()':
foo.cc:27:9: error: 'head' was not declared in this scope
memset(head,0,sizeof(head));
^~~~
foo.cc:27:9: note: suggested alternative: 'fread'
memset(head,0,sizeof(head));
^~~~
fread
foo.cc:30:12: error: 'dis' was not declared in this scope
memset(dis,0,sizeof(dis));
^~~
foo.cc:30:12: note: suggested alternative: 'div'
memset(dis,0,sizeof(dis));
^~~
div
foo.cc:31:12: error: 'indegree' was not declared in this scope
memset(indegree,0,sizeof(indegree));
^~~~~~~~
foo.cc:31:12: note: suggested alternative: 'index'
memset(indegree,0,sizeof(indegree));
^~~~~~~~
index