Problem | coinbag |
---|---|
User | AltheaZ |
Submission Time | 2023-07-10 17:39:45 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
coinbag.cpp:10:37: error: ‘vector’ does not name a type
10 | int maximumValue(int bagSize, const vector<Coin>& coins) {
| ^~~~~~
coinbag.cpp:10:43: error: expected ‘,’ or ‘...’ before ‘<’ token
10 | int maximumValue(int bagSize, const vector<Coin>& coins) {
| ^
coinbag.cpp: In function ‘int maximumValue(int, int)’:
coinbag.cpp:11:13: error: ‘coins’ was not declared in this scope
11 | int n = coins.size();
| ^~~~~
coinbag.cpp:12:5: error: ‘vector’ was not declared in this scope
12 | vector<vector<int>> dp(n + 1, vector<int>(bagSize + 1, 0));
| ^~~~~~
coinbag.cpp:12:5: note: suggested alternatives:
In file included from /usr/include/c++/9/vector:67,
from coinbag.cpp:2:
/usr/include/c++/9/bits/stl_vector.h:386:11: note: ‘std::vector’
386 | class