0_0_38635484_20463.cpp: In function 'int main()':
0_0_38635484_20463.cpp:63:9: error: reference to 'end' is ambiguous
end=bfs(start);
^~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/vector:66,
from 0_0_38635484_20463.cpp:3:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:107:37: note: candidates are: 'template<class _Tp> const _Tp* std::end(const std::valarray<_Tp>&)'
template<typename _Tp> const _Tp* end(const valarray<_Tp>&);
^~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:106:31: note: 'template<class _Tp> _Tp* std::end(std::valarray<_Tp>&)'
template<typename _Tp> _Tp* end(valarray<_Tp>&);
^~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:97:5: note: 'template<class _Tp, long long unsigned int _Nm> constexpr _Tp* std::end(_Tp (&)[_Nm])'
end(_Tp (&__arr)[_Nm])
^~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:78:5: note: 'template<class _Container> constexpr decltype (__cont.end()) std::end(const _Container&)'
end(const _Container& __cont) -> decltype(__cont.end())
^~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:68:5: note: 'template<class _Container> constexpr decltype (__cont.end()) std::end(_Container&)'
end(_Container& __cont) -> decltype(__cont.end())
^~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/utility:76,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_uninitialized.h:60,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/vector:63,
from 0_0_38635484_20463.cpp:3:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/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_38635484_20463.cpp:17:9: note: 'node end'
} start,end;
^~~
|