bitaro.cpp: In function 'void merge_lists(std::vector<std::pair<int, int> >&, const std::vector<std::pair<int, int> >&)':
bitaro.cpp:34:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while((p1 < result.size() || p2 < add.size()) && r.size() < root)
~~~^~~~~~~~~~~~~~~
bitaro.cpp:34:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while((p1 < result.size() || p2 < add.size()) && r.size() < root)
~~~^~~~~~~~~~~~
bitaro.cpp:34:63: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while((p1 < result.size() || p2 < add.size()) && r.size() < root)
~~~~~~~~~^~~~~~
bitaro.cpp:36:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(p1 == result.size())
~~~^~~~~~~~~~~~~~~~
bitaro.cpp:43:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
else if(p2 == add.size())
~~~^~~~~~~~~~~~~
bitaro.cpp:13:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i,a,b) for(int i = a;i < b;i++)
bitaro.cpp:68:9:
rep(i,0,result.size())
~~~~~~~~~~~~~~~~~
bitaro.cpp:68:5: note: in expansion of macro 'rep'
rep(i,0,result.size())
^~~
bitaro.cpp: In function 'void precalc()':
bitaro.cpp:13:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i,a,b) for(int i = a;i < b;i++)
bitaro.cpp:80:13:
rep(j,0,graph[i].size())
~~~~~~~~~~~~~~~~~~~
bitaro.cpp:80:9: note: in expansion of macro 'rep'
rep(j,0,graph[i].size())
^~~
bitaro.cpp: In function 'int solve_smart(int)':
bitaro.cpp:13:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i,a,b) for(int i = a;i < b;i++)
bitaro.cpp:106:13:
rep(j,0,graph[i].size())
~~~~~~~~~~~~~~~~~~~
bitaro.cpp:106:9: note: in expansion of macro 'rep'
rep(j,0,graph[i].size())
^~~
bitaro.cpp: In function 'int solve_simple(int)':
bitaro.cpp:13:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define rep(i,a,b) for(int i = a;i < b;i++)
bitaro.cpp:122:9:
rep(i,0,longest[target].size())
~~~~~~~~~~~~~~~~~~~~~~~~~~
bitaro.cpp:122:5: note: in expansion of macro 'rep'
rep(i,0,longest[target].size())
^~~