highway.cpp: In function 'void dfs(int, int, int)':
highway.cpp:18:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < adj[u].size(); i++){
~~^~~~~~~~~~~~~~~
highway.cpp: In function 'void find_pair(int, std::vector<int>, std::vector<int>, int, int)':
highway.cpp:40:22: error: call of overloaded 'ask(std::vector<int>&)' is ambiguous
long long sm = ask(w);
^
In file included from highway.cpp:2:0:
highway.h:7:11: note: candidate: long long int ask(const std::vector<int>&)
long long ask(const std::vector<int> &w);
^~~
highway.cpp:6:11: note: candidate: long long int ask(std::vector<int>)
long long ask(vector<int> w);
^~~
highway.cpp:58:26: error: call of overloaded 'ask(std::vector<int>&)' is ambiguous
long long score = ask(w);
^
In file included from highway.cpp:2:0:
highway.h:7:11: note: candidate: long long int ask(const std::vector<int>&)
long long ask(const std::vector<int> &w);
^~~
highway.cpp:6:11: note: candidate: long long int ask(std::vector<int>)
long long ask(vector<int> w);
^~~
highway.cpp:39:12: warning: unused variable 'a' [-Wunused-variable]
long long a = A, b = B;
^
highway.cpp:39:19: warning: unused variable 'b' [-Wunused-variable]
long long a = A, b = B;
^