Problem sandd
User SMILE
Submission Time 2024-05-11 11:54:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sandd.cpp:5:10: error: default arguments are only permitted for function parameters [-fpermissive]
5 | int low = 0, high = P;
| ^
sandd.cpp:5:15: error: ‘high’ has not been declared
5 | int low = 0, high = P;
| ^~~~
sandd.cpp:5:22: error: ‘P’ was not declared in this scope
5 | int low = 0, high = P;
| ^
sandd.cpp:5:20: error: default arguments are only permitted for function parameters [-fpermissive]
5 | int low = 0, high = P;
| ^
sandd.cpp:5:23: error: expected ‘)’ before ‘;’ token
5 | int low = 0, high = P;
| ^
| )
sandd.cpp:4:21: note: to match this ‘(’
4 | int getPrice (int P)(
| ^
sandd.cpp:4:1: error: ‘getPrice’ declared as function returning a function
4 | int getPrice (int P)(
| ^~~
sandd.cpp:6:2: error: expe