boxes.cpp: In function 'long long int delivery(int, int, int, int*)':
boxes.cpp:24:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=K-1 ; i<lst1.size() ; idx1=i, i+=K) res+=2*lst1[i];
~^~~~~~~~~~~~
boxes.cpp:25:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=K-1 ; i<lst2.size() ; idx2=i, i+=K) res+=2*(L-lst2[i]);
~^~~~~~~~~~~~
boxes.cpp:26:29: warning: conversion to 'int' from 'std::vector<int>::size_type {aka long unsigned int}' may alter its value [-Wconversion]
int rm1=lst1.size()-idx1-1, rm2=lst2.size()-idx2-1;
~~~~~~~~~~~~~~~~^~
boxes.cpp:26:53: warning: conversion to 'int' from 'std::vector<int>::size_type {aka long unsigned int}' may alter its value [-Wconversion]
int rm1=lst1.size()-idx1-1, rm2=lst2.size()-idx2-1;
~~~~~~~~~~~~~~~~^~