boxes.cpp: In function 'long long int delivery(int, int, int, int*)':
boxes.cpp:20:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
20 | for (int i = 1; i <= lpos.size(); i++)
| ~~^~~~~~~~~~~~~~
boxes.cpp:24:63: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} may change value [-Wconversion]
24 | ldp[i] += static_cast<long long>(lpos[i-1]) * 2;
| ^
boxes.cpp:26:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | for (int i = 1; i <= rpos.size(); i++)
| ~~^~~~~~~~~~~~~~
boxes.cpp:30:65: warning: conversion from 'long long int' to '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} may change value [-Wconversion]
30 | rdp[i] += static_cast<long long>(L+rpos[i-1]) * 2;
| ^
boxes.cpp:33:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
33 | if (middle%K)
| ^~
boxes.cpp:35:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
35 | if (K == 1)
| ^~
boxes.cpp:41:41: warning: comparison of integer expressions of different signedness: 'std::vector<long long int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
41 | if (lpos.size() >= lremainder && rpos.size() >= remainder-lremainder)
| ~~~~~~~~~~~~^~~~~~~~~~~~~
boxes.cpp:41:70: warning: comparison of integer expressions of different signedness: 'std::vector<long long int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
41 | if (lpos.size() >= lremainder && rpos.size() >= remainder-lremainder)
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~