Problem swap
User siewjh
Submission Time 2023-06-07 00:26:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swap.cpp: In function ‘int xroot(int, int)’:
swap.cpp:15:26: error: too few arguments to function ‘int xroot(int, int)’
15 | else return xroot(par[x]);
| ^
swap.cpp:13:5: note: declared here
13 | int xroot(int x, int w){
| ^~~~~