0_0_23260046_15388.cpp:458:1: error: 'rmq' does not name a type
rmq??????
^
0_0_23260046_15388.cpp: In function 'int max(int, int)':
0_0_23260046_15388.cpp:483:5: error: redefinition of 'int max(int, int)'
int max ( int a , int b ) { return a > b ? a : b ; }
^
0_0_23260046_15388.cpp:17:5: note: 'int max(int, int)' previously defined here
int max ( int a , int b ) { return a > b ? a : b ; }
^
0_0_23260046_15388.cpp: In function 'int min(int, int)':
0_0_23260046_15388.cpp:486:5: error: redefinition of 'int min(int, int)'
int min ( int a , int b ) { return a < b ? a : b ; }
^
0_0_23260046_15388.cpp:20:5: note: 'int min(int, int)' previously defined here
int min ( int a , int b ) { return a < b ? a : b ; }
^
0_0_23260046_15388.cpp: At global scope:
0_0_23260046_15388.cpp:489:11: error: redefinition of 'const int maxn'
const int maxn = 51111 ;
^
0_0_23260046_15388.cpp:23:11: note: 'const int maxn' previously defined here
const int maxn = 51111 ;
^
0_0_23260046_15388.cpp:492:11: error: redefinition of 'int f [51111]'
int f[maxn] , n , m , num[maxn] ;
^
0_0_23260046_15388.cpp:26:5: note: 'int f [51111]' previously declared here
int f[maxn] , n , m , num[maxn] ;
^
0_0_23260046_15388.cpp:492:15: error: redefinition of 'int n'
int f[maxn] , n , m , num[maxn] ;
^
0_0_23260046_15388.cpp:26:15: note: 'int n' previously declared here
int f[maxn] , n , m , num[maxn] ;
^
0_0_23260046_15388.cpp:492:19: error: redefinition of 'int m'
int f[maxn] , n , m , num[maxn] ;
^
0_0_23260046_15388.cpp:26:19: note: 'int m' previously declared here
int f[maxn] , n , m , num[maxn] ;
^
0_0_23260046_15388.cpp:492:31: error: redefinition of 'int num [51111]'
int f[maxn] , n , m , num[maxn] ;
^
0_0_23260046_15388.cpp:26:23: note: 'int num [51111]' previously declared here
int f[maxn] , n , m , num[maxn] ;
^
0_0_23260046_15388.cpp:501:8: error: redefinition of 'struct Edge'
struct Edge {
^
0_0_23260046_15388.cpp:32:8: error: previous definition of 'struct Edge'
struct Edge {
^
0_0_23260046_15388.cpp:507:17: error: invalid type in declaration before ';' token
} edge[maxn<<1] ;
^
0_0_23260046_15388.cpp:507:17: error: conflicting declaration 'int edge [102222]'
0_0_23260046_15388.cpp:38:3: note: previous declaration as 'Edge edge [102222]'
} edge[maxn<<1] ;
^
0_0_23260046_15388.cpp:510:14: error: redefinition of 'int head [51111]'
int head[maxn] , tot ;
^
0_0_23260046_15388.cpp:41:5: note: 'int head [51111]' previously declared here
int head[maxn] , tot ;
^
0_0_23260046_15388.cpp:510:18: error: redefinition of 'int tot'
int head[maxn] , tot ;
^
0_0_23260046_15388.cpp:41:18: note: 'int tot' previously declared here
int head[maxn] , tot ;
^
0_0_23260046_15388.cpp: In function 'void new_edge(int, int, int)':
0_0_23260046_15388.cpp:597:7: error: redefinition of 'void new_edge(int, int, int)'
void new_edge ( int a , int b , int c ) {
^
0_0_23260046_15388.cpp:179:7: note: 'void new_edge(int, int, int)' previously defined here
void new_edge ( int a , int b , int c ) {
^
0_0_23260046_15388.cpp: At global scope:
0_0_23260046_15388.cpp:618:4: error: redefinition of 'int mx'
ll mx ;
^
0_0_23260046_15388.cpp:200:5: note: 'int mx' previously declared here
int mx ;
^
0_0_23260046_15388.cpp:621:5: error: redefinition of 'int rt'
int rt ;
^
0_0_23260046_15388.cpp:203:5: note: 'int rt' previously declared here
int rt ;
^
0_0_23260046_15388.cpp: In function 'void dfs(int, int, int)':
0_0_23260046_15388.cpp:627:7: error: redefinition of 'void dfs(int, int, int)'
void dfs ( int u , int fa , ll cnt ) {
^
0_0_23260046_15388.cpp:209:7: note: 'void dfs(int, int, int)' previously defined here
void dfs ( int u , int fa , int cnt ) {
^
0_0_23260046_15388.cpp: In function 'void cal(int, int, int)':
0_0_23260046_15388.cpp:666:7: error: redefinition of 'void cal(int, int, int)'
void cal ( int u , int fa , ll cnt ) {
^
0_0_23260046_15388.cpp:248:7: note: 'void cal(int, int, int)' previously defined here
void cal ( int u , int fa , int cnt ) {
^
0_0_23260046_15388.cpp: In function 'int main()':
0_0_23260046_15388.cpp:714:5: error: redefinition of 'int main()'
int main () {
^
0_0_23260046_15388.cpp:281:5: note: 'int main()' previously defined here
int main () {
^
|