Problem | sandd |
---|---|
User | TheInvadr |
Submission Time | 2023-12-14 22:07:35 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sandd.cpp: In function ‘int getPrice(int)’:
sandd.cpp:11:38: error: invalid type argument of unary ‘*’ (have ‘long long int’)
11 | long long int sup = *supply(m);
| ^
sandd.cpp:12:38: error: invalid type argument of unary ‘*’ (have ‘long long int’)
12 | long long int 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;
| ^~~~~~