记录详情

Compile Error

/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));
            ^~~~~~~~

信息

递交者
类型
递交
题目
P1071 拉力赛
语言
C++
递交时间
2021-01-24 10:44:07
评测时间
2021-01-24 10:44:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes