Problem sandd
User yc
Submission Time 2025-06-02 12:46:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sandd.cpp: In function ‘int getPrice(int)’:
sandd.cpp:6:8: error: ‘supply’ was not declared in this scope
6 | if ( supply(P) > demand(P) ) a = x+1;
| ^~~~~~
sandd.cpp:6:20: error: ‘demand’ was not declared in this scope
6 | if ( supply(P) > demand(P) ) a = x+1;
| ^~~~~~
sandd.cpp:9:2: error: expected ‘}’ at end of input
9 | }
| ^
sandd.cpp:1:20: note: to match this ‘{’
1 | int getPrice(int P){
| ^