Problem moneychanger
User Elwinthenerd
Submission Time 2024-11-14 15:02:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

moneychanger.cpp: In function ‘int main()’:
moneychanger.cpp:12:18: error: ‘n’ was not declared in this scope
12 | for (int j=0;j<n;j++) {
| ^
moneychanger.cpp:18:15: error: ‘inf’ was not declared in this scope; did you mean ‘ynf’?
18 | if (dp[V] == inf) {
| ^~~
| ynf