Problem lunchbox
User Leeyee
Submission Time 2025-08-04 17:31:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:16:11: error: invalid types ‘long long int[int]’ for array subscript
16 | d += c[i];
| ^
lunchbox.cpp:17:6: error: expected ‘(’ before ‘d’
17 | if d > c[i];
| ^
| (
lunchbox.cpp:18:4: error: ‘e’ was not declared in this scope
18 | e = c[i];
| ^
lunchbox.cpp:18:11: error: invalid types ‘long long int[int]’ for array subscript
18 | e = c[i];
| ^