Problem sandd
User maomao
Submission Time 2025-07-13 14:28:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sandd.cpp: In function ‘int getPrice(int)’:
sandd.cpp:9:13: error: expected unqualified-id before ‘new’
9 | int new = abs(supply(P) - demand(P));
| ^~~
sandd.cpp:10:16: error: expected type-specifier before ‘<’ token
10 | if(new < dif) {
| ^
sandd.cpp:11:22: error: expected type-specifier before ‘;’ token
11 | dif = new;
| ^