0_0_30446543_26555.cpp:79:11: error: redefinition of 'const int maxn'
const int maxn = 100050;
^
0_0_30446543_26555.cpp:2:11: note: 'const int maxn' previously defined here
const int maxn = 100050;
^
0_0_30446543_26555.cpp:83:8: error: redefinition of 'struct note'
struct note{
^
0_0_30446543_26555.cpp:6:8: error: previous definition of 'struct note'
struct note{
^
0_0_30446543_26555.cpp:85:13: error: invalid type in declaration before ';' token
} e[maxn<<1];
^
0_0_30446543_26555.cpp:85:13: error: conflicting declaration 'int e [200100]'
0_0_30446543_26555.cpp:8:3: note: previous declaration as 'note e [200100]'
} e[maxn<<1];
^
0_0_30446543_26555.cpp:86:14: error: redefinition of 'int head [100050]'
int head[maxn], cnt;
^
0_0_30446543_26555.cpp:9:5: note: 'int head [100050]' previously declared here
int head[maxn], cnt;
^
0_0_30446543_26555.cpp:86:17: error: redefinition of 'int cnt'
int head[maxn], cnt;
^
0_0_30446543_26555.cpp:9:17: note: 'int cnt' previously declared here
int head[maxn], cnt;
^
0_0_30446543_26555.cpp: In function 'void add(int, int)':
0_0_30446543_26555.cpp:88:6: error: redefinition of 'void add(int, int)'
void add(int u, int v){
^
0_0_30446543_26555.cpp:11:6: note: 'void add(int, int)' previously defined here
void add(int u, int v){
^
0_0_30446543_26555.cpp: At global scope:
0_0_30446543_26555.cpp:92:5: error: redefinition of 'int n'
int n, sum;
^
0_0_30446543_26555.cpp:15:5: note: 'int n' previously declared here
int n, sum;
^
0_0_30446543_26555.cpp:92:8: error: redefinition of 'int sum'
int n, sum;
^
0_0_30446543_26555.cpp:15:8: note: 'int sum' previously declared here
int n, sum;
^
0_0_30446543_26555.cpp:93:12: error: redefinition of 'int sz [100050]'
int sz[maxn], mx[maxn], root;
^
0_0_30446543_26555.cpp:16:5: note: 'int sz [100050]' previously declared here
int sz[maxn], mx[maxn], root;
^
0_0_30446543_26555.cpp:93:22: error: redefinition of 'int mx [100050]'
int sz[maxn], mx[maxn], root;
^
0_0_30446543_26555.cpp:16:15: note: 'int mx [100050]' previously declared here
int sz[maxn], mx[maxn], root;
^
0_0_30446543_26555.cpp:93:25: error: redefinition of 'int root'
int sz[maxn], mx[maxn], root;
^
0_0_30446543_26555.cpp:16:25: note: 'int root' previously declared here
int sz[maxn], mx[maxn], root;
^
0_0_30446543_26555.cpp: In function 'void dfs(int, int)':
0_0_30446543_26555.cpp:95:6: error: redefinition of 'void dfs(int, int)'
void dfs(int u, int fa){
^
0_0_30446543_26555.cpp:18:6: note: 'void dfs(int, int)' previously defined here
void dfs(int u, int fa){
^
0_0_30446543_26555.cpp: In function 'void getroot(int, int)':
0_0_30446543_26555.cpp:104:6: error: redefinition of 'void getroot(int, int)'
void getroot(int u, int fa){
^
0_0_30446543_26555.cpp:27:6: note: 'void getroot(int, int)' previously defined here
void getroot(int u, int fa){
^
0_0_30446543_26555.cpp: At global scope:
0_0_30446543_26555.cpp:118:11: error: redefinition of 'll dp [100050]'
ll dp[maxn], ans;
^
0_0_30446543_26555.cpp:41:4: note: 'll dp [100050]' previously declared here
ll dp[maxn], ans;
^
0_0_30446543_26555.cpp:118:14: error: redefinition of 'll ans'
ll dp[maxn], ans;
^
0_0_30446543_26555.cpp:41:14: note: 'll ans' previously declared here
ll dp[maxn], ans;
^
0_0_30446543_26555.cpp: In function 'void dfs1(int, int)':
0_0_30446543_26555.cpp:119:6: error: redefinition of 'void dfs1(int, int)'
void dfs1(int u, int fa){
^
0_0_30446543_26555.cpp:42:6: note: 'void dfs1(int, int)' previously defined here
void dfs1(int u, int fa){
^
0_0_30446543_26555.cpp: In function 'int main()':
0_0_30446543_26555.cpp:131:5: error: redefinition of 'int main()'
int main()
^
0_0_30446543_26555.cpp:54:5: note: 'int main()' previously defined here
int main()
^
|