dango3.cpp: In function 'void Solve(long long int, long long int)':
dango3.cpp:53:30: error: 'n' was not declared in this scope
53 | for (int i = 1; i <= n*m; i++)
| ^
dango3.cpp:53:32: error: 'm' was not declared in this scope
53 | for (int i = 1; i <= n*m; i++)
| ^
dango3.cpp:64:35: error: invalid initialization of reference of type 'const std::vector<int>&' from expression of type 'std::vector<long long int>'
64 | if (Query(q) == m-mid) ans = mid, l = mid+1;
| ^
In file included from dango3.cpp:1:
dango3.h:5:35: note: in passing argument 1 of 'int Query(const std::vector<int>&)'
5 | int Query(const std::vector<int> &x);
| ~~~~~~~~~~~~~~~~~~~~~~~~^
dango3.cpp:64:48: error: 'ans' was not declared in this scope; did you mean 'abs'?
64 | if (Query(q) == m-mid) ans = mid, l = mid+1;
| ^~~
| abs
dango3.cpp:69:30: error: 'm' was not declared in this scope
69 | for (int i = 1; i <= m; i++) Answer(g[i]);
| ^
dango3.cpp:69:44: error: invalid initialization of reference of type 'const std::vector<int>&' from expression of type '__gnu_cxx::__alloc_traits<std::allocator<std::vector<long long int> >, std::vector<long long int> >::value_type' {aka 'std::vector<long long int>'}
69 | for (int i = 1; i <= m; i++) Answer(g[i]);
| ~~~~~~^~~~~~
In file included from dango3.cpp:1:
dango3.h:6:37: note: in passing argument 1 of 'void Answer(const std::vector<int>&)'
6 | void Answer(const std::vector<int> &a);
| ~~~~~~~~~~~~~~~~~~~~~~~~^