0_0_17120600_17939.cpp: In function 'int main()':
0_0_17120600_17939.cpp:77:16: error: reference to 'next' is ambiguous
memset(next, 0, sizeof(next));
^
0_0_17120600_17939.cpp:9:29: note: candidates are: int next [200010]
int mx[MAXN<<2], arr[MAXN], next[MAXN], mex[MAXN];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60,
from 0_0_17120600_17939.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
0_0_17120600_17939.cpp:77:32: error: reference to 'next' is ambiguous
memset(next, 0, sizeof(next));
^
0_0_17120600_17939.cpp:9:29: note: candidates are: int next [200010]
int mx[MAXN<<2], arr[MAXN], next[MAXN], mex[MAXN];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60,
from 0_0_17120600_17939.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
0_0_17120600_17939.cpp:90:46: error: reference to 'next' is ambiguous
if (mp.find(arr[i]) == mp.end()) next[i] = n+1;
^
0_0_17120600_17939.cpp:9:29: note: candidates are: int next [200010]
int mx[MAXN<<2], arr[MAXN], next[MAXN], mex[MAXN];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60,
from 0_0_17120600_17939.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
0_0_17120600_17939.cpp:91:18: error: reference to 'next' is ambiguous
else next[i] = mp[arr[i]];
^
0_0_17120600_17939.cpp:9:29: note: candidates are: int next [200010]
int mx[MAXN<<2], arr[MAXN], next[MAXN], mex[MAXN];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60,
from 0_0_17120600_17939.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
0_0_17120600_17939.cpp:99:25: error: reference to 'next' is ambiguous
int r = next[i];
^
0_0_17120600_17939.cpp:9:29: note: candidates are: int next [200010]
int mx[MAXN<<2], arr[MAXN], next[MAXN], mex[MAXN];
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:66:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_tree.h:61,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/map:60,
from 0_0_17120600_17939.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
next(_ForwardIterator __x, typename
^
|