Problem sandd
User c00dingstudygolden
Submission Time 2025-04-26 09:48:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sandd.cpp: In function ‘int getPrice(int)’:
sandd.cpp:8:8: error: ‘lo’ was not declared in this scope; did you mean ‘low’?
8 | while(lo<hi) {
| ^~
| low
sandd.cpp:10:7: error: ‘demand’ was not declared in this scope
10 | if (demand(mid) > supply(mid)) lo = mid+1;
| ^~~~~~
sandd.cpp:10:21: error: ‘supply’ was not declared in this scope
10 | if (demand(mid) > supply(mid)) lo = mid+1;
| ^~~~~~