Problem sandd
User kesleryak
Submission Time 2024-05-11 11:45:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sandd.cpp: In function ‘int getPrice(int)’:
sandd.cpp:5:15: error: ‘high’ was not declared in this scope
5 | int low = 0; high = P;
| ^~~~
sandd.cpp:22:2: error: expected ‘}’ at end of input
22 | }
| ^
sandd.cpp:4:22: note: to match this ‘{’
4 | int getPrice (int P) {
| ^