Problem lunchbox
User broccolini37
Submission Time 2025-01-22 17:54:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int32_t main()’:
lunchbox.cpp:9:2: error: expected initializer before ‘for’
9 | for(int i = 0; i < m; i++){
| ^~~
lunchbox.cpp:9:17: error: ‘i’ was not declared in this scope
9 | for(int i = 0; i < m; i++){
| ^
lunchbox.cpp:12:7: error: ‘a’ was not declared in this scope
12 | sort(a, a + m);
| ^
lunchbox.cpp: At global scope:
lunchbox.cpp:20:2: error: ‘cout’ does not name a type
20 | cout << schools;
| ^~~~
lunchbox.cpp:21:1: error: expected declaration before ‘}’ token
21 | }
| ^