Problem | rabbitlineup |
---|---|
User | penguin133 |
Submission Time | 2023-01-10 00:39:38 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
rabbitlineup.cpp: In function ‘void dp(ll)’:
rabbitlineup.cpp:23:23: error: reference to ‘prev’ is ambiguous
23 | for(int i=0;i<k;i++)prev[i] = X[i];
| ^~~~
In file included from /usr/include/c++/9/bits/stl_algobase.h:66,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from rabbitlineup.cpp:1:
/usr/include/c++/9/bits/stl_iterator_base_funcs.h:224:5: note: candidates are: ‘template<class _BidirectionalIterator> constexpr _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)’
224 | prev(_BidirectionalIterator __x, typename
| ^~~~
rabbitlineup.cpp:18:30: note: ‘std::unordered_map<int, long long int> prev’
18 | unordered_map<int, ll> memo, prev;<