Problem | lunchbox |
---|---|
User | ybc |
Submission Time | 2023-11-15 10:03:52 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:19:2: error: expected ‘}’ before ‘else’
19 | else if (N<lunchbox[i]) break;
| ^~~~
lunchbox.cpp:16:20: note: to match this ‘{’
16 | if (N>lunchbox[i]){
| ^
lunchbox.cpp: At global scope:
lunchbox.cpp:22:1: error: expected declaration before ‘}’ token
22 | }
| ^
lunchbox.cpp:23:1: error: ‘cout’ does not name a type
23 | cout << sum;
| ^~~~
lunchbox.cpp:26:1: error: expected declaration before ‘}’ token
26 | }
| ^