Problem sandd
User n1k3
Submission Time 2024-05-25 11:00:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sandd.cpp: In function ‘int getPrice(int)’:
sandd.cpp:13:12: error: ‘high’ was not declared in this scope; did you mean ‘hi’?
13 | if(s>d)high=mid-1;
| ^~~~
| hi
sandd.cpp:15:15: error: expected ‘;’ before ‘return’
15 | else(s==d)return mid;
| ^~~~~~
| ;