Problem sandd
User yeddy
Submission Time 2024-05-18 09:09:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sandd.cpp: In function ‘int getPrice(int)’:
sandd.cpp:5:15: error: ‘high’ was not declared in this scope
5 | int low=0;high=P-1;
| ^~~~
sandd.cpp:12:22: error: expected ‘;’ before ‘}’ token
12 | low=mid+1
| ^
| ;
13 | }else if(s>d){
| ~