boxes.cpp: In function 'long long int delivery(int, int, int, int*)':
boxes.cpp:12:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(left.size() >= K){
~~~~~~~~~~~~^~~~
boxes.cpp:23:2: error: 'curr' was not declared in this scope
curr = K;
^~~~
boxes.cpp:23:2: note: suggested alternative: 'cbrt'
curr = K;
^~~~
cbrt
boxes.cpp:24:2: error: 'last' was not declared in this scope
last = L;
^~~~
boxes.cpp:24:2: note: suggested alternative: 'left'
last = L;
^~~~
left
boxes.cpp:25:2: error: 'currCost' was not declared in this scope
currCost = 0;
^~~~~~~~
boxes.cpp:29:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(right.size() >= K){
~~~~~~~~~~~~~^~~~