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

Compile Error

lunchbox.cpp:1:2: error: stray ‘#’ in program
1 | <#include iostream>
| ^
lunchbox.cpp:1:1: error: expected unqualified-id before ‘<’ token
1 | <#include iostream>
| ^
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:5:2: error: ‘cin’ was not declared in this scope
5 | cin >> total;
| ^~~
lunchbox.cpp:8:2: error: ‘array’ was not declared in this scope
8 | array n[];
| ^~~~~
lunchbox.cpp:10:10: error: ‘n’ was not declared in this scope
10 | cin >> n[i];
| ^
lunchbox.cpp:14:6: error: ‘n’ was not declared in this scope
14 | if(n[count] > n[count + 1]){
| ^
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:
lunchbo