0_0_39203009_20588.cpp: In function 'void dfs(int, int)':
0_0_39203009_20588.cpp:38:25: error: reference to 'next' is ambiguous
38 | next++;
| ^~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_construct.h:62,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/char_traits.h:57,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ios:42,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:40,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:41,
from 0_0_39203009_20588.cpp:1:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_base_funcs.h:232:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
232 | next(_InputIterator __x, typename
| ^~~~
0_0_39203009_20588.cpp:11:14: note: 'int next'
11 | int num,dist,next;
| ^~~~
0_0_39203009_20588.cpp: In function 'int main()':
0_0_39203009_20588.cpp:47:24: error: reference to 'next' is ambiguous
47 | dist=0;next=0;
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_base_funcs.h:232:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
232 | next(_InputIterator __x, typename
| ^~~~
0_0_39203009_20588.cpp:11:14: note: 'int next'
11 | int num,dist,next;
| ^~~~
0_0_39203009_20588.cpp:57:40: error: reference to 'next' is ambiguous
57 | if(vis[A*B-1][C-1]==1&&next<=T){
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_base_funcs.h:232:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
232 | next(_InputIterator __x, typename
| ^~~~
0_0_39203009_20588.cpp:11:14: note: 'int next'
11 | int num,dist,next;
| ^~~~
0_0_39203009_20588.cpp:58:39: error: reference to 'next' is ambiguous
58 | printf("%d\n",next);
| ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_base_funcs.h:232:5: note: candidates are: 'template<class _InputIterator> constexpr _InputIterator std::next(_InputIterator, typename iterator_traits<_Iter>::difference_type)'
232 | next(_InputIterator __x, typename
| ^~~~
0_0_39203009_20588.cpp:11:14: note: 'int next'
11 | int num,dist,next;
| ^~~~
|