Problem milkweed
User popperoni
Submission Time 2023-11-19 18:33:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

milkweed.cpp: In function ‘int main()’:
milkweed.cpp:11:39: error: no matching function for call to ‘std::vector<char>::vector(int&, std::vector<char>)’
11 | vector<char> e(b, vector<char> (a));
| ^
In file included from /usr/include/c++/9/vector:67,
from milkweed.cpp:2:
/usr/include/c++/9/bits/stl_vector.h:650:2: note: candidate: ‘template<class _InputIterator, class> std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&)’
650 | vector(_InputIterator __first, _InputIterator __last,
| ^~~~~~
/usr/include/c++/9/bits/stl_vector.h:650:2: note: template argument deduction/substitution failed:
milkweed.cpp:11:39: note: deduced conflicting types for parameter ‘_InputIterator’ (‘int’ and ‘std::vector<char>’)
11 | vector<char> e(b, vector<char> (a));
|