Problem | fenwicktree |
---|---|
User | Daddy |
Submission Time | 2023-11-09 10:00:49 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fenwicktree.cpp: In function ‘int main()’:
fenwicktree.cpp:11:15: error: class template argument deduction failed:
11 | vector A(N);
| ^
fenwicktree.cpp:11:15: error: no matching function for call to ‘vector(int&)’
In file included from /usr/include/c++/9/vector:67,
from fenwicktree.cpp:2:
/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:1872:5: note: template argument deduction/substitution failed:
fenwicktree.cpp:11:15: note: candidate expects 3 arguments, 1 provided
11 | vector A(N);
| ^
In file included from /usr/include/c++/9/vector:67,