0_0_25257802_12890.cpp:106:11: error: redefinition of 'const int N'
const int N=1e5+10;
^
0_0_25257802_12890.cpp:4:11: note: 'const int N' previously defined here
const int N=1e5+10;
^
0_0_25257802_12890.cpp:107:16: error: redefinition of 'std::vector<int> g [100010]'
vector<int> g[N];
^
0_0_25257802_12890.cpp:5:13: note: 'std::vector<int> g [100010]' previously declared here
vector<int> g[N];
^
0_0_25257802_12890.cpp:108:10: error: redefinition of 'int num [100010]'
int num[N],nu,pri[100],ans[N],val[N];
^
0_0_25257802_12890.cpp:6:5: note: 'int num [100010]' previously declared here
int num[N],nu,pri[100],ans[N],val[N];
^
0_0_25257802_12890.cpp:108:12: error: redefinition of 'int nu'
int num[N],nu,pri[100],ans[N],val[N];
^
0_0_25257802_12890.cpp:6:12: note: 'int nu' previously declared here
int num[N],nu,pri[100],ans[N],val[N];
^
0_0_25257802_12890.cpp:108:22: error: redefinition of 'int pri [100]'
int num[N],nu,pri[100],ans[N],val[N];
^
0_0_25257802_12890.cpp:6:15: note: 'int pri [100]' previously declared here
int num[N],nu,pri[100],ans[N],val[N];
^
0_0_25257802_12890.cpp:108:29: error: redefinition of 'int ans [100010]'
int num[N],nu,pri[100],ans[N],val[N];
^
0_0_25257802_12890.cpp:6:24: note: 'int ans [100010]' previously declared here
int num[N],nu,pri[100],ans[N],val[N];
^
0_0_25257802_12890.cpp:108:36: error: redefinition of 'int val [100010]'
int num[N],nu,pri[100],ans[N],val[N];
^
0_0_25257802_12890.cpp:6:31: note: 'int val [100010]' previously declared here
int num[N],nu,pri[100],ans[N],val[N];
^
0_0_25257802_12890.cpp: In function 'int solve(int)':
0_0_25257802_12890.cpp:109:5: error: redefinition of 'int solve(int)'
int solve(int r)
^
0_0_25257802_12890.cpp:7:5: note: 'int solve(int)' previously defined here
int solve(int r)
^
0_0_25257802_12890.cpp: In function 'int dfs(int, int)':
0_0_25257802_12890.cpp:142:5: error: redefinition of 'int dfs(int, int)'
int dfs(int x,int fa)
^
0_0_25257802_12890.cpp:40:5: note: 'int dfs(int, int)' previously defined here
int dfs(int x,int fa)
^
0_0_25257802_12890.cpp: In function 'int main()':
0_0_25257802_12890.cpp:184:5: error: redefinition of 'int main()'
int main()
^
0_0_25257802_12890.cpp:82:5: note: 'int main()' previously defined here
int main()
^
|