0_0_36285467_29174.cpp: In function 'void add_to_tree(int, int)':
0_0_36285467_29174.cpp:61:5: error: reference to 'prev' is ambiguous
prev[x] = prevx;
^
0_0_36285467_29174.cpp:22:5: note: candidates are: int prev [55]
int prev[N];
^
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++/algorithm:61,
from 0_0_36285467_29174.cpp:4:
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_36285467_29174.cpp: In function 'void augment()':
0_0_36285467_29174.cpp:82:12: error: reference to 'prev' is ambiguous
memset(prev, -1, sizeof(prev));
^
0_0_36285467_29174.cpp:22:5: note: candidates are: int prev [55]
int prev[N];
^
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++/algorithm:61,
from 0_0_36285467_29174.cpp:4:
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_36285467_29174.cpp:82:29: error: reference to 'prev' is ambiguous
memset(prev, -1, sizeof(prev));
^
0_0_36285467_29174.cpp:22:5: note: candidates are: int prev [55]
int prev[N];
^
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++/algorithm:61,
from 0_0_36285467_29174.cpp:4:
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_36285467_29174.cpp:86:13: error: reference to 'prev' is ambiguous
prev[x] = -2;
^
0_0_36285467_29174.cpp:22:5: note: candidates are: int prev [55]
int prev[N];
^
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++/algorithm:61,
from 0_0_36285467_29174.cpp:4:
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_36285467_29174.cpp:136:51: error: reference to 'prev' is ambiguous
for(int cx = x, cy = y, ty; cx != -2; cx = prev[cx], cy = ty){
^
0_0_36285467_29174.cpp:22:5: note: candidates are: int prev [55]
int prev[N];
^
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++/algorithm:61,
from 0_0_36285467_29174.cpp:4:
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
^
|