Problem sandd
User ZivTheONe
Submission Time 2024-05-30 12:54:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sandd.cpp: In function ‘ll getPrice(ll)’:
sandd.cpp:8:8: error: expected unqualified-id before ‘=’ token
8 | ll = 0, r = P, mid;
| ^
sandd.cpp:9:12: error: ‘r’ was not declared in this scope
9 | while (r >= l){
| ^
sandd.cpp:9:17: error: ‘l’ was not declared in this scope
9 | while (r >= l){
| ^
sandd.cpp:10:3: error: ‘mid’ was not declared in this scope
10 | mid = (r + l) / 2;
| ^~~
sandd.cpp:12:7: error: ‘dQ’ was not declared in this scope; did you mean ‘sQ’?
12 | if (dQ == sQ) return mid;
| ^~
| sQ
sandd.cpp:13:7: error: ‘dQ’ was not declared in this scope; did you mean ‘sQ’?
13 | if (dQ > sQ) l = mid + 1;
| ^~
| sQ