Problem | lunchbox |
---|---|
User | Chudamani |
Submission Time | 2023-05-08 17:01:46 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:17:14: error: missing template arguments before ‘[’ token
17 | N-=array [i]
| ^
lunchbox.cpp:20:5: error: ‘else’ without a previous ‘if’
20 | else {ans++;}
| ^~~~
lunchbox.cpp:22:11: error: ‘i’ was not declared in this scope
22 | cout << i;
| ^
lunchbox.cpp: At global scope:
lunchbox.cpp:26:5: error: ‘i’ does not name a type
26 | i++;
| ^
lunchbox.cpp:27:3: error: expected declaration before ‘}’ token
27 | }
| ^
lunchbox.cpp:28:3: error: ‘cout’ does not name a type
28 | cout << i;
| ^~~~
lunchbox.cpp:29:1: error: expected declaration before ‘}’ token
29 | }
| ^