Problem | nonboringsequences |
---|---|
User | chenweilian |
Submission Time | 2023-03-24 14:34:38 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
nonboringsequences.cpp: In function ‘bool IsBoring(int, int)’:
nonboringsequences.cpp:15:10: error: reference to ‘prev’ is ambiguous
15 | if (prev[mid] < beg && next[mid] >= end)
| ^~~~
In file included from /usr/include/c++/9/bits/stl_algobase.h:66,
from /usr/include/c++/9/algorithm:61,
from nonboringsequences.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
| ^~~~
nonboringsequences.cpp:9:5: note: ‘int prev [200000]’
9 | int prev[MAXN], next[MAXN], last[MAXN];
| ^~~~
nonboringsequences.cpp:15:29: error: reference to ‘next’ is ambiguous
15 | if (prev[mid] < beg && next[m