boxes.cpp: In function 'long long int delivery(int, int, int, int*)':
boxes.cpp:28:18: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
l.f = Min(positions[i],l.f);
~~~^~~~~~~~~~~~~~~~~~
boxes.cpp:29:18: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
l.s = Max(positions[i],l.s);
~~~^~~~~~~~~~~~~~~~~~
boxes.cpp:31:18: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
r.f = Min(L-positions[i],r.f);
~~~^~~~~~~~~~~~~~~~~~~~
boxes.cpp:32:18: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
r.s = Max(L-positions[i],r.s);
~~~^~~~~~~~~~~~~~~~~~~~
boxes.cpp:37:10: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
return ans;
^~~