0_0_38760170_29170.cpp: In function 'void DBFS(node*, int)':
0_0_38760170_29170.cpp:45:32: error: reference to 'next' is ambiguous
45 | memcpy(next.num, now.num, sizeof(now.num));
| ^~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algobase.h:66,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:60,
from 0_0_38760170_29170.cpp:3:
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_38760170_29170.cpp:20:31: note: 'node next'
20 | }que1[nmax], que2[nmax], now, next;
| ^~~~
0_0_38760170_29170.cpp:48:25: error: reference to 'next' is ambiguous
48 | next.num[i] = k <= 0 ? 9 : k > 9 ? 1 : k;
| ^~~~
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_38760170_29170.cpp:20:31: note: 'node next'
20 | }que1[nmax], que2[nmax], now, next;
| ^~~~
0_0_38760170_29170.cpp:49:25: error: reference to 'next' is ambiguous
49 | next.key = convert2key(next.num);
| ^~~~
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_38760170_29170.cpp:20:31: note: 'node next'
20 | }que1[nmax], que2[nmax], now, next;
| ^~~~
0_0_38760170_29170.cpp:49:48: error: reference to 'next' is ambiguous
49 | next.key = convert2key(next.num);
| ^~~~
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_38760170_29170.cpp:20:31: note: 'node next'
20 | }que1[nmax], que2[nmax], now, next;
| ^~~~
0_0_38760170_29170.cpp:51:36: error: reference to 'next' is ambiguous
51 | if ((state[next.key].dir ^ dir) == 3) {
| ^~~~
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_38760170_29170.cpp:20:31: note: 'node next'
20 | }que1[nmax], que2[nmax], now, next;
| ^~~~
0_0_38760170_29170.cpp:53:45: error: reference to 'next' is ambiguous
53 | ans = state[next.key].step + now.step + 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_38760170_29170.cpp:20:31: note: 'node next'
20 | }que1[nmax], que2[nmax], now, next;
| ^~~~
0_0_38760170_29170.cpp:56:49: error: reference to 'next' is ambiguous
56 | if (NOT_MARKED == state[next.key].dir) {
| ^~~~
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_38760170_29170.cpp:20:31: note: 'node next'
20 | }que1[nmax], que2[nmax], now, next;
| ^~~~
0_0_38760170_29170.cpp:57:39: error: reference to 'next' is ambiguous
57 | state[next.key].dir = next.dir = dir;
| ^~~~
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_38760170_29170.cpp:20:31: note: 'node next'
20 | }que1[nmax], que2[nmax], now, next;
| ^~~~
0_0_38760170_29170.cpp:57:55: error: reference to 'next' is ambiguous
57 | state[next.key].dir = next.dir = dir;
| ^~~~
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_38760170_29170.cpp:20:31: note: 'node next'
20 | }que1[nmax], que2[nmax], now, next;
| ^~~~
0_0_38760170_29170.cpp:58:39: error: reference to 'next' is ambiguous
58 | state[next.key].step = next.step = now.step + 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_38760170_29170.cpp:20:31: note: 'node next'
20 | }que1[nmax], que2[nmax], now, next;
| ^~~~
0_0_38760170_29170.cpp:58:56: error: reference to 'next' is ambiguous
58 | state[next.key].step = next.step = now.step + 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_38760170_29170.cpp:20:31: note: 'node next'
20 | }que1[nmax], que2[nmax], now, next;
| ^~~~
0_0_38760170_29170.cpp:60:75: error: reference to 'next' is ambiguous
60 | que[++(dir == FORWARD ? head1 : head2)] = 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_38760170_29170.cpp:20:31: note: 'node next'
20 | }que1[nmax], que2[nmax], now, next;
| ^~~~
0_0_38760170_29170.cpp:65:32: error: reference to 'next' is ambiguous
65 | memcpy(next.num, now.num, sizeof(now.num));
| ^~~~
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_38760170_29170.cpp:20:31: note: 'node next'
20 | }que1[nmax], que2[nmax], now, next;
| ^~~~
0_0_38760170_29170.cpp:67:25: error: reference to 'next' is ambiguous
67 | next.num[i] = now.num[i + 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_38760170_29170.cpp:20:31: note: 'node next'
20 | }que1[nmax], que2[nmax], now, next;
| ^~~~
0_0_38760170_29170.cpp:68:25: error: reference to 'next' is ambiguous
68 | next
|