Problem sandd
User tacticalnerd
Submission Time 2024-05-11 11:53:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sandd.cpp: In function ‘int getPrice(int)’:
sandd.cpp:8:3: error: ‘int64_t’ was not declared in this scope
8 | int64_t s = supply(mid);
| ^~~~~~~
sandd.cpp:9:10: error: expected ‘;’ before ‘d’
9 | int64_t d = demand(mid);
| ^~
| ;
sandd.cpp:10:7: error: ‘s’ was not declared in this scope
10 | if (s == d) {
| ^
sandd.cpp:10:12: error: ‘d’ was not declared in this scope
10 | if (s == d) {
| ^
sandd.cpp:19:1: error: expected ‘}’ at end of input
19 | }
| ^
sandd.cpp:4:22: note: to match this ‘{’
4 | int getPrice (int P) {
| ^