Problem lunchbox
User xiaocai918
Submission Time 2026-09-13 10:17:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:12:18: error: expected ‘;’ before ‘<’ token
12 | for(int i = 0, i < m, ++i) {
| ^~
| ;
lunchbox.cpp:12:19: error: expected primary-expression before ‘<’ token
12 | for(int i = 0, i < m, ++i) {
| ^
lunchbox.cpp:12:27: error: expected ‘;’ before ‘)’ token
12 | for(int i = 0, i < m, ++i) {
| ^
| ;
lunchbox.cpp:16:26: error: expected ‘;’ before ‘int’
16 | sort(k.begin(), k.end())
| ^
| ;
17 |
18 | int school_count;
| ~~~
lunchbox.cpp:19:18: error: expected ‘;’ before ‘<’ token
19 | for(int i = 0, i < m, ++i) {
| ^~
| ;
lunchbox.cpp:19:19: error: expected p