boxes.cpp: In function 'long long int delivery(int, int, int, int*)':
boxes.cpp:22:32: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
22 | while ((izq.size() - cont) >= K) {
| ~~~~~~~~~~~~~~~~~~~~^~~~
boxes.cpp:27:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
27 | 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:28:5: note: in expansion of macro 'rep'
28 | rep(i, cont ,izq.size()-1) arr.push_back(izq[i]);
| ^~~
boxes.cpp:32:32: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
32 | while ((der.size() - cont) >= K) {
| ~~~~~~~~~~~~~~~~~~~~^~~~
boxes.cpp:38:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | 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:39:5: note: in expansion of macro 'rep'
39 | rep(i, cont, der.size()-1) arr.push_back(-der[i]);
| ^~~
boxes.cpp:42:20: warning: comparison of integer expressions of different signedness: 'std::vector<int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
42 | 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:62:9: note: in expansion of macro 'rep'
62 | rep(i,1,(arr.size()-K)+1) {
| ^~~
boxes.cpp:63:16: warning: statement has no effect [-Wunused-value]
63 | a == 0;
| ~~^~~~
boxes.cpp:64:16: warning: statement has no effect [-Wunused-value]
64 | b == 0;
| ~~^~~~
boxes.cpp:67:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
67 | if (fin < arr.size()) b = 2*(L - arr[fin]);
| ~~~~^~~~~~~~~~~~
boxes.cpp:69:21: warning: 'b' may be used uninitialized in this function [-Wmaybe-uninitialized]
69 | sum = a+b;
| ~^~
boxes.cpp:69:21: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]
boxes.cpp:49:16: warning: 'Mb' may be used uninitialized in this function [-Wmaybe-uninitialized]
49 | Mb = L-Mb;
| ~~~^~~~~~
boxes.cpp:51:26: warning: 'Ma' may be used uninitialized in this function [-Wmaybe-uninitialized]
51 | a = min(L,(Ma+Mb));
| ~~~^~~~