Problem sandd
User bz
Submission Time 2023-11-21 17:29:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sandd.cpp: In function ‘int getPrice(int)’:
sandd.cpp:8:20: error: ‘h’ was not declared in this scope; did you mean ‘hi’?
8 | int mid = (h + l)/2;
| ^
| hi
sandd.cpp:8:24: error: ‘l’ was not declared in this scope; did you mean ‘lo’?
8 | int mid = (h + l)/2;
| ^
| lo
sandd.cpp:12:12: error: ‘mid’ was not declared in this scope
12 | return mid;
| ^~~