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