highway.cpp: In function 'void dfs(int, int)':
highway.cpp:15:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < g[v].size(); i ++){
~~^~~~~~~~~~~~~
highway.cpp: In function 'int f(int, int)':
highway.cpp:42:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < Ua.size(); i ++){
~~^~~~~~~~~~~
highway.cpp: In function 'void find_pair(int, std::vector<int>, std::vector<int>, int, int)':
highway.cpp:58:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < Ua.size(); i ++){
~~^~~~~~~~~~~
highway.cpp:64:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < w.size(); i ++)
~~^~~~~~~~~~
highway.cpp:70:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < w.size(); i ++)
~~^~~~~~~~~~
highway.cpp: In function 'int f(int, int)':
highway.cpp:52:14: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
return ans;
^~~
highway.cpp: In function 'void find_pair(int, std::vector<int>, std::vector<int>, int, int)':
highway.cpp:80:13: warning: 'e' may be used uninitialized in this function [-Wmaybe-uninitialized]
answer(f(Ua[e], e), f(Va[e], e));
~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~