library.cpp: In function 'void side(long long int, long long int)':
library.cpp:22:24: error: 'N' was not declared in this scope
22 | for(int a=0; a<N; a++){
| ^
library.cpp:33:26: error: invalid initialization of reference of type 'const std::vector<int>&' from expression of type 'std::vector<long long int>'
33 | 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:34:26: error: invalid initialization of reference of type 'const std::vector<int>&' from expression of type 'std::vector<long long int>'
34 | 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:43:20: error: 'N' was not declared in this scope
43 | for(int a=0; a<N; a++){
| ^
library.cpp:52:21: error: 'N' was not declared in this scope
52 | if(lastright == N && lastleft == -1){
| ^
library.cpp:61:9: error: 'ret' was not declared in this scope
61 | ret = Query(ask);
| ^~~
library.cpp:61:21: error: invalid initialization of reference of type 'const std::vector<int>&' from expression of type 'std::vector<long long int>'
61 | 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:64:17: error: 'lasleft' was not declared in this scope; did you mean 'lastleft'?
64 | ans[lasleft] = cntr;
| ^~~~~~~
| lastleft
library.cpp:76:9: error: 'ret' was not declared in this scope
76 | ret = Query(ask);
| ^~~
library.cpp:76:21: error: invalid initialization of reference of type 'const std::vector<int>&' from expression of type 'std::vector<long long int>'
76 | 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:100:12: error: invalid initialization of reference of type 'const std::vector<int>&' from expression of type 'std::vector<long long int>'
100 | 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);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~