boxes.cpp: In function 'long long int costo(std::vector<long long int>, int, int)':
boxes.cpp:17:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | if (pos >= 0 && pos < V.size()) return V[pos];
| ~~~~^~~~~~~~~~
boxes.cpp:12:58: warning: unused parameter 'K' [-Wunused-parameter]
12 | long long int costo(vector<long long int> V,int pos, int K) {
| ~~~~^
boxes.cpp: In function 'long long int delivery(int, int, int, int*)':
boxes.cpp:5:40: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
5 | #define rep(i,a,b) for (int i = (a); i <= (b); i++)
| ^
boxes.cpp:40:5: note: in expansion of macro 'rep'
40 | rep(i, 0, izq.size() - 1){
| ^~~
boxes.cpp:5:40: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
5 | #define rep(i,a,b) for (int i = (a); i <= (b); i++)
| ^
boxes.cpp:45:5: note: in expansion of macro 'rep'
45 | rep(i, 0, der.size() - 1){
| ^~~
boxes.cpp:50:32: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
50 | MIN = costo(cder,der.size()-1,K) + costo(cizq,izq.size()-1,K);
| ~~~~~~~~~~^~
boxes.cpp:50:61: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
50 | MIN = costo(cder,der.size()-1,K) + costo(cizq,izq.size()-1,K);
| ~~~~~~~~~~^~
boxes.cpp:54:40: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
54 | a = L + costo(cder,der.size()-1-i,K) + costo(cizq, izq.size()-1-(K-i) ,K);
| ~~~~~~~~~~~~^~
boxes.cpp:54:72: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
54 | a = L + costo(cder,der.size()-1-i,K) + costo(cizq, izq.size()-1-(K-i) ,K);
| ~~~~~~~~~~~~^~~~~~
boxes.cpp:23:27: warning: unused variable 'ini' [-Wunused-variable]
23 | long long int mitad,a,ini,fin,b,cont,Ma,Mb;
| ^~~
boxes.cpp:23:31: warning: unused variable 'fin' [-Wunused-variable]
23 | long long int mitad,a,ini,fin,b,cont,Ma,Mb;
| ^~~
boxes.cpp:23:35: warning: unused variable 'b' [-Wunused-variable]
23 | long long int mitad,a,ini,fin,b,cont,Ma,Mb;
| ^
boxes.cpp:23:37: warning: unused variable 'cont' [-Wunused-variable]
23 | long long int mitad,a,ini,fin,b,cont,Ma,Mb;
| ^~~~
boxes.cpp:23:42: warning: unused variable 'Ma' [-Wunused-variable]
23 | long long int mitad,a,ini,fin,b,cont,Ma,Mb;
| ^~
boxes.cpp:23:45: warning: unused variable 'Mb' [-Wunused-variable]
23 | long long int mitad,a,ini,fin,b,cont,Ma,Mb;
| ^~
boxes.cpp:24:19: warning: variable 'res' set but not used [-Wunused-but-set-variable]
24 | long long int res,MIN,sum,l;
| ^~~
boxes.cpp:24:27: warning: unused variable 'sum' [-Wunused-variable]
24 | long long int res,MIN,sum,l;
| ^~~
boxes.cpp:24:31: warning: unused variable 'l' [-Wunused-variable]
24 | long long int res,MIN,sum,l;
| ^