0_0_32280378_14046.cpp: In function 'void init(int)':
0_0_32280378_14046.cpp:5:3: error: 'par' was not declared in this scope
par[i] = i;
^
0_0_32280378_14046.cpp:6:3: error: 'rank' was not declared in this scope
rank[i] = 0;
^
0_0_32280378_14046.cpp: In function 'int find(int)':
0_0_32280378_14046.cpp:12:5: error: 'par' was not declared in this scope
if(par[x] == x)
^
0_0_32280378_14046.cpp: In function 'void unite(int, int)':
0_0_32280378_14046.cpp:23:5: error: 'rank' was not declared in this scope
if(rank[x] < rank[y]) par[x] = y;
^
0_0_32280378_14046.cpp:23:24: error: 'par' was not declared in this scope
if(rank[x] < rank[y]) par[x] = y;
^
0_0_32280378_14046.cpp:24:12: error: 'par' was not declared in this scope
else par[y] = x;
^
0_0_32280378_14046.cpp:25:5: error: 'rank' was not declared in this scope
if(rank[x] == rank[y]) rank[x]++;
^
|