boxes.cpp: In function 'long long int delivery(int, int, int, int*)':
boxes.cpp:17:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | for (int i = K; i < v.size(); i++) dpl[i] = dpl[i - K] + min(v[i] * 2, v[i] + L - v[i]);
| ~~^~~~~~~~~~
boxes.cpp:18:22: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
18 | int c = v.size() - 1;
| ~~~~~~~~~^~~
boxes.cpp:20:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
20 | for (int i = K; i < v.size(); i++) dpr[c - i] = dpr[c - i + K] + min((L - v[c - i]) * 2, v[c - i] + L - v[c - i]);
| ~~^~~~~~~~~~
boxes.cpp:22:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | for (int i = 0; i < v.size() - 1; i++) ans = min(ans, dpl[i] + dpr[i + 1]);
| ~~^~~~~~~~~~~~~~