Problem | lunchbox |
---|---|
User | KingKian |
Submission Time | 2023-09-14 08:30:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:12:36: error: expected ‘;’ before ‘)’ token
12 | for(int i = 0; i < schools, i++)
| ^
| ;
lunchbox.cpp:19:21: error: expected ‘;’ before ‘<’ token
19 | for(int i = 0, i < schools - 2, i++)
| ^~
| ;
lunchbox.cpp:19:22: error: expected primary-expression before ‘<’ token
19 | for(int i = 0, i < schools - 2, i++)
| ^
lunchbox.cpp:19:40: error: expected ‘;’ before ‘)’ token
19 | for(int i = 0, i < schools - 2, i++)
| ^
| ;
lunchbox.cpp:21:30: error: invalid types ‘int[int]’ for array subscript
21 | if (schoolboxwanted[i] + schoolboxwanted[i + 1] + schoolboxwanted[i + 2] <= lunchbox)