library.cpp: In function 'long long int ask(std::vector<long long int>)':
library.cpp:9:21: error: 'N' was not declared in this scope
9 | vector <int> q1(N);
| ^
library.cpp:13:11: error: invalid initialization of reference of type 'const std::vector<int>&' from expression of type 'std::vector<long long int>'
13 | Query(q1);
| ^~
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:14:1: warning: no return statement in function returning non-void [-Wreturn-type]
14 | }
| ^
library.cpp: In function 'void Solve(long long int)':
library.cpp:20:16: error: invalid initialization of reference of type 'const std::vector<int>&' from expression of type 'std::vector<long long int>'
20 | Answer(pre);
| ^~~
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);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~
library.cpp:72:12: error: invalid initialization of reference of type 'const std::vector<int>&' from expression of type 'std::vector<long long int>'
72 | Answer(res);
| ^~~
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);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~