Problem lunchbox
User dfsssssssssfsdfdssgdfs
Submission Time 2026-01-07 16:49:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:14:11: error: ‘accumulate’ was not declared in this scope
14 | if (n != accumulate(schools.begin(), schools.end(), 0);){
| ^~~~~~~~~~
lunchbox.cpp:14:57: error: expected primary-expression before ‘)’ token
14 | if (n != accumulate(schools.begin(), schools.end(), 0);){
| ^
lunchbox.cpp:21:4: error: continue statement not within a loop
21 | continue;
| ^~~~~~~~