Problem | moneychanger |
---|---|
User | ChenXuan |
Submission Time | 2025-01-04 18:56:26 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
moneychanger.cpp: In function ‘int min_coins(int)’:
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/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x8