Problem | weddingcoins |
---|---|
User | wezmaster |
Submission Time | 2023-11-15 21:05:34 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:9:5: error: ‘vector’ was not declared in this scope
9 | vector<long long> coins_notes[] = {10000, 5000, 1000, 500, 100, 50, 10, 5, 1};
| ^~~~~~
weddingcoins.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 |
weddingcoins.cpp:9:12: error: expected primary-expression before ‘long’
9 | vector<long long> coins_notes[] = {10000, 5000, 1000, 500, 100, 50, 10, 5, 1};
| ^~~~
weddingcoins.cpp:12:32: error: ‘coins_notes’ was not declared in this scope
12 | for (int i = 0; i < sizeof(coins_notes) / sizeof(coins_notes[0]); ++i) {
| ^~~~~~~~~~~