Problem lunchbox
User smartsword
Submission Time 2025-03-26 16:10:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:19:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
19 | sort(a, a+m);
| ^~~~
| qsort
lunchbox.cpp:21:19: error: expected ‘;’ before ‘<’ token
21 | for (int i = 0, i < m; i++){
| ^~
| ;
lunchbox.cpp:21:20: error: expected primary-expression before ‘<’ token
21 | for (int i = 0, i < m; i++){
| ^