Problem sandd
User laurenpak
Submission Time 2025-02-19 06:31:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sandd.cpp: In function ‘int getPrice(int)’:
sandd.cpp:13:40: error: ‘demand’ cannot be used as a function
13 | long long demand = demand(midpt);
| ^
sandd.cpp:15:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
15 | if (supply > demand){
| ^~~~~~
sandd.cpp:18:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
18 | if (demand > supply){
| ^~~~~~