Problem | moneychanger |
---|---|
User | skibidininja98 |
Submission Time | 2024-06-20 15:17:08 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
moneychanger.cpp: In function ‘int main()’:
moneychanger.cpp:7:5: error: ‘vector’ was not declared in this scope
7 | vector<int> coins(n);
| ^~~~~~
moneychanger.cpp:3:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
2 | #include <iostream>
+++ |+#include <vector>
3 |
moneychanger.cpp:7:12: error: expected primary-expression before ‘int’
7 | vector<int> coins(n);
| ^~~
moneychanger.cpp:9:16: error: ‘coins’ was not declared in this scope
9 | cin >> coins[i];
| ^~~~~
moneychanger.cpp:12:12: error: expected primary-expression before ‘int’
12 | vector<int> dp(v + 1, v + 1);
| ^~~
moneychanger.cpp:13:5: error: ‘dp’ was not declared in this scope
13 | dp[0] = 0;
| ^~
moneychanger.cpp:15:22: error: ‘coins’ was not de