F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_38760952_9091.cpp: In function 'void DBFS(node*, int)':
0_0_38760952_9091.cpp:44:32: error: reference to 'next' is ambiguous
   44 |                         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_38760952_9091.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_38760952_9091.cpp:19:31: note:                 'node next'
   19 | }que1[nmax], que2[nmax], now, next;
      |                               ^~~~
0_0_38760952_9091.cpp:47:25: error: reference to 'next' is ambiguous
   47 |                         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_38760952_9091.cpp:19:31: note:                 'node next'
   19 | }que1[nmax], que2[nmax], now, next;
      |                               ^~~~
0_0_38760952_9091.cpp:48:25: error: reference to 'next' is ambiguous
   48 |                         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_38760952_9091.cpp:19:31: note:                 'node next'
   19 | }que1[nmax], que2[nmax], now, next;
      |                               ^~~~
0_0_38760952_9091.cpp:48:48: error: reference to 'next' is ambiguous
   48 |                         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_38760952_9091.cpp:19:31: note:                 'node next'
   19 | }que1[nmax], que2[nmax], now, next;
      |                               ^~~~
0_0_38760952_9091.cpp:50:36: error: reference to 'next' is ambiguous
   50 |                         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_38760952_9091.cpp:19:31: note:                 'node next'
   19 | }que1[nmax], que2[nmax], now, next;
      |                               ^~~~
0_0_38760952_9091.cpp:52:45: error: reference to 'next' is ambiguous
   52 |                                 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_38760952_9091.cpp:19:31: note:                 'node next'
   19 | }que1[nmax], que2[nmax], now, next;
      |                               ^~~~
0_0_38760952_9091.cpp:55:49: error: reference to 'next' is ambiguous
   55 |                         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_38760952_9091.cpp:19:31: note:                 'node next'
   19 | }que1[nmax], que2[nmax], now, next;
      |                               ^~~~
0_0_38760952_9091.cpp:56:39: error: reference to 'next' is ambiguous
   56 |                                 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_38760952_9091.cpp:19:31: note:                 'node next'
   19 | }que1[nmax], que2[nmax], now, next;
      |                               ^~~~
0_0_38760952_9091.cpp:56:55: error: reference to 'next' is ambiguous
   56 |                                 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_38760952_9091.cpp:19:31: note:                 'node next'
   19 | }que1[nmax], que2[nmax], now, next;
      |                               ^~~~
0_0_38760952_9091.cpp:57:39: error: reference to 'next' is ambiguous
   57 |                                 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_38760952_9091.cpp:19:31: note:                 'node next'
   19 | }que1[nmax], que2[nmax], now, next;
      |                               ^~~~
0_0_38760952_9091.cpp:57:56: error: reference to 'next' is ambiguous
   57 |                                 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_38760952_9091.cpp:19:31: note:                 'node next'
   19 | }que1[nmax], que2[nmax], now, next;
      |                               ^~~~
0_0_38760952_9091.cpp:59:75: error: reference to 'next' is ambiguous
   59 |                                 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_38760952_9091.cpp:19:31: note:                 'node next'
   19 | }que1[nmax], que2[nmax], now, next;
      |                               ^~~~
0_0_38760952_9091.cpp:64:32: error: reference to 'next' is ambiguous
   64 |                         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_38760952_9091.cpp:19:31: note:                 'node next'
   19 | }que1[nmax], que2[nmax], now, next;
      |                               ^~~~
0_0_38760952_9091.cpp:66:25: error: reference to 'next' is ambiguous
   66 |                         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_38760952_9091.cpp:19:31: note:                 'node next'
   19 | }que1[nmax], que2[nmax], now, next;
      |                               ^~~~
0_0_38760952_9091.cpp:67:25: error: reference to 'next' is ambiguous
   67 |                         next.num[i + 1] = now.num[i];
     


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-16 11:14:42, Gzip enabled