Compiler output
prog.cpp: In function 'void combine(int, int, int)':
prog.cpp:32:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i<v[y].size() && v[y][i] + nr < cost) ++i;
^
prog.cpp:38:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i<v[x].size() && j<v[y].size())
^
prog.cpp:38:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i<v[x].size() && j<v[y].size())
^
prog.cpp:44:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i<v[x].size()) b[++nr] = v[x][i++];
^
prog.cpp:45:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(j<v[y].size()) b[++nr] = v[y][j++];
^