| Problem | lunchbox |
|---|---|
| User | yoshiokalili |
| Submission Time | 2026-02-09 16:42:55 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:15:22: error: expected ‘;’ before ‘)’ token
15 | for (int i; i<m, i++) {
| ^
| ;
lunchbox.cpp:21:8: error: found ‘:’ in nested-name-specifier, expected ‘::’
21 | for (i:arr) {
| ^
| ::
lunchbox.cpp:21:7: error: ‘i’ has not been declared
21 | for (i:arr) {
| ^
lunchbox.cpp:26:1: error: expected primary-expression before ‘}’ token
26 | }
| ^
lunchbox.cpp:25:24: error: expected ‘)’ before ‘}’ token
25 | cout << count << "\n";
| ^
| )
26 | }
| ~
lunchbox.cpp:21:6: note: to match this ‘(’
21 | for (i:arr) {
| ^
lunchbox.cpp:26:1: error: expected primary-expression before ‘}’ token
26 | }
| ^