0_0_19959692_29848.cpp: In function 'int Find_Set(int)':
0_0_19959692_29848.cpp:3:12: error: 'p' was not declared in this scope
if (x!=p[x])
^
0_0_19959692_29848.cpp:5:12: error: 'p' was not declared in this scope
return p[x];
^
0_0_19959692_29848.cpp: In function 'void Union(int, int)':
0_0_19959692_29848.cpp:14:9: error: 'rank' was not declared in this scope
if (rank[x]>rank[y])
^
0_0_19959692_29848.cpp:16:9: error: 'p' was not declared in this scope
p[y]=x;
^
0_0_19959692_29848.cpp:17:9: error: 'num' was not declared in this scope
num[x]+=num[y];
^
0_0_19959692_29848.cpp:21:9: error: 'p' was not declared in this scope
p[x]=y;
^
0_0_19959692_29848.cpp:24:9: error: 'num' was not declared in this scope
num[y]+=num[x];
^
|