0_0_37249739_29513.cpp:86:2: error: stray '#' in program
}#include <bits/stdc++.h>
^
0_0_37249739_29513.cpp:86:3: error: 'include' does not name a type
}#include <bits/stdc++.h>
^
0_0_37249739_29513.cpp:88:11: error: redefinition of 'const int N'
const int N = 5e5 + 5;
^
0_0_37249739_29513.cpp:3:11: note: 'const int N' previously defined here
const int N = 5e5 + 5;
^
0_0_37249739_29513.cpp:90:9: error: redefinition of 'struct node'
struct node
^
0_0_37249739_29513.cpp:5:9: error: previous definition of 'struct node'
struct node
^
0_0_37249739_29513.cpp:96:18: error: redefinition of 'std::vector<node> vt [500005]'
vector<node> vt[N];
^
0_0_37249739_29513.cpp:11:14: note: 'std::vector<node> vt [500005]' previously declared here
vector<node> vt[N];
^
0_0_37249739_29513.cpp:97:12: error: redefinition of 'int depth [500005]'
int depth[N];
^
0_0_37249739_29513.cpp:12:5: note: 'int depth [500005]' previously declared here
int depth[N];
^
0_0_37249739_29513.cpp:98:9: error: redefinition of 'int lg [500005]'
int lg[N];
^
0_0_37249739_29513.cpp:13:5: note: 'int lg [500005]' previously declared here
int lg[N];
^
0_0_37249739_29513.cpp:99:13: error: redefinition of 'int fa [500005][25]'
int fa[N][25]; //f[i][j]表示距离节点2的j次方的祖先
^
0_0_37249739_29513.cpp:14:5: note: 'int fa [500005][25]' previously declared here
int fa[N][25]; //f[i][j]表示距离节点2的j次方的祖先
^
0_0_37249739_29513.cpp:100:11: error: redefinition of 'bool vis [500005]'
bool vis[N];
^
0_0_37249739_29513.cpp:15:6: note: 'bool vis [500005]' previously declared here
bool vis[N];
^
0_0_37249739_29513.cpp: In function 'void caldepth(int, int)':
0_0_37249739_29513.cpp:101:6: error: redefinition of 'void caldepth(int, int)'
void caldepth(int fath, int now)
^
0_0_37249739_29513.cpp:16:6: note: 'void caldepth(int, int)' previously defined here
void caldepth(int fath, int now)
^
0_0_37249739_29513.cpp: In function 'int LCA(int, int)':
0_0_37249739_29513.cpp:117:5: error: redefinition of 'int LCA(int, int)'
int LCA(int x, int y)
^
0_0_37249739_29513.cpp:32:5: note: 'int LCA(int, int)' previously defined here
int LCA(int x, int y)
^
0_0_37249739_29513.cpp: At global scope:
0_0_37249739_29513.cpp:139:5: error: redefinition of 'int n'
int n, s, q;
^
0_0_37249739_29513.cpp:54:5: note: 'int n' previously declared here
int n, s, q;
^
0_0_37249739_29513.cpp:139:8: error: redefinition of 'int s'
int n, s, q;
^
0_0_37249739_29513.cpp:54:8: note: 'int s' previously declared here
int n, s, q;
^
0_0_37249739_29513.cpp:139:11: error: redefinition of 'int q'
int n, s, q;
^
0_0_37249739_29513.cpp:54:11: note: 'int q' previously declared here
int n, s, q;
^
0_0_37249739_29513.cpp: In function 'int main()':
0_0_37249739_29513.cpp:140:5: error: redefinition of 'int main()'
int main()
^
0_0_37249739_29513.cpp:55:5: note: 'int main()' previously defined here
int main()
^
|