0_0_25763752_23874.cpp:84:11: error: redefinition of 'const int maxn'
const int maxn=10005;
^
0_0_25763752_23874.cpp:6:11: note: 'const int maxn' previously defined here
const int maxn=10005;
^
0_0_25763752_23874.cpp:85:15: error: redefinition of 'int pre [40020]'
int pre[maxn*4];
^
0_0_25763752_23874.cpp:7:5: note: 'int pre [40020]' previously declared here
int pre[maxn*4];
^
0_0_25763752_23874.cpp:86:5: error: redefinition of 'int n'
int n,m,cost,to;
^
0_0_25763752_23874.cpp:8:5: note: 'int n' previously declared here
int n,m,cost,to;
^
0_0_25763752_23874.cpp:86:7: error: redefinition of 'int m'
int n,m,cost,to;
^
0_0_25763752_23874.cpp:8:7: note: 'int m' previously declared here
int n,m,cost,to;
^
0_0_25763752_23874.cpp:86:9: error: redefinition of 'int cost'
int n,m,cost,to;
^
0_0_25763752_23874.cpp:8:9: note: 'int cost' previously declared here
int n,m,cost,to;
^
0_0_25763752_23874.cpp:86:14: error: redefinition of 'int to'
int n,m,cost,to;
^
0_0_25763752_23874.cpp:8:14: note: 'int to' previously declared here
int n,m,cost,to;
^
0_0_25763752_23874.cpp:87:8: error: redefinition of 'struct Node'
struct Node{
^
0_0_25763752_23874.cpp:9:8: error: previous definition of 'struct Node'
struct Node{
^
0_0_25763752_23874.cpp:89:15: error: invalid type in declaration before ';' token
}node[maxn*10];
^
0_0_25763752_23874.cpp:89:15: error: conflicting declaration 'int node [100050]'
0_0_25763752_23874.cpp:11:2: note: previous declaration as 'Node node [100050]'
}node[maxn*10];
^
0_0_25763752_23874.cpp: In function 'void init()':
0_0_25763752_23874.cpp:90:6: error: redefinition of 'void init()'
void init()
^
0_0_25763752_23874.cpp:12:6: note: 'void init()' previously defined here
void init()
^
0_0_25763752_23874.cpp: In function 'int findx(int)':
0_0_25763752_23874.cpp:95:5: error: redefinition of 'int findx(int)'
int findx(int x)
^
0_0_25763752_23874.cpp:17:5: note: 'int findx(int)' previously defined here
int findx(int x)
^
0_0_25763752_23874.cpp: In function 'void join(int, int)':
0_0_25763752_23874.cpp:102:6: error: redefinition of 'void join(int, int)'
void join(int x,int y)
^
0_0_25763752_23874.cpp:24:6: note: 'void join(int, int)' previously defined here
void join(int x,int y)
^
0_0_25763752_23874.cpp: In function 'bool same(int, int)':
0_0_25763752_23874.cpp:109:6: error: redefinition of 'bool same(int, int)'
bool same(int x,int y)
^
0_0_25763752_23874.cpp:31:6: note: 'bool same(int, int)' previously defined here
bool same(int x,int y)
^
0_0_25763752_23874.cpp: In function 'bool cmp(const Node&, const Node&)':
0_0_25763752_23874.cpp:113:6: error: redefinition of 'bool cmp(const Node&, const Node&)'
bool cmp(const Node &a,const Node &b)
^
0_0_25763752_23874.cpp:35:6: note: 'bool cmp(const Node&, const Node&)' previously defined here
bool cmp(const Node &a,const Node &b)
^
0_0_25763752_23874.cpp: In function 'void kruskal()':
0_0_25763752_23874.cpp:117:6: error: redefinition of 'void kruskal()'
void kruskal()
^
0_0_25763752_23874.cpp:39:6: note: 'void kruskal()' previously defined here
void kruskal()
^
0_0_25763752_23874.cpp: In function 'int main()':
0_0_25763752_23874.cpp:144:5: error: redefinition of 'int main()'
int main()
^
0_0_25763752_23874.cpp:66:5: note: 'int main()' previously defined here
int main()
^
|