Problem sandd
User lexuantung71
Submission Time 2025-03-22 11:28:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sandd.cpp: In function ‘int getPrice(int)’:
sandd.cpp:10:23: error: ‘supply’ was not declared in this scope
10 | long long s = supply(mid);
| ^~~~~~
sandd.cpp:11:23: error: ‘demand’ was not declared in this scope
11 | long long d = demand(mid);
| ^~~~~~
sandd.cpp:25:8: error: expected primary-expression at end of input
25 | if (
| ^
sandd.cpp:25:9: error: expected ‘)’ at end of input
25 | if (
| ~^
| )
sandd.cpp:25:8: error: expected statement at end of input
25 | if (
| ^
sandd.cpp:25:8: error: expected ‘}’ at end of input
sandd.cpp:5:21: note: to match this ‘{’
5 | int getPrice(int P) {
| ^