0_0_39834002_18494.cpp: In function 'void merge(int, int)':
0_0_39834002_18494.cpp:32:12: error: 'finds' was not declared in this scope
32 | int foot1=finds(x);
| ^~~~~
0_0_39834002_18494.cpp:37:9: error: 're' was not declared in this scope; did you mean 'pre'?
37 | re[foot2]+=re[foot1];
| ^~
| pre
0_0_39834002_18494.cpp:41:11: error: a function-definition is not allowed here before '{' token
41 | int main(){
| ^
0_0_39834002_18494.cpp:73:2: error: expected '}' at end of input
73 | }
| ^
0_0_39834002_18494.cpp:24:24: note: to match this '{'
24 | void merge(int x,int y){
| ^
|