0_0_38615022_8207.cpp: In function 'int bfs(int, int)':
0_0_38615022_8207.cpp:33:5: error: reference to 'next' is ambiguous
next.x=xx;
^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_algobase.h:66,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/specfun.h:45,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/cmath:1892,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:41,
from 0_0_38615022_8207.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_iterator_base_funcs.h:213:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename std::iterator_traits<_Iter>::difference_type)'
next(_InputIterator __x, typename
^~~~
0_0_38615022_8207.cpp:14:6: note: 'node next'
}now,next;
^~~~
0_0_38615022_8207.cpp:34:5: error: reference to 'next' is ambiguous
next.y=yy;
^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_algobase.h:66,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/specfun.h:45,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/cmath:1892,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:41,
from 0_0_38615022_8207.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_iterator_base_funcs.h:213:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename std::iterator_traits<_Iter>::difference_type)'
next(_InputIterator __x, typename
^~~~
0_0_38615022_8207.cpp:14:6: note: 'node next'
}now,next;
^~~~
0_0_38615022_8207.cpp:36:5: error: reference to 'next' is ambiguous
next.step=now.step+1;
^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_algobase.h:66,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/specfun.h:45,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/cmath:1892,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:41,
from 0_0_38615022_8207.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_iterator_base_funcs.h:213:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename std::iterator_traits<_Iter>::difference_type)'
next(_InputIterator __x, typename
^~~~
0_0_38615022_8207.cpp:14:6: note: 'node next'
}now,next;
^~~~
0_0_38615022_8207.cpp:38:11: error: reference to 'next' is ambiguous
return next.step;
^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_algobase.h:66,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/specfun.h:45,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/cmath:1892,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:41,
from 0_0_38615022_8207.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_iterator_base_funcs.h:213:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename std::iterator_traits<_Iter>::difference_type)'
next(_InputIterator __x, typename
^~~~
0_0_38615022_8207.cpp:14:6: note: 'node next'
}now,next;
^~~~
0_0_38615022_8207.cpp:39:11: error: reference to 'next' is ambiguous
q.push(next);
^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_algobase.h:66,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/specfun.h:45,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/cmath:1892,
from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/x86_64-w64-mingw32/bits/stdc++.h:41,
from 0_0_38615022_8207.cpp:1:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/stl_iterator_base_funcs.h:213:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename std::iterator_traits<_Iter>::difference_type)'
next(_InputIterator __x, typename
^~~~
0_0_38615022_8207.cpp:14:6: note: 'node next'
}now,next;
^~~~
|