Problem lunchbox
User helloworld
Submission Time 2023-02-20 12:43:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:9:10: error: ‘i’ was not declared in this scope
9 | cin>>k[i];
| ^
lunchbox.cpp:14:11: error: ‘j’ was not declared in this scope
14 | if(n>=k[j])
| ^
lunchbox.cpp:23:1: error: expected ‘}’ at end of input
23 | }
| ^
lunchbox.cpp:4:1: note: to match this ‘{’
4 | {
| ^