advisor.cpp: In function 'void ComputeAdvice(int*, int, int, int)':
advisor.cpp:43:13: error: reference to 'next' is ambiguous
next[paint[i][j]] = paint[i][j+1];
^~~~
advisor.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 advisor.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
^~~~
advisor.cpp:46:13: error: reference to 'next' is ambiguous
next[paint[i][t-1]] = 999999999;
^~~~
advisor.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 advisor.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
^~~~
advisor.cpp:60:26: error: reference to 'next' is ambiguous
q.push(make_pair(next[i],make_pair(t,top.second.second)));
^~~~
advisor.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 advisor.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: In function 'void Assist(unsigned char*, int, int, int)':
assistant.cpp:15:8: warning: unused variable 'j' [-Wunused-variable]
int i,j;
^