popa.cpp: In function 'int myquery(int, int, int, int)':
popa.cpp:3:18: error: 'min' was not declared in this scope
3 | return query(min(a,b),max(a,b),min(c,d),max(c,d));
| ^~~
popa.cpp:3:27: error: 'max' was not declared in this scope
3 | return query(min(a,b),max(a,b),min(c,d),max(c,d));
| ^~~
popa.cpp:3:12: error: 'query' was not declared in this scope; did you mean 'myquery'?
3 | return query(min(a,b),max(a,b),min(c,d),max(c,d));
| ^~~~~
| myquery
popa.cpp: At global scope:
popa.cpp:5:1: error: 'vector' does not name a type
5 | vector<int> ord;
| ^~~~~~
popa.cpp: In function 'void precalc(int*)':
popa.cpp:8:19: error: 'ord' was not declared in this scope
8 | for(int i=0;i<ord.size();i++)
| ^~~
popa.cpp: In function 'int solve(int, int*, int*)':
popa.cpp:49:5: error: 'ord' was not declared in this scope
49 | ord.clear();
| ^~~
popa.cpp:53:5: error: 'reverse' was not declared in this scope
53 | reverse(ord.begin(),ord.end());
| ^~~~~~~