popa.cpp:1:18: warning: extra tokens at end of #include directive
1 | #include "popa.h";
| ^
popa.cpp: In function 'int solve(int, int*, int*)':
popa.cpp:25:13: error: 'l' was not declared in this scope
25 | return rec(l, r, left, right);
| ^
popa.cpp:25:16: error: 'r' was not declared in this scope
25 | return rec(l, r, left, right);
| ^
popa.cpp: In function 'int rec(int, int, int*, int*)':
popa.cpp:20:32: warning: control reaches end of non-void function [-Wreturn-type]
20 | left[root] = l_c, right[root] = r_c;
| ~~~~~~~~~~~~^~~~~