popa.cpp: In function 'int solve(int, int*, int*)':
popa.cpp:28:23: error: 'query' was not declared in this scope; did you mean 'local::query'?
28 | while(st.size() && !query(start[st.back()], i, st.back(), st.back())) st.pop_back();
| ^~~~~
| local::query
popa.cpp:10:6: note: 'local::query' declared here
10 | int query(int a, int b, int c, int d) {
| ^~~~~
popa.cpp:36:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
36 | for(auto i : st) cout << i << " "; cout << endl;
| ^~~
popa.cpp:36:38: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
36 | for(auto i : st) cout << i << " "; cout << endl;
| ^~~~