| Problem | sandd |
|---|---|
| User | fanqie |
| Submission Time | 2026-03-11 14:28:14 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
sandd.cpp: In function ‘int getPrice(int)’:
sandd.cpp:11:24: error: ‘supply’ cannot be used as a function
11 | int supply=supply(mid), demand=demand(mid);
| ^
sandd.cpp:12:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
12 | if (supply>demand) hi=mid;
| ^~~~~~
sandd.cpp:13:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
13 | else if (supply<demand) lo=mid;
| ^~~~~~
sandd.cpp:14:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
14 | else if (supply==demand){
| ^~~~~~
sandd.cpp:16:9: error: expected ‘;’ before ‘}’ token
16 | break
| ^
| ;
17 | }else continue;
| ~