Problem lunchbox
User senkyte
Submission Time 2024-02-14 08:15:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:8:6: error: storage size of ‘n’ isn’t known
8 | int n[];
| ^
lunchbox.cpp:17:3: error: expected ‘}’ before ‘else’
17 | else{
| ^~~~
lunchbox.cpp:14:30: note: to match this ‘{’
14 | if(n[count] > n[count + 1]){
| ^
lunchbox.cpp: At global scope:
lunchbox.cpp:22:1: error: expected declaration before ‘}’ token
22 | }
| ^