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