highway.cpp: In function 'void find_pair(int32_t, std::vector<int>, std::vector<int>, int32_t, int32_t)':
highway.cpp:31:20: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | for(int i = 0;i<U.size();i++){
| ~^~~~~~~~~
highway.cpp:44:16: error: invalid initialization of reference of type 'const std::vector<int>&' from expression of type 'std::vector<long long int>'
44 | if(ask(as)==len){
| ^~
In file included from highway.cpp:2:
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:55:9: error: redeclaration of 'long long int l'
55 | int l = 1 , r = n-1 , ans2 = 0;
| ^
highway.cpp:35:9: note: 'long long int l' previously declared here
35 | int l = 0 ,r = n-1 , ans = 0;
| ^
highway.cpp:55:17: error: redeclaration of 'long long int r'
55 | int l = 1 , r = n-1 , ans2 = 0;
| ^
highway.cpp:35:16: note: 'long long int r' previously declared here
35 | int l = 0 ,r = n-1 , ans = 0;
| ^