Problem boxes
User justin271828
Submission Time 2026-09-25 15:11:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

boxes.cpp: In function ‘long long int delivery(long long int, long long int, long long int, long long int)’:
boxes.cpp:12:28: error: invalid types ‘long long int[long long int]’ for array subscript
12 | int start = arr[(temp)%N];
| ^
boxes.cpp:13:42: error: invalid types ‘long long int[long long int]’ for array subscript
13 | int end = arr[min(temp+K-1, 2*N+i-2)%N];
| ^
boxes.cpp:22:38: error: no matching function for call to ‘min(long long int [K], long long int&)’
22 | for (int k: ans) answer = min(ans, k);
| ^
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from boxes.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:198:5: note: candidate: ‘template<