记录详情

Compile Error

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

信息

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