Problem | milkweed |
---|---|
User | nianhe |
Submission Time | 2023-11-10 16:38:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
milkweed.cpp: In function ‘int invasionTime(int, int, int, int, std::vector<std::__cxx11::basic_string<char> >&)’:
milkweed.cpp:10:55: error: no match for ‘operator+’ (operand types are ‘std::vector<int>’ and ‘int’)
10 | vector<vector<int>> pasture(Y+5, vector<int>(X, 0)+5);
| ~~~~~~~~~~~~~~~~~^~
| | |
| std::vector<int> int
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from milkweed.cpp:1:
/usr/include/c++/9/bits/stl_iterator.h:423:5: note: candidate: ‘template<class _Iterator> constexpr std::reverse_