boxes.cpp: In function 'long long int delivery(int, int, int, int*)':
boxes.cpp:28:14: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
for (int i=n-1; i>=0; i--) {
~^~
boxes.cpp:32:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (int i=0; i<n; i++) cout << dpleft[i] << ' '; cout << endl;
^~~
boxes.cpp:32:52: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
for (int i=0; i<n; i++) cout << dpleft[i] << ' '; cout << endl;
^~~~
boxes.cpp:33:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for (int i=0; i<n; i++) cout << dpright[i] << ' '; cout << endl;
^~~
boxes.cpp:33:53: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
for (int i=0; i<n; i++) cout << dpright[i] << ' '; cout << endl;
^~~~
boxes.cpp:39:13: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
int unt = l;
^
boxes.cpp:40:19: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
if (i >= 1) unt += dpleft[i-1];
~~~~^~~~~~~~~~~~~~
boxes.cpp:41:26: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
if (i + k < n - 1) unt += dpright[i+k+1];
~~~~^~~~~~~~~~~~~~~~~