Problem moneychanger
User mathemactics
Submission Time 2023-11-10 11:13:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

moneychanger.cpp: In function ‘int main()’:
moneychanger.cpp:20:53: error: expected ‘]’ before ‘)’ token
20 | dp[i] = min(dp[i], dp[i-coins[j] + 1);
| ^
| ]
moneychanger.cpp:25:18: error: ‘inf’ was not declared in this scope; did you mean ‘ynf’?
25 | if (dp[v] == inf){
| ^~~
| ynf