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_39749256_32620.cpp: In function 'int d_bfs()':
0_0_39749256_32620.cpp:31:33: error: reference to 'next' is ambiguous
   31 |                                 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_algobase.h:66,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/deque:62,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/queue:62,
                 from 0_0_39749256_32620.cpp:2:
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_39749256_32620.cpp:12:10: note:                 'node next'
   12 | node cur,next;
      |          ^~~~
0_0_39749256_32620.cpp:34:41: error: reference to 'next' is ambiguous
   34 |                                         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_39749256_32620.cpp:12:10: note:                 'node next'
   12 | node cur,next;
      |          ^~~~
0_0_39749256_32620.cpp:36:41: error: reference to 'next' is ambiguous
   36 |                                         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_39749256_32620.cpp:12:10: note:                 'node next'
   12 | node cur,next;
      |          ^~~~
0_0_39749256_32620.cpp:37:44: error: reference to 'next' is ambiguous
   37 |                                 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_39749256_32620.cpp:12:10: note:                 'node next'
   12 | node cur,next;
      |          ^~~~
0_0_39749256_32620.cpp:37:57: error: reference to 'next' is ambiguous
   37 |                                 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_39749256_32620.cpp:12:10: note:                 'node next'
   12 | node cur,next;
      |          ^~~~
0_0_39749256_32620.cpp:37:70: error: reference to 'next' is ambiguous
   37 |                                 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_39749256_32620.cpp:12:10: note:                 'node next'
   12 | node cur,next;
      |          ^~~~
0_0_39749256_32620.cpp:37:83: error: reference to 'next' is ambiguous
   37 |                                 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_39749256_32620.cpp:12:10: note:                 'node next'
   12 | node cur,next;
      |          ^~~~
0_0_39749256_32620.cpp:38:48: error: reference to 'next' is ambiguous
   38 |                                         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_39749256_32620.cpp:12:10: note:                 'node next'
   12 | node cur,next;
      |          ^~~~
0_0_39749256_32620.cpp:39:41: error: reference to 'next' is ambiguous
   39 |                                 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_39749256_32620.cpp:12:10: note:                 'node next'
   12 | node cur,next;
      |          ^~~~
0_0_39749256_32620.cpp:39:54: error: reference to 'next' is ambiguous
   39 |                                 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_39749256_32620.cpp:12:10: note:                 'node next'
   12 | node cur,next;
      |          ^~~~
0_0_39749256_32620.cpp:39:67: error: reference to 'next' is ambiguous
   39 |                                 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_39749256_32620.cpp:12:10: note:                 'node next'
   12 | node cur,next;
      |          ^~~~
0_0_39749256_32620.cpp:39:80: error: reference to 'next' is ambiguous
   39 |                                 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_39749256_32620.cpp:12:10: note:                 'node next'
   12 | node cur,next;
      |          ^~~~
0_0_39749256_32620.cpp:40:49: error: reference to 'next' is ambiguous
   40 |                                         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_39749256_32620.cpp:12:10: note:                 'node next'
   12 | node cur,next;
      |          ^~~~
0_0_39749256_32620.cpp:41:46: error: reference to 'next' is ambiguous
   41 |                                         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_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
      | 


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:43:19, Gzip enabled