0_0_17780479_31208.cpp: In function 'int main()':
0_0_17780479_31208.cpp:29:17: error: reference to 'next' is ambiguous
next[i][j] = n + 1;
^
0_0_17780479_31208.cpp:10:27: note: candidates are: int next [5005][5005]
int a[5005],g[5005][5005],next[5005][5005],prev[5005][5005],f[5005][5005];
^
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/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_17780479_31208.cpp:1:
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_17780479_31208.cpp:30:16: error: reference to 'prev' is ambiguous
memset(prev,0,sizeof(prev));
^
0_0_17780479_31208.cpp:10:44: note: candidates are: int prev [5005][5005]
int a[5005],g[5005][5005],next[5005][5005],prev[5005][5005],f[5005][5005];
^
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/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_17780479_31208.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:193:5: note: template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
prev(_BidirectionalIterator __x, typename
^
0_0_17780479_31208.cpp:30:30: error: reference to 'prev' is ambiguous
memset(prev,0,sizeof(prev));
^
0_0_17780479_31208.cpp:10:44: note: candidates are: int prev [5005][5005]
int a[5005],g[5005][5005],next[5005][5005],prev[5005][5005],f[5005][5005];
^
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/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_17780479_31208.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:193:5: note: template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
prev(_BidirectionalIterator __x, typename
^
0_0_17780479_31208.cpp:35:17: error: reference to 'next' is ambiguous
next[i][a[j]] = min(next[i][a[j]],j);
^
0_0_17780479_31208.cpp:10:27: note: candidates are: int next [5005][5005]
int a[5005],g[5005][5005],next[5005][5005],prev[5005][5005],f[5005][5005];
^
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/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_17780479_31208.cpp:1:
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_17780479_31208.cpp:35:37: error: reference to 'next' is ambiguous
next[i][a[j]] = min(next[i][a[j]],j);
^
0_0_17780479_31208.cpp:10:27: note: candidates are: int next [5005][5005]
int a[5005],g[5005][5005],next[5005][5005],prev[5005][5005],f[5005][5005];
^
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/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_17780479_31208.cpp:1:
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_17780479_31208.cpp:38:17: error: reference to 'prev' is ambiguous
prev[i][a[j]] = max(prev[i][a[j]],j);
^
0_0_17780479_31208.cpp:10:44: note: candidates are: int prev [5005][5005]
int a[5005],g[5005][5005],next[5005][5005],prev[5005][5005],f[5005][5005];
^
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/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_17780479_31208.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:193:5: note: template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
prev(_BidirectionalIterator __x, typename
^
0_0_17780479_31208.cpp:38:37: error: reference to 'prev' is ambiguous
prev[i][a[j]] = max(prev[i][a[j]],j);
^
0_0_17780479_31208.cpp:10:44: note: candidates are: int prev [5005][5005]
int a[5005],g[5005][5005],next[5005][5005],prev[5005][5005],f[5005][5005];
^
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/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_17780479_31208.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_funcs.h:193:5: note: template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type)
prev(_BidirectionalIterator __x, typename
^
0_0_17780479_31208.cpp:48:34: error: reference to 'next' is ambiguous
int tmp1 = f[next[i][a[j - 1]]][prev[j - 1][a[j - 1]]],tmp2= g[next[i][a[j - 1]]][prev[j - 1][a[j - 1]]];
^
0_0_17780479_31208.cpp:10:27: note: candidates are: int next [5005][5005]
int a[5005],g[5005][5005],next[5005][5005],prev[5005][5005],f[5005][5005];
^
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/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
from 0_0_17780479_31208.cpp:1:
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_17780479_31208.cpp:48:53: error: reference to 'prev' is ambiguous
int tmp1 = f[next[i][a[j - 1]]][prev[j - 1][a[j - 1]]],tmp2= g[next[i][a[j - 1]]][prev[j - 1][a[j - 1]]];
^
0_0_17780479_31208.cpp:10:44: note: candidates are: int prev [5005][5005]
int a[5005],g[5005][5005],next[5005][5005],prev[5005][5005],f[5005][5005];
|