Problem lunchbox
User austenj
Submission Time 2026-06-23 15:46:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:14:25: error: expected ‘;’ before ‘for’
14 | sort(k.begin(), k.end())
| ^
| ;
15 | for (int i = 0; i < m; i++{
| ~~~
lunchbox.cpp:15:17: error: ‘i’ was not declared in this scope
15 | for (int i = 0; i < m; i++{
| ^
lunchbox.cpp:24:1: error: expected primary-expression before ‘)’ token
24 | )
| ^
lunchbox.cpp:24:1: error: expected ‘}’ at end of input
lunchbox.cpp:7:12: note: to match this ‘{’
7 | int main() {
| ^