Problem | fruits_noi |
---|---|
User | jlallas384 |
Submission Time | 2023-06-14 12:30:23 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fruits_noi.cpp: In function ‘int main()’:
fruits_noi.cpp:23:30: error: no match for ‘operator=’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::vector<long long int> >, std::vector<long long int> >::value_type’ {aka ‘std::vector<long long int>’} and ‘std::vector<int>’)
23 | dp[0] = vector<int>(n + 1, 0);
| ^
In file included from /usr/include/c++/9/vector:72,
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 fruits_noi.cpp:1:
/usr/include/c++/9/bits/vector.tcc:198:5: note: candidate: ‘std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = long long int; _Alloc = s