popa.cpp: In function 'int f(int, int, int*, int*)':
popa.cpp:19:26: error: too few arguments to function 'int f(int, int, int*, int*)'
19 | left[root] = f(l, root-1);
| ^
popa.cpp:13:5: note: declared here
13 | int f(int l, int r, int *left, int *right)
| ^
popa.cpp:20:27: error: too few arguments to function 'int f(int, int, int*, int*)'
20 | right[root] = f(root+1, r);
| ^
popa.cpp:13:5: note: declared here
13 | int f(int l, int r, int *left, int *right)
| ^
popa.cpp: In function 'int find_root(int, int)':
popa.cpp:11:1: warning: control reaches end of non-void function [-Wreturn-type]
11 | }
| ^