books.cpp: In function 'veci merge(veci, veci)':
books.cpp:18:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i<a.size()&&j<b.size()){
~^~~~~~~~~
books.cpp:18:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i<a.size()&&j<b.size()){
~^~~~~~~~~
books.cpp:26:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i<a.size()){
~^~~~~~~~~
books.cpp:30:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(j<b.size()){
~^~~~~~~~~
books.cpp: In function 'veci mergesort(veci)':
books.cpp:7:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define fori(i,n) for(int i=0;i<n;i++)
books.cpp:40:7:
fori(i,a.size()){
~~~~~~~~~~
books.cpp:40:2: note: in expansion of macro 'fori'
fori(i,a.size()){
^~~~
books.cpp:41:7: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i<a.size()/2){
~^~~~~~~~~~~
books.cpp: In function 'long long int minimum_walk(std::vector<int>, int)':
books.cpp:7:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define fori(i,n) for(int i=0;i<n;i++)
books.cpp:125:8:
fori(i,cons[cur].size()){
~~~~~~~~~~~~~~~~~~
books.cpp:125:3: note: in expansion of macro 'fori'
fori(i,cons[cur].size()){
^~~~
books.cpp:7:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define fori(i,n) for(int i=0;i<n;i++)
books.cpp:143:8:
fori(i,cons[cur].size()){
~~~~~~~~~~~~~~~~~~
books.cpp:143:3: note: in expansion of macro 'fori'
fori(i,cons[cur].size()){
^~~~
books.cpp:7:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
#define fori(i,n) for(int i=0;i<n;i++)
books.cpp:161:8:
fori(i,cons[cur].size()){
~~~~~~~~~~~~~~~~~~
books.cpp:161:3: note: in expansion of macro 'fori'
fori(i,cons[cur].size()){
^~~~