Problem | moneychanger |
---|---|
User | ChenXuan |
Submission Time | 2025-01-04 18:55:45 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
moneychanger.cpp: In function ‘int min_coins(int)’:
moneychanger.cpp:16:9: error: ‘min_coins_for__value’ was not declared in this scope; did you mean ‘min_coins_for_value’?
16 | if (min_coins_for__value[val] != -1) {
| ^~~~~~~~~~~~~~~~~~~~
| min_coins_for_value
moneychanger.cpp:17:16: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive]
17 | return min_coins_for_value;
| ^~~~~~~~~~~~~~~~~~~
| |
| int*
moneychanger.cpp: In function ‘int main()’:
moneychanger.cpp:50:26: error: ‘v’ was not declared in this scope
50 | for (int x = 0; x <= v; x++) {
| ^
moneychanger.cpp:57:32: error: no matching function for call to ‘std::vector<int>::push_back(std::vector<int>&)’
57 | denoms.push_back(denoms);
| ^
In file included from /usr/