boxes.cpp: In function 'long long int delivery(int, int, int, int*)':
boxes.cpp:19:22: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
for(int A=0;A<N;A+=K)
~^~~
boxes.cpp:22:16: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
for(int A=N-1;A>=0;A-=K)
~^~
boxes.cpp:22:25: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
for(int A=N-1;A>=0;A-=K)
~^~~
boxes.cpp:26:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int A=0;A<N;A++)
^~~
boxes.cpp:28:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
return res;
^~~~~~