0_0_36873120_10883.cpp:161:5: error: redefinition of 'int n'
int n, m, cnt, f[MaxN], d[MaxN], size[MaxN], son[MaxN], rk[MaxN], top[MaxN], id[MaxN];
^
0_0_36873120_10883.cpp:9:13: note: 'int n' previously declared here
int ts = 1, n, q;
^
0_0_36873120_10883.cpp:161:54: error: conflicting declaration 'int son [100005]'
int n, m, cnt, f[MaxN], d[MaxN], size[MaxN], son[MaxN], rk[MaxN], top[MaxN], id[MaxN];
^
0_0_36873120_10883.cpp:17:35: note: previous declaration as 'int son [100007]'
int sz[N], fa[N], dep[N], dfn[N], son[N], rnk[N], top[N], tot = 0;
^
0_0_36873120_10883.cpp:161:75: error: conflicting declaration 'int top [100005]'
int n, m, cnt, f[MaxN], d[MaxN], size[MaxN], son[MaxN], rk[MaxN], top[MaxN], id[MaxN];
^
0_0_36873120_10883.cpp:17:51: note: previous declaration as 'int top [100007]'
int sz[N], fa[N], dep[N], dfn[N], son[N], rnk[N], top[N], tot = 0;
^
0_0_36873120_10883.cpp:163:17: error: conflicting declaration 'std::vector<long long int> G [100005]'
vector<ll>G[MaxN];
^
0_0_36873120_10883.cpp:16:11: note: previous declaration as 'std::vector<long long int> G [100007]'
vector<ll>G[N];
^
0_0_36873120_10883.cpp: In function 'void dfs1(int)':
0_0_36873120_10883.cpp:165:6: error: redefinition of 'void dfs1(int)'
void dfs1(int u) {
^
0_0_36873120_10883.cpp:19:6: note: 'void dfs1(int)' previously defined here
void dfs1(int u) {
^
0_0_36873120_10883.cpp: In function 'void dfs2(int, int)':
0_0_36873120_10883.cpp:176:6: error: redefinition of 'void dfs2(int, int)'
void dfs2(int u, int t) {
^
0_0_36873120_10883.cpp:30:6: note: 'void dfs2(int, int)' previously defined here
void dfs2(int u, int tp) {
^
0_0_36873120_10883.cpp: At global scope:
0_0_36873120_10883.cpp:187:15: error: conflicting declaration 'll a [400020]'
ll a[MaxN << 2];
^
0_0_36873120_10883.cpp:39:18: note: previous declaration as 'int a [100007]'
int seg[N << 2], a[N];
^
0_0_36873120_10883.cpp: In function 'void build(int, int, int)':
0_0_36873120_10883.cpp:193:6: error: redefinition of 'void build(int, int, int)'
void build(int k, int l, int r) {
^
0_0_36873120_10883.cpp:43:6: note: 'void build(int, int, int)' previously defined here
void build(int l, int r, int i) {
^
0_0_36873120_10883.cpp: In function 'll query(int, int, int, int, int)':
0_0_36873120_10883.cpp:204:4: error: redefinition of 'll query(int, int, int, int, int)'
ll query(int l, int r, int k, int L, int R) {
^
0_0_36873120_10883.cpp:63:4: note: 'll query(int, int, int, int, int)' previously defined here
ll query(int l, int r, int ql, int qr, int i) {
^
0_0_36873120_10883.cpp: In function 'll sum(int, int)':
0_0_36873120_10883.cpp:215:4: error: redefinition of 'll sum(int, int)'
ll sum(int x, int y) {
^
0_0_36873120_10883.cpp:81:4: note: 'll sum(int, int)' previously defined here
ll sum(int x, int y) {
^
0_0_36873120_10883.cpp: In function 'void updates(int, int)':
0_0_36873120_10883.cpp:235:6: error: redefinition of 'void updates(int, int)'
void updates(int x, int y) {
^
0_0_36873120_10883.cpp:72:6: note: 'void updates(int, int)' previously defined here
void updates(int x, int y) {
^
0_0_36873120_10883.cpp: In function 'int main()':
0_0_36873120_10883.cpp:256:5: error: redefinition of 'int main()'
int main()
^
0_0_36873120_10883.cpp:91:5: note: 'int main()' previously defined here
int main()
^
|