| Problem | moneychanger |
|---|---|
| User | PerihelionfromAphelion |
| Submission Time | 2026-09-20 23:11:12 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
moneychanger.cpp: In function ‘int32_t main()’:
moneychanger.cpp:14:25: error: expression list treated as compound expression in initializer [-fpermissive]
14 | int dp(v + 1, LLONG_MAX);
| ^
moneychanger.cpp:15:6: error: invalid types ‘long long int[int]’ for array subscript
15 | dp[0] = 0;
| ^
moneychanger.cpp:18:36: error: invalid types ‘long long int[long long int]’ for array subscript
18 | if (x - a[i] >= 0 && dp[x - a[i]] != LLONG_MAX) dp[x] = min(dp[x], dp[x - a[i]] + 1);
| ^
moneychanger.cpp:18:56: error: invalid types ‘long long int[long long int]’ for array subscript
18 | if (x - a[i] >= 0 && dp[x - a[i]] != LLONG_MAX) dp[x] = min(dp[x], dp[x - a[i]] + 1);
| ^
moneychanger.cpp:18:68: error: invalid types ‘long long int[long long int]’ for array subscript
18 | if (