| Problem | lunchbox |
|---|---|
| User | jeberechieze |
| Submission Time | 2026-10-28 11:14:38 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:10:22: error: expected ‘)’ before ‘;’ token
10 | while (int count = 0; sum + c[count] <= b; c = c[count++]) {
| ~ ^
| )
lunchbox.cpp:10:37: error: invalid types ‘int [b][<unresolved overloaded function type>]’ for array subscript
10 | while (int count = 0; sum + c[count] <= b; c = c[count++]) {
| ^
lunchbox.cpp:10:56: error: no post-increment operator for type
10 | while (int count = 0; sum + c[count] <= b; c = c[count++]) {
| ^~