/ Vijos /

记录详情

Compile Error

/in/foo.cc:137:2: error: stray '#' in program
 }#include<iostream>
  ^
/in/foo.cc:137:3: error: 'include' does not name a type
 }#include<iostream>
   ^~~~~~~
/in/foo.cc:144:8: error: redefinition of 'struct nod'
 struct nod
        ^~~
/in/foo.cc:8:8: error: previous definition of 'struct nod'
 struct nod
        ^~~
/in/foo.cc:154:5: error: redefinition of 'int n'
 int n,m;
     ^
/in/foo.cc:18:5: note: 'int n' previously declared here
 int n,m;
     ^
/in/foo.cc:154:7: error: redefinition of 'int m'
 int n,m;
       ^
/in/foo.cc:18:7: note: 'int m' previously declared here
 int n,m;
       ^
/in/foo.cc:155:5: error: redefinition of 'int cnt'
 int cnt=0;
     ^~~
/in/foo.cc:19:5: note: 'int cnt' previously defined here
 int cnt=0;
     ^~~
/in/foo.cc:156:21: error: redefinition of 'std::vector<nod> edge [200005]'
 vector<nod>edge[maxn];
                     ^
/in/foo.cc:20:12: note: 'std::vector<nod> edge [200005]' previously declared here
 vector<nod>edge[maxn];
            ^~~~
/in/foo.cc:157:17: error: redefinition of 'int anc [200005][26]'
 int anc[maxn][26],maxx[maxn][26];
                 ^
/in/foo.cc:21:5: note: 'int anc [200005][26]' previously declared here
 int anc[maxn][26],maxx[maxn][26];
     ^~~
/in/foo.cc:157:32: error: redefinition of 'int maxx [200005][26]'
 int anc[maxn][26],maxx[maxn][26];
                                ^
/in/foo.cc:21:19: note: 'int maxx [200005][26]' previously declared here
 int anc[maxn][26],maxx[maxn][26];
                   ^~~~
/in/foo.cc:158:13: error: redefinition of 'int vis [200005]'
 int vis[maxn],dep[maxn];
             ^
/in/foo.cc:22:5: note: 'int vis [200005]' previously declared here
 int vis[maxn],dep[maxn];
     ^~~
/in/foo.cc:158:23: error: redefinition of 'int dep [200005]'
 int vis[maxn],dep[maxn];
                       ^
/in/foo.cc:22:15: note: 'int dep [200005]' previously declared here
 int vis[maxn],dep[maxn];
               ^~~
/in/foo.cc:160:12: error: redefinition of 'int fa [200005]'
 int fa[maxn];
            ^
/in/foo.cc:24:5: note: 'int fa [200005]' previously declared here
 int fa[maxn];
     ^~
/in/foo.cc:161:11: error: redefinition of 'int u [200005]'
 int u[maxn],e[maxn],w[maxn],temp[maxn];
           ^
/in/foo.cc:25:5: note: 'int u [200005]' previously declared here
 int u[maxn],e[maxn],w[maxn],temp[maxn];
     ^
/in/foo.cc:161:19: error: redefinition of 'int e [200005]'
 int u[maxn],e[maxn],w[maxn],temp[maxn];
                   ^
/in/foo.cc:25:13: note: 'int e [200005]' previously declared here
 int u[maxn],e[maxn],w[maxn],temp[maxn];
             ^
/in/foo.cc:161:27: error: redefinition of 'int w [200005]'
 int u[maxn],e[maxn],w[maxn],temp[maxn];
                           ^
/in/foo.cc:25:21: note: 'int w [200005]' previously declared here
 int u[maxn],e[maxn],w[maxn],temp[maxn];
                     ^
/in/foo.cc:161:38: error: redefinition of 'int temp [200005]'
 int u[maxn],e[maxn],w[maxn],temp[maxn];
                                      ^
/in/foo.cc:25:29: note: 'int temp [200005]' previously declared here
 int u[maxn],e[maxn],w[maxn],temp[maxn];
                             ^~~~
/in/foo.cc: In function 'int cmp(int, int)':
/in/foo.cc:162:5: error: redefinition of 'int cmp(int, int)'
 int cmp(int i,int j)
     ^~~
/in/foo.cc:26:5: note: 'int cmp(int, int)' previously defined here
 int cmp(int i,int j)
     ^~~
/in/foo.cc: In function 'int getfa(int)':
/in/foo.cc:166:5: error: redefinition of 'int getfa(int)'
 int getfa(int now)
     ^~~~~
/in/foo.cc:30:5: note: 'int getfa(int)' previously defined here
 int getfa(int now)
     ^~~~~
/in/foo.cc: In function 'int kruskal()':
/in/foo.cc:170:5: error: redefinition of 'int kruskal()'
 int kruskal()
     ^~~~~~~
/in/foo.cc:34:5: note: 'int kruskal()' previously defined here
 int kruskal()
     ^~~~~~~
/in/foo.cc: In function 'void dfs(int, int)':
/in/foo.cc:194:6: error: redefinition of 'void dfs(int, int)'
 void dfs(int now,int pa)
      ^~~
/in/foo.cc:58:6: note: 'void dfs(int, int)' previously defined here
 void dfs(int now,int pa)
      ^~~
/in/foo.cc: In function 'int lca(int, int)':
/in/foo.cc:215:5: error: redefinition of 'int lca(int, int)'
 int lca(int p,int q)
     ^~~
/in/foo.cc:79:5: note: 'int lca(int, int)' previously defined here
 int lca(int p,int q)
     ^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:242:5: error: redefinition of 'int main()'
 int main()
     ^~~~
/in/foo.cc:106:5: note: 'int main()' previously defined here
 int main()
     ^~~~

信息

递交者
类型
递交
题目
P1070 新年趣事之游戏
语言
C++
递交时间
2017-12-19 17:03:53
评测时间
2017-12-19 17:03:53
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes