| Problem | sandd |
|---|---|
| User | yc |
| Submission Time | 2025-06-02 12:45:11 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
sandd.cpp: In function ‘int getPrice(int)’:
sandd.cpp:6:7: error: ‘supply’ was not declared in this scope
6 | if (supply(P)>demand(P)) a = x+1;
| ^~~~~~
sandd.cpp:6:17: error: ‘demand’ was not declared in this scope
6 | if (supply(P)>demand(P)) a = x+1;
| ^~~~~~
sandd.cpp:8:10: error: expected ‘;’ at end of input
8 | return P
| ~^
| ;
sandd.cpp:8:9: error: expected ‘}’ at end of input
8 | return P
| ^
sandd.cpp:4:13: note: to match this ‘{’
4 | while (P>a){
| ^
sandd.cpp:8:9: error: expected ‘}’ at end of input
8 | return P
| ^
sandd.cpp:1:20: note: to match this ‘{’
1 | int getPrice(int P){
| ^