assistant.cpp: In function 'void Assist(unsigned char*, int, int, int)':
assistant.cpp:49:13: error: reference to 'next' is ambiguous
next[paint[i][j]] = paint[i][j+1];
^~~~
assistant.cpp:13:5: note: candidates are: int next [100010]
int next[100010];
^~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0,
from /usr/include/c++/7/deque:60,
from /usr/include/c++/7/queue:60,
from assistant.cpp:3:
/usr/include/c++/7/bits/stl_iterator_base_funcs.h:208:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^~~~
assistant.cpp:52:13: error: reference to 'next' is ambiguous
next[paint[i][cnt-1]] = 0;
^~~~
assistant.cpp:13:5: note: candidates are: int next [100010]
int next[100010];
^~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0,
from /usr/include/c++/7/deque:60,
from /usr/include/c++/7/queue:60,
from assistant.cpp:3:
/usr/include/c++/7/bits/stl_iterator_base_funcs.h:208:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^~~~
assistant.cpp:63:26: error: reference to 'next' is ambiguous
q.push(make_pair(next[i],t));
^~~~
assistant.cpp:13:5: note: candidates are: int next [100010]
int next[100010];
^~~~
In file included from /usr/include/c++/7/bits/stl_algobase.h:66:0,
from /usr/include/c++/7/deque:60,
from /usr/include/c++/7/queue:60,
from assistant.cpp:3:
/usr/include/c++/7/bits/stl_iterator_base_funcs.h:208:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^~~~