Problem | reverseandmin |
---|---|
User | sophi |
Submission Time | 2023-12-11 10:05:09 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
reverseandmin.cpp: In function ‘int reverse(int, int)’:
reverseandmin.cpp:19:74: error: no matching function for call to ‘std::vector<char>::vector(std::string)’
19 | std::vector<char> cur_vec = std::vector<char>(std::to_string(cur));
| ^
In file included from /usr/include/c++/9/vector:67,
from reverseandmin.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:
reverseandmin.cpp:19:74: note: candidate expects 3 arguments, 1 provided
19 | std::vector<char> cur_vec = std::vector<char