monster.cpp: In lambda function:
monster.cpp:16:16: error: 'Query' was not declared in this scope
16 | return Query(y, x);
| ^~~~~
In file included from /usr/include/c++/13/cassert:44,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:106,
from monster.cpp:1:
monster.cpp: In function 'std::vector<int> Solve(int)':
monster.cpp:19:16: error: 'Query' was not declared in this scope
19 | assert(Query(vec[i + 1], vec[i]));
| ^~~~~
monster.cpp:26:32: error: 'Query' was not declared in this scope
26 | if (i != j) cnt += Query(vec[i], vec[j]);
| ^~~~~
monster.cpp:33:14: error: 'Query' was not declared in this scope
33 | mn = Query(ss[0].second, ss[1].second) ? ss[0].second : ss[1].second;
| ^~~~~
monster.cpp:39:29: error: 'Query' was not declared in this scope
39 | while (j + 1 < n && Query(vec[1], vec[j + 1])) ++j;
| ^~~~~
monster.cpp:44:16: error: 'Query' was not declared in this scope
44 | while (Query(vec[k], vec[j])) ++k;
| ^~~~~