Problem ljubomora
User hackerman123
Submission Time 2023-08-05 23:03:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ljubomora.cpp: In function ‘int main()’:
ljubomora.cpp:6:9: error: class template argument deduction failed:
6 | vector v; v.resize(0,m);
| ^
ljubomora.cpp:6:9: error: no matching function for call to ‘vector()’
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from ljubomora.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:1872:5: note: candidate: ‘template<class _InputIterator, class _ValT, class _Allocator, class, class> std::vector(_InputIterator, _InputIterator, _Allocator)-> std::vector<_ValT, _Allocator>’
1872 | vector(_InputIterator, _InputIterator, _Allocator = _Allocator())
| ^~~~~~
/usr/include/c++/9/bits/stl_vector.h