boxes.cpp: In function 'long long int costo(std::vector<int>, int, int)':
boxes.cpp:15:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
15 | while (pos > K && pos < V.size()){
| ~~~~^~~~~~~~~~
boxes.cpp:19:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
19 | if (pos < V.size()) res += 2 * V[pos];
| ~~~~^~~~~~~~~~
boxes.cpp:10:19: warning: variable 'cont' set but not used [-Wunused-but-set-variable]
10 | long long int cont,res;
| ^~~~
boxes.cpp: In function 'long long int delivery(int, int, int, int*)':
boxes.cpp:41:31: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
41 | MIN = costo(der,der.size()-1,K) + costo(izq,izq.size()-1,K);
| ~~~~~~~~~~^~
boxes.cpp:41:59: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
41 | MIN = costo(der,der.size()-1,K) + costo(izq,izq.size()-1,K);
| ~~~~~~~~~~^~
boxes.cpp:45:39: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
45 | a = L + costo(der,der.size()-1-i,K) + costo(izq, izq.size()-1-(K-i) ,K);
| ~~~~~~~~~~~~^~
boxes.cpp:45:70: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
45 | a = L + costo(der,der.size()-1-i,K) + costo(izq, izq.size()-1-(K-i) ,K);
| ~~~~~~~~~~~~^~~~~~
boxes.cpp:25:27: warning: unused variable 'ini' [-Wunused-variable]
25 | long long int mitad,a,ini,fin,b,cont,Ma,Mb;
| ^~~
boxes.cpp:25:31: warning: unused variable 'fin' [-Wunused-variable]
25 | long long int mitad,a,ini,fin,b,cont,Ma,Mb;
| ^~~
boxes.cpp:25:35: warning: unused variable 'b' [-Wunused-variable]
25 | long long int mitad,a,ini,fin,b,cont,Ma,Mb;
| ^
boxes.cpp:25:37: warning: unused variable 'cont' [-Wunused-variable]
25 | long long int mitad,a,ini,fin,b,cont,Ma,Mb;
| ^~~~
boxes.cpp:25:42: warning: unused variable 'Ma' [-Wunused-variable]
25 | long long int mitad,a,ini,fin,b,cont,Ma,Mb;
| ^~
boxes.cpp:25:45: warning: unused variable 'Mb' [-Wunused-variable]
25 | long long int mitad,a,ini,fin,b,cont,Ma,Mb;
| ^~
boxes.cpp:26:19: warning: variable 'res' set but not used [-Wunused-but-set-variable]
26 | long long int res,MIN,sum,l;
| ^~~
boxes.cpp:26:27: warning: unused variable 'sum' [-Wunused-variable]
26 | long long int res,MIN,sum,l;
| ^~~
boxes.cpp:26:31: warning: unused variable 'l' [-Wunused-variable]
26 | long long int res,MIN,sum,l;
| ^