Problem sandd
User mingging1748
Submission Time 2025-01-26 20:28:08
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sandd.cpp: In function ‘int getPrice(int)’:
sandd.cpp:8:9: error: ‘ll’ was not declared in this scope
8 | ll s = supply(mid);
| ^~
sandd.cpp:9:11: error: expected ‘;’ before ‘d’
9 | ll d = demand(mid);
| ^~
| ;
sandd.cpp:11:13: error: ‘s’ was not declared in this scope
11 | if (s == -1 || d == -1) {
| ^
sandd.cpp:11:24: error: ‘d’ was not declared in this scope
11 | if (s == -1 || d == -1) {
| ^
sandd.cpp:20:13: error: ‘s’ was not declared in this scope
20 | if (s == d) {
| ^
sandd.cpp:20:18: error: ‘d’ was not declared in this scope
20 | if (s == d) {
| ^