Problem lunchbox
User Qxhb3
Submission Time 2023-04-16 15:02:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:13:31: error: expected ‘;’ before ‘int’
13 | sort(k, k+m, greater<int>())
| ^
| ;
14 | int cnt;
| ~~~
lunchbox.cpp:18:14: error: expected initializer before ‘++’ token
18 | int cnt++;
| ^~
lunchbox.cpp:21:11: error: expected primary-expression before ‘int’
21 | cout << int cnt << endl;
| ^~~