highway.cpp: In function 'long long int chance(long long int)':
highway.cpp:45:27: error: invalid initialization of reference of type 'const std::vector<int>&' from expression of type 'int*'
45 | ll ans1=ask(w.data());
| ~~~~~~^~
In file included from highway.cpp:1:
highway.h:7:39: note: in passing argument 1 of 'long long int ask(const std::vector<int>&)'
7 | long long ask(const std::vector<int> &w);
| ~~~~~~~~~~~~~~~~~~~~~~~~^
highway.cpp:52:27: error: invalid initialization of reference of type 'const std::vector<int>&' from expression of type 'int*'
52 | ll ans2=ask(w.data());
| ~~~~~~^~
In file included from highway.cpp:1:
highway.h:7:39: note: in passing argument 1 of 'long long int ask(const std::vector<int>&)'
7 | long long ask(const std::vector<int> &w);
| ~~~~~~~~~~~~~~~~~~~~~~~~^
highway.cpp: In function 'void find_pair(int, int*, int*, int, int)':
highway.cpp:78:21: error: invalid initialization of reference of type 'const std::vector<int>&' from expression of type 'int*'
78 | ll xd=ask(w.data());
| ~~~~~~^~
In file included from highway.cpp:1:
highway.h:7:39: note: in passing argument 1 of 'long long int ask(const std::vector<int>&)'
7 | long long ask(const std::vector<int> &w);
| ~~~~~~~~~~~~~~~~~~~~~~~~^