popa.cpp: In function 'int rec(int, int, int*, int*, std::vector<int>&, std::vector<int>&)':
popa.cpp:37:39: error: too few arguments to function 'int rec(int, int, int*, int*, std::vector<int>&, std::vector<int>&)'
37 | left[root] = rec(l, root, left, right);
| ^
popa.cpp:24:5: note: declared here
24 | int rec(int l, int r, int* left, int* right, vector<int>& dl, vector<int>& dr) {
| ^~~
popa.cpp:38:44: error: too few arguments to function 'int rec(int, int, int*, int*, std::vector<int>&, std::vector<int>&)'
38 | right[root] = rec(root + 1, r, left, right);
| ^
popa.cpp:24:5: note: declared here
24 | int rec(int l, int r, int* left, int* right, vector<int>& dl, vector<int>& dr) {
| ^~~
popa.cpp: In function 'int solve(int, int*, int*)':
popa.cpp:69:30: error: too few arguments to function 'int rec(int, int, int*, int*, std::vector<int>&, std::vector<int>&)'
69 | return rec(0, n, left, right);
| ^
popa.cpp:24:5: note: declared here
24 | int rec(int l, int r, int* left, int* right, vector<int>& dl, vector<int>& dr) {
| ^~~