0_0_25298675_7952.cpp:12:8: error: 'maxn' was not declared in this scope
} node[maxn*2];
^
0_0_25298675_7952.cpp:15:7: error: 'maxn' was not declared in this scope
int p[maxn];
^
0_0_25298675_7952.cpp: In function 'int Find(int)':
0_0_25298675_7952.cpp:30:11: error: 'p' was not declared in this scope
if(x!=p[x]) p[x]=Find(p[x]);
^
0_0_25298675_7952.cpp:31:12: error: 'p' was not declared in this scope
return p[x];
^
0_0_25298675_7952.cpp: In function 'void Union(int, int)':
0_0_25298675_7952.cpp:38:5: error: 'p' was not declared in this scope
p[y]=x;
^
0_0_25298675_7952.cpp: In function 'int kruskal()':
0_0_25298675_7952.cpp:46:17: error: 'node' was not declared in this scope
if(Find(node[i].u) != Find(node[i].v))
^
0_0_25298675_7952.cpp: In function 'int main()':
0_0_25298675_7952.cpp:61:19: error: 'maxn' was not declared in this scope
for(t=3; F[t]<maxn; t++)
^
0_0_25298675_7952.cpp:69:30: error: 'node' was not declared in this scope
scanf("%d%d%d",& node[i].u,& node[i].v,&node[i].w);
^
0_0_25298675_7952.cpp:72:33: error: 'p' was not declared in this scope
for(int i=1; i<=n; i++) p[i]=i;
^
0_0_25298675_7952.cpp:73:14: error: 'node' was not declared in this scope
sort(node+1,node+1+m,cmp1);
^
0_0_25298675_7952.cpp:76:33: error: 'p' was not declared in this scope
for(int i=1; i<=n; i++) p[i]=i;
^
|