Problem lunchbox
User Yifei1234
Submission Time 2023-03-01 17:37:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:7:22: error: expected ‘;’ before ‘for’
7 | sort(hello,hello+n)
| ^
| ;
8 | for(i=0;i<m;i++){
| ~~~
lunchbox.cpp:8:11: error: ‘i’ was not declared in this scope
8 | for(i=0;i<m;i++){
| ^
lunchbox.cpp:11:12: error: expected ‘;’ before numeric constant
11 | counter++1;
| ^
| ;