Problem stamps
User hwy
Submission Time 2023-07-22 22:26:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

stamps.cpp:7:7: error: expected constructor, destructor, or type conversion before ‘(’ token
7 | memset(memo, -1, sizeof(memo));
| ^
stamps.cpp: In function ‘int dp(int, int)’:
stamps.cpp:20:81: error: expected ‘;’ before ‘}’ token
20 | return memo[index][remP] = min(dp(index+1, remP), 1+dp(index, remP-lst[index]))
| ^
| ;
21 | }
| ~