0_0_32318988_17675.cpp: In function 'void merge(int, int, int, int&, int&)':
0_0_32318988_17675.cpp:3:18: error: 'find' was not declared in this scope
int fa=find(a), fb=find(b);
^
0_0_32318988_17675.cpp:5:12: error: 'fb' was not declared in this scope
if(fa!=fb)
^
0_0_32318988_17675.cpp:7:12: error: 'rank' was not declared in this scope
if(rank[fa]<rank[fb])
^
0_0_32318988_17675.cpp:9:13: error: 'p' was not declared in this scope
p[fa]=fb;
^
0_0_32318988_17675.cpp:13:13: error: 'p' was not declared in this scope
p[fb]=fa, rank[fa]+=rank[fb];
^
0_0_32318988_17675.cpp:14:19: error: 'ans' was not declared in this scope
if(!color)ans+=W[pp].w;
^
0_0_32318988_17675.cpp:14:24: error: 'W' was not declared in this scope
if(!color)ans+=W[pp].w;
^
0_0_32318988_17675.cpp:15:14: error: 'ans' was not declared in this scope
else ans+=B[pp].w;
^
0_0_32318988_17675.cpp:15:19: error: 'B' was not declared in this scope
else ans+=B[pp].w;
^
0_0_32318988_17675.cpp: In function 'int kruskal(int, int)':
0_0_32318988_17675.cpp:23:11: error: 'init' was not declared in this scope
init(n);
^
0_0_32318988_17675.cpp:26:15: error: 'cntB' was not declared in this scope
while (pb<cntB && pw<cntW)
^
0_0_32318988_17675.cpp:26:26: error: 'cntW' was not declared in this scope
while (pb<cntB && pw<cntW)
^
0_0_32318988_17675.cpp:29:13: error: 'B' was not declared in this scope
if((B[pb].w>W[pw].w+x && pb<cntB && pw<cntW) || pb>=cntB)
^
0_0_32318988_17675.cpp:29:21: error: 'W' was not declared in this scope
if((B[pb].w>W[pw].w+x && pb<cntB && pw<cntW) || pb>=cntB)
^
0_0_32318988_17675.cpp:38:15: error: 'cntB' was not declared in this scope
while (pb<cntB)merge(B[pw].u, B[pw].v, 1, pb, res);
^
0_0_32318988_17675.cpp:38:26: error: 'B' was not declared in this scope
while (pb<cntB)merge(B[pw].u, B[pw].v, 1, pb, res);
^
0_0_32318988_17675.cpp:39:15: error: 'cntW' was not declared in this scope
while (pw<cntW)merge(W[pw].u, W[pw].v, 0, pw, res);
^
0_0_32318988_17675.cpp:39:26: error: 'W' was not declared in this scope
while (pw<cntW)merge(W[pw].u, W[pw].v, 0, pw, res);
^
|