Problem duckhunt3
User boaznumberd5555
Submission Time 2024-12-18 11:25:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt3.cpp: In function ‘int dp(int, std::unordered_set<int>)’:
duckhunt3.cpp:19:29: error: too few arguments to function ‘int dp(int, std::unordered_set<int>)’
19 | memo[m] = min(dp(m-1)+costs[m],dp(m+1,s));
| ^
duckhunt3.cpp:9:5: note: declared here
9 | int dp(int m, unordered_set<int> s){
| ^~
duckhunt3.cpp:26:11: error: a function-definition is not allowed here before ‘{’ token
26 | int main(){
| ^
duckhunt3.cpp:37:1: error: expected ‘}’ at end of input
37 | }
| ^
duckhunt3.cpp:9:36: note: to match this ‘{’
9 | int dp(int m, unordered_set<int> s){
| ^