Problem lunchbox
User yikai
Submission Time 2026-02-20 15:06:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:9:18: error: expected ‘;’ before ‘<’ token
9 | for(int i = 0, i < m, i ++){
| ^~
| ;
lunchbox.cpp:9:19: error: expected primary-expression before ‘<’ token
9 | for(int i = 0, i < m, i ++){
| ^
lunchbox.cpp:9:28: error: expected ‘;’ before ‘)’ token
9 | for(int i = 0, i < m, i ++){
| ^
| ;
lunchbox.cpp:12:24: error: no matching function for call to ‘end()’
12 | sort(k.begin(), k,end());
| ^
In file included from /usr/include/c++/9/bits/range_access.h:36,
from /usr/include/c++/9/string:54,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,