/ XMU_ACM /

记录详情

Compile Error

/in/foo.cc:26:14: error: 'M' was not declared in this scope
 int hd[N],to[M],nxt[M],tot;
              ^
/in/foo.cc:26:21: error: 'M' was not declared in this scope
 int hd[N],to[M],nxt[M],tot;
                     ^
/in/foo.cc: In function 'void add(int, int)':
/in/foo.cc:27:31: error: 'to' was not declared in this scope
 inline void add(int u,int v) {to[++tot] = v;nxt[tot] = hd[u];hd[u] = tot;}
                               ^~
/in/foo.cc:27:45: error: 'nxt' was not declared in this scope
 inline void add(int u,int v) {to[++tot] = v;nxt[tot] = hd[u];hd[u] = tot;}
                                             ^~~
/in/foo.cc: In function 'bool dfs(int)':
/in/foo.cc:31:30: error: 'nxt' was not declared in this scope
     for (int i = hd[x];i;i = nxt[i]) if (dfs(to[i])) return false;
                              ^~~
/in/foo.cc:31:46: error: 'to' was not declared in this scope
     for (int i = hd[x];i;i = nxt[i]) if (dfs(to[i])) return false;
                                              ^~

信息

递交者
类型
自测
题目
P1062 游戏
语言
C++
递交时间
2020-12-20 21:32:51
评测时间
2020-12-20 21:32:51
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes