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_39749254_24067.cpp: In function 'int d_bfs()':
0_0_39749254_24067.cpp:33:33: error: reference to 'next' is ambiguous
   33 |                                 next=cur;  //这时候的Next表示当前cur加一或减一后的状态
      |                                 ^~~~
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_39749254_24067.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_39749254_24067.cpp:14:10: note:                 'node next'
   14 | node cur,next;
      |          ^~~~
0_0_39749254_24067.cpp:36:41: error: reference to 'next' is ambiguous
   36 |                                         next.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_39749254_24067.cpp:14:10: note:                 'node next'
   14 | node cur,next;
      |          ^~~~
0_0_39749254_24067.cpp:38:41: error: reference to 'next' is ambiguous
   38 |                                         next.num[i] = cur.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_39749254_24067.cpp:14:10: note:                 'node next'
   14 | node cur,next;
      |          ^~~~
0_0_39749254_24067.cpp:39:44: error: reference to 'next' is ambiguous
   39 |                                 if((k=vis2[next.num[0]][next.num[1]][next.num[2]][next.num[3]])!=-1) //当前数字在从后往前的vis2中已经被访问
      |                                            ^~~~
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_39749254_24067.cpp:14:10: note:                 'node next'
   14 | node cur,next;
      |          ^~~~
0_0_39749254_24067.cpp:39:57: error: reference to 'next' is ambiguous
   39 |                                 if((k=vis2[next.num[0]][next.num[1]][next.num[2]][next.num[3]])!=-1) //当前数字在从后往前的vis2中已经被访问
      |                                                         ^~~~
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_39749254_24067.cpp:14:10: note:                 'node next'
   14 | node cur,next;
      |          ^~~~
0_0_39749254_24067.cpp:39:70: error: reference to 'next' is ambiguous
   39 |                                 if((k=vis2[next.num[0]][next.num[1]][next.num[2]][next.num[3]])!=-1) //当前数字在从后往前的vis2中已经被访问
      |                                                                      ^~~~
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_39749254_24067.cpp:14:10: note:                 'node next'
   14 | node cur,next;
      |          ^~~~
0_0_39749254_24067.cpp:39:83: error: reference to 'next' is ambiguous
   39 |                                 if((k=vis2[next.num[0]][next.num[1]][next.num[2]][next.num[3]])!=-1) //当前数字在从后往前的vis2中已经被访问
      |                                                                                   ^~~~
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_39749254_24067.cpp:14:10: note:                 'node next'
   14 | node cur,next;
      |          ^~~~
0_0_39749254_24067.cpp:40:48: error: reference to 'next' is ambiguous
   40 |                                         return next.step+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_39749254_24067.cpp:14:10: note:                 'node next'
   14 | node cur,next;
      |          ^~~~
0_0_39749254_24067.cpp:41:41: error: reference to 'next' is ambiguous
   41 |                                 if(vis1[next.num[0]][next.num[1]][next.num[2]][next.num[3]]==-1){ // 在从前往后的vis1中还没有被访问
      |                                         ^~~~
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_39749254_24067.cpp:14:10: note:                 'node next'
   14 | node cur,next;
      |          ^~~~
0_0_39749254_24067.cpp:41:54: error: reference to 'next' is ambiguous
   41 |                                 if(vis1[next.num[0]][next.num[1]][next.num[2]][next.num[3]]==-1){ // 在从前往后的vis1中还没有被访问
      |                                                      ^~~~
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_39749254_24067.cpp:14:10: note:                 'node next'
   14 | node cur,next;
      |          ^~~~
0_0_39749254_24067.cpp:41:67: error: reference to 'next' is ambiguous
   41 |                                 if(vis1[next.num[0]][next.num[1]][next.num[2]][next.num[3]]==-1){ // 在从前往后的vis1中还没有被访问
      |                                                                   ^~~~
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_39749254_24067.cpp:14:10: note:                 'node next'
   14 | node cur,next;
      |          ^~~~
0_0_39749254_24067.cpp:41:80: error: reference to 'next' is ambiguous
   41 |                                 if(vis1[next.num[0]][next.num[1]][next.num[2]][next.num[3]]==-1){ // 在从前往后的vis1中还没有被访问
      |                                                                                ^~~~
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_39749254_24067.cpp:14:10: note:                 'node next'
   14 | node cur,next;
      |          ^~~~
0_0_39749254_24067.cpp:42:49: error: reference to 'next' is ambiguous
   42 |                                         q1.push(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_39749254_24067.cpp:14:10: note:                 'node next'
   14 | node cur,next;
      |          ^~~~
0_0_39749254_24067.cpp:43:46: error: reference to 'next' is ambiguous
   43 |                                         vis1[next.num[0]][next.num[1]][next.num[2]][next.num[3]]=next.step;
      |                                              ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_b


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 20:49:15, Gzip enabled