boxes.cpp: In function 'long long int delivery(int, int, int, int*)':
boxes.cpp:26:32: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
26 | while ((izq.size() - cont) >= K) {
| ~~~~~~~~~~~~~~~~~~~~^~~~
boxes.cpp:31:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
31 | if (cont < izq.size()) Ma = izq[izq.size()-1];
| ~~~~~^~~~~~~~~~~~
boxes.cpp:4:40: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
4 | #define rep(i,a,b) for (int i = (a); i <= (b); i++)
| ^
boxes.cpp:32:5: note: in expansion of macro 'rep'
32 | rep(i, cont ,izq.size()-1) arr.push_back(izq[i]);
| ^~~
boxes.cpp:36:32: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
36 | while ((der.size() - cont) >= K) {
| ~~~~~~~~~~~~~~~~~~~~^~~~
boxes.cpp:42:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
42 | if (cont < der.size()) Mb = -der[der.size()-1];
| ~~~~~^~~~~~~~~~~~
boxes.cpp:4:40: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
4 | #define rep(i,a,b) for (int i = (a); i <= (b); i++)
| ^
boxes.cpp:43:5: note: in expansion of macro 'rep'
43 | rep(i, cont, der.size()-1) arr.push_back(-der[i]);
| ^~~
boxes.cpp:46:20: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
46 | if (arr.size() < K) {
| ~~~~~~~~~~~^~~
boxes.cpp:4:40: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
4 | #define rep(i,a,b) for (int i = (a); i <= (b); i++)
| ^
boxes.cpp:66:9: note: in expansion of macro 'rep'
66 | rep(i,1,(arr.size()-K)+1) {
| ^~~
boxes.cpp:71:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
71 | if (fin < arr.size()) b = 2*(L - arr[fin]);
| ~~~~^~~~~~~~~~~~
boxes.cpp:53:16: warning: 'Mb' may be used uninitialized in this function [-Wmaybe-uninitialized]
53 | Mb = L-Mb;
| ~~~^~~~~~
boxes.cpp:55:26: warning: 'Ma' may be used uninitialized in this function [-Wmaybe-uninitialized]
55 | a = min(L,(Ma+Mb));
| ~~~^~~~