Problem sandd
User back2square1
Submission Time 2023-12-04 18:30:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sandd.cpp: In function ‘int getPrice(int)’:
sandd.cpp:8:18: error: ‘high_low’ was not declared in this scope
8 | int m = (high_low)>>1;
| ^~~~~~~~
sandd.cpp:9:43: error: ‘mid’ was not declared in this scope
9 | if (supply(m) >= demand(m)) low = mid;
| ^~~
sandd.cpp:10:21: error: ‘mid’ was not declared in this scope
10 | else high = mid;
| ^~~