0_0_34157147_19757.cpp: In function 'void find_set(int)':
0_0_34157147_19757.cpp:13:23: error: void value not ignored as it ought to be
if(x != s[x])s[x] = find_set(s[x]);
^
0_0_34157147_19757.cpp:14:15: error: return-statement with a value, in function returning 'void' [-fpermissive]
return s[x];
^
0_0_34157147_19757.cpp: In function 'void union_set(int, int)':
0_0_34157147_19757.cpp:17:7: error: void value not ignored as it ought to be
x = find_set(x);
^
0_0_34157147_19757.cpp:18:7: error: void value not ignored as it ought to be
y = find_set(y);
^
|