Problem lunchbox
User Dam
Submission Time 2023-01-17 13:54:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:12:24: error: ‘h’ was not declared in this scope
12 | for(int k=0;k<schools;h++){ki = lunch_num-school_list[k];if(ki<0){break;}else{lunch_num=ki;counter++;}}cout << counter;return 0;
| ^
lunchbox.cpp:13:1: error: expected ‘}’ at end of input
13 | }
| ^
lunchbox.cpp:4:11: note: to match this ‘{’
4 | int main(){
| ^