Problem lunchbox
User Hytoh
Submission Time 2023-01-30 17:56:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:9:5: error: expected initializer before ‘for’
9 | for (int i = 0; i < schools; i++) {
| ^~~
lunchbox.cpp:9:22: error: ‘i’ was not declared in this scope
9 | for (int i = 0; i < schools; i++) {
| ^
lunchbox.cpp:14:11: error: ‘lunchbox’ was not declared in this scope; did you mean ‘sumlunchbox’?
14 | sort (lunchbox, lunchbox+schools);
| ^~~~~~~~
| sumlunchbox