library.cpp: In function 'void side(long long int, long long int)':
library.cpp:34:26: error: invalid initialization of reference of type 'const std::vector<int>&' from expression of type 'std::vector<long long int>'
34 | int ret1 = Query(ask);
| ^~~
In file included from library.cpp:2:
library.h:2:35: note: in passing argument 1 of 'int Query(const std::vector<int>&)'
2 | int Query(const std::vector<int>& M);
| ~~~~~~~~~~~~~~~~~~~~~~~~^
library.cpp:35:26: error: invalid initialization of reference of type 'const std::vector<int>&' from expression of type 'std::vector<long long int>'
35 | int ret2 = Query(ask2);
| ^~~~
In file included from library.cpp:2:
library.h:2:35: note: in passing argument 1 of 'int Query(const std::vector<int>&)'
2 | int Query(const std::vector<int>& M);
| ~~~~~~~~~~~~~~~~~~~~~~~~^
library.cpp:62:9: error: 'ret' was not declared in this scope
62 | ret = Query(ask);
| ^~~
library.cpp:62:21: error: invalid initialization of reference of type 'const std::vector<int>&' from expression of type 'std::vector<long long int>'
62 | ret = Query(ask);
| ^~~
In file included from library.cpp:2:
library.h:2:35: note: in passing argument 1 of 'int Query(const std::vector<int>&)'
2 | int Query(const std::vector<int>& M);
| ~~~~~~~~~~~~~~~~~~~~~~~~^
library.cpp:65:17: error: 'lasleft' was not declared in this scope; did you mean 'lastleft'?
65 | ans[lasleft] = cntr;
| ^~~~~~~
| lastleft
library.cpp:77:9: error: 'ret' was not declared in this scope
77 | ret = Query(ask);
| ^~~
library.cpp:77:21: error: invalid initialization of reference of type 'const std::vector<int>&' from expression of type 'std::vector<long long int>'
77 | ret = Query(ask);
| ^~~
In file included from library.cpp:2:
library.h:2:35: note: in passing argument 1 of 'int Query(const std::vector<int>&)'
2 | int Query(const std::vector<int>& M);
| ~~~~~~~~~~~~~~~~~~~~~~~~^
library.cpp: In function 'void Solve(long long int)':
library.cpp:101:12: error: invalid initialization of reference of type 'const std::vector<int>&' from expression of type 'std::vector<long long int>'
101 | Answer(ans);
| ^~~
In file included from library.cpp:2:
library.h:3:37: note: in passing argument 1 of 'void Answer(const std::vector<int>&)'
3 | void Answer(const std::vector<int>& res);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~