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