boxes.cpp: In function 'long long int af(int, int, int)':
boxes.cpp:15:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
15 | if ( x == aa . size () - 1 ) return dlta ( rl , 0 );
| ~~^~~~~~~~~~~~~~~~~~~
boxes.cpp:18:47: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
18 | if ( kk != k ) ans = min ( ans , af ( x , k , 1 ) + dlta ( rl , 0 ) );
| ^
boxes.cpp: In function 'long long int bf(int, int, int)':
boxes.cpp:26:12: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | if ( x == bb . size () - 1 ) return dlta ( rl , 0 );
| ~~^~~~~~~~~~~~~~~~~~~
boxes.cpp:29:47: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
29 | if ( kk != k ) ans = min ( ans , bf ( x , k , 1 ) + dlta ( rl , 0 ) );
| ^
boxes.cpp: In function 'long long int f(int)':
boxes.cpp:39:60: warning: conversion from 'long long int' to 'std::vector<int>::value_type' {aka 'int'} may change value [-Wconversion]
39 | for ( int i = 1 ; i <= x ; i ++ ) aa . push_back ( a [i] );
| ~~~~^
boxes.cpp:40:19: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
40 | for ( int i = n ; i > x ; i -- ) bb . push_back ( a [i] );
| ^
boxes.cpp:40:59: warning: conversion from 'long long int' to 'std::vector<int>::value_type' {aka 'int'} may change value [-Wconversion]
40 | for ( int i = n ; i > x ; i -- ) bb . push_back ( a [i] );
| ~~~~^
boxes.cpp:43:20: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
43 | ans = af ( 0 , k , 0 ) + bf ( 0 , k , 0 );
| ^
boxes.cpp:43:39: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
43 | ans = af ( 0 , k , 0 ) + bf ( 0 , k , 0 );
| ^
boxes.cpp: In function 'long long int delivery(int, int, int, int*)':
boxes.cpp:49:9: warning: declaration of 'l' shadows a global declaration [-Wshadow]
49 | int l = 0 , r = n , mid1 , mid2;
| ^
boxes.cpp:5:19: note: shadowed declaration is here
5 | long long n , k , l , a [10000007] , adp [1003][1003][3] , bdp [1003][1003][3];
| ^
boxes.cpp:49:21: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
49 | int l = 0 , r = n , mid1 , mid2;
| ^