Problem sandd
User TheInvadr
Submission Time 2023-12-14 22:07:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sandd.cpp: In function ‘int getPrice(int)’:
sandd.cpp:11:34: error: invalid type argument of unary ‘*’ (have ‘long long int’)
11 | long long sup = *supply(m);
| ^
sandd.cpp:12:34: error: invalid type argument of unary ‘*’ (have ‘long long int’)
12 | long long dem = *demand(m);
| ^
sandd.cpp:13:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
13 | if(sup==demand)return m;
| ^~~~~~
sandd.cpp:14:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
14 | if(sup>=demand)e=m-1;
| ^~~~~~