Problem coincombinations
User Hengweezy
Submission Time 2025-01-21 20:53:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

coincombinations.cpp: In function ‘int main()’:
coincombinations.cpp:12:17: error: class template argument deduction failed:
12 | vector vc(v + 1);
| ^
coincombinations.cpp:12:17: error: no matching function for call to ‘vector(int)’
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 coincombinations.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())
| ^~~~~~