0_0_30498764_14850.cpp: In function 'int spfa(int)':
0_0_30498764_14850.cpp:58:11: error: reference to 'end' is ambiguous
return d[end];
^
0_0_30498764_14850.cpp:25:5: note: candidates are: int end
int end = 0;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:65:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
from 0_0_30498764_14850.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:97:5: note: template<class _Tp, long long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
end(_Tp (&__arr)[_Nm])
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:78:5: note: template<class _Container> decltype (__cont.end()) std::end(const _Container&)
end(const _Container& __cont) -> decltype(__cont.end())
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:68:5: note: template<class _Container> decltype (__cont.end()) std::end(_Container&)
end(_Container& __cont) -> decltype(__cont.end())
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:63:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
from 0_0_30498764_14850.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/initializer_list:99:5: note: template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
end(initializer_list<_Tp> __ils) noexcept
^
0_0_30498764_14850.cpp: In function 'int main()':
0_0_30498764_14850.cpp:68:4: error: reference to 'end' is ambiguous
end = max(b+1, end);
^
0_0_30498764_14850.cpp:25:5: note: candidates are: int end
int end = 0;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:65:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
from 0_0_30498764_14850.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:97:5: note: template<class _Tp, long long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
end(_Tp (&__arr)[_Nm])
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:78:5: note: template<class _Container> decltype (__cont.end()) std::end(const _Container&)
end(const _Container& __cont) -> decltype(__cont.end())
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:68:5: note: template<class _Container> decltype (__cont.end()) std::end(_Container&)
end(_Container& __cont) -> decltype(__cont.end())
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:63:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
from 0_0_30498764_14850.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/initializer_list:99:5: note: template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
end(initializer_list<_Tp> __ils) noexcept
^
0_0_30498764_14850.cpp:68:19: error: reference to 'end' is ambiguous
end = max(b+1, end);
^
0_0_30498764_14850.cpp:8:26: note: in definition of macro 'max'
#define max(x,y) ((x) < (y) ? (y) : (x))
^
0_0_30498764_14850.cpp:25:5: note: candidates are: int end
int end = 0;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:65:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
from 0_0_30498764_14850.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:97:5: note: template<class _Tp, long long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
end(_Tp (&__arr)[_Nm])
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:78:5: note: template<class _Container> decltype (__cont.end()) std::end(const _Container&)
end(const _Container& __cont) -> decltype(__cont.end())
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:68:5: note: template<class _Container> decltype (__cont.end()) std::end(_Container&)
end(_Container& __cont) -> decltype(__cont.end())
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:63:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
from 0_0_30498764_14850.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/initializer_list:99:5: note: template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
end(initializer_list<_Tp> __ils) noexcept
^
0_0_30498764_14850.cpp:68:19: error: reference to 'end' is ambiguous
end = max(b+1, end);
^
0_0_30498764_14850.cpp:8:32: note: in definition of macro 'max'
#define max(x,y) ((x) < (y) ? (y) : (x))
^
0_0_30498764_14850.cpp:25:5: note: candidates are: int end
int end = 0;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:65:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
from 0_0_30498764_14850.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:97:5: note: template<class _Tp, long long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
end(_Tp (&__arr)[_Nm])
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:78:5: note: template<class _Container> decltype (__cont.end()) std::end(const _Container&)
end(const _Container& __cont) -> decltype(__cont.end())
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:68:5: note: template<class _Container> decltype (__cont.end()) std::end(_Container&)
end(_Container& __cont) -> decltype(__cont.end())
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:63:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
from 0_0_30498764_14850.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/initializer_list:99:5: note: template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
end(initializer_list<_Tp> __ils) noexcept
^
0_0_30498764_14850.cpp:70:28: error: reference to 'end' is ambiguous
for (int i = first; i <= end; i++) {
^
0_0_30498764_14850.cpp:25:5: note: candidates are: int end
int end = 0;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:65:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
from 0_0_30498764_14850.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:97:5: note: template<class _Tp, long long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
end(_Tp (&__arr)[_Nm])
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:78:5: note: template<class _Container> decltype (__cont.end()) std::end(const _Container&)
end(const _Container& __cont) -> decltype(__cont.end())
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/range_access.h:68:5: note: template<class _Container> decltype (__cont.end()) std::end(_Container&)
end(_Container& __cont) -> decltype(__cont.end())
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_deque.h:63:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/deque:64,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/queue:60,
from 0_0_30498764_14850.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/initializer_list:99:5: note: template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
end(initializer_list<_Tp> __ils) noexcept
^
|