boxes.cpp: In function 'long long int delivery(int, int, int, int*)':
boxes.cpp:23:25: warning: conversion to 'int' from 'std::vector<int>::size_type {aka long unsigned int}' may alter its value [-Wconversion]
int idx1=lst1.size()-1, idx2=lst2.size()-1;
~~~~~~~~~~~^~
boxes.cpp:23:45: warning: conversion to 'int' from 'std::vector<int>::size_type {aka long unsigned int}' may alter its value [-Wconversion]
int idx1=lst1.size()-1, idx2=lst2.size()-1;
~~~~~~~~~~~^~
boxes.cpp:24:26: warning: conversion to 'int' from 'std::vector<int>::size_type {aka long unsigned int}' may alter its value [-Wconversion]
for(int i=lst1.size()-1 ; i-K+1>=0 ; idx1=i-K, i-=K) res+=2*lst1[i];
~~~~~~~~~~~^~
boxes.cpp:25:26: warning: conversion to 'int' from 'std::vector<int>::size_type {aka long unsigned int}' may alter its value [-Wconversion]
for(int i=lst2.size()-1 ; i-K+1>=0 ; idx2=i-K, i-=K) res+=2*(L-lst2[i]);
~~~~~~~~~~~^~