Problem lunchbox
User ashy101
Submission Time 2024-07-21 22:26:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:14:8: error: expected ‘}’ before ‘;’ token
14 | cout<<0;}
| ^
lunchbox.cpp:13:9: note: to match this ‘{’
13 | if(n==0({
| ^
lunchbox.cpp:14:8: error: expected ‘)’ before ‘;’ token
14 | cout<<0;}
| ^
| )
lunchbox.cpp:13:8: note: to match this ‘(’
13 | if(n==0({
| ^
lunchbox.cpp:14:8: error: expected ‘)’ before ‘;’ token
14 | cout<<0;}
| ^
| )
lunchbox.cpp:13:3: note: to match this ‘(’
13 | if(n==0({
| ^
lunchbox.cpp: At global scope:
lunchbox.cpp:17:6: error: expected constructor, destructor, or type conversion before ‘(’ token
17 | sort(sch.begin(),sch.end());
| ^
lunchbox.cpp:18:2: error: expected unqualified-id before ‘for’
18 | for(ll i=0;i<n;i++){
| ^~~
lunchbox.cpp:18:13: error: ‘i’ d