/in/foo.cc: In function 'void upd(int)':
/in/foo.cc:21:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < V.size(); i++) V[i] = A.same;
~~^~~~~~~~~~
/in/foo.cc:29:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < V.size(); i++) A.lmx = max(A.lmx, A.sm += V[i]);
~~^~~~~~~~~~
/in/foo.cc:34:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < V.size(); i++) {
~~^~~~~~~~~~
/in/foo.cc: In function 'void merge(int)':
/in/foo.cc:50:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < K[b].V.size(); i++) K[a].V.push_back(K[b].V[i]);
~~^~~~~~~~~~~~~~~
/in/foo.cc: In function 'int split(int, int)':
/in/foo.cc:59:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = pos; i < K[a].V.size(); i++) K[b].V.push_back(K[a].V[i]);
~~^~~~~~~~~~~~~~~
/in/foo.cc: In function 'void findpos(int, int&, int&)':
/in/foo.cc:71:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(num <= K[nw].V.size()) {
~~~~^~~~~~~~~~~~~~~~~