Problem selectingintervals
User PlayVoltz
Submission Time 2024-01-18 20:19:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

selectingintervals.cpp: In function ‘long long int check(long long int)’:
selectingintervals.cpp:39:19: 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 ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’})
39 | dp[i]=dp[i-1][j];
| ^
In file included from /usr/include/c++/9/vector:72,
from selectingintervals.cpp:3:
/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 = std::allocator<long long int>]’
198 | vector<_Tp, _Alloc>::
| ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/9/bits/vector.tcc:199