Problem | sandd |
---|---|
User | f0restf1re |
Submission Time | 2023-02-19 16:50:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sandd.cpp:3:1: error: expected initializer before ‘using’
3 | using namespace std;
| ^~~~~
sandd.cpp: In function ‘int getPrice(int)’:
sandd.cpp:7:2: error: ‘ll’ was not declared in this scope
7 | ll l=0, h=P, m=0;
| ^~
sandd.cpp:8:10: error: ‘h’ was not declared in this scope
8 | while ((h-l)>1){
| ^
sandd.cpp:8:12: error: ‘l’ was not declared in this scope
8 | while ((h-l)>1){
| ^
sandd.cpp:9:5: error: expected ‘;’ before ‘m’
9 | ll m=(h+l)/2;
| ^~
| ;
sandd.cpp:10:5: error: expected ‘;’ before ‘supp’
10 | ll supp=supply(m), dem=demand(m);
| ^~~~~
| ;
sandd.cpp:11:7: error: ‘supp’ was not declared in this scope; did you mean ‘supply’?
11 | if (supp>dem) h=m;
| ^~~~
| supply
sandd.cpp:11:12: error: ‘dem’ was not declared in this scope; did you mean ‘drem’?