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_39098441_31417.cpp: In function 'int BFS(int, int, int)':
0_0_39098441_31417.cpp:38:13: error: reference to 'next' is ambiguous
   38 |             next.x=cur.x+directions[i][0];
      |             ^~~~
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_39098441_31417.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_39098441_31417.cpp:17:16: note:                 'persion next'
   17 | persion my,cur,next;
      |                ^~~~
0_0_39098441_31417.cpp:39:13: error: reference to 'next' is ambiguous
   39 |             next.y=cur.y+directions[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_39098441_31417.cpp:17:16: note:                 'persion next'
   17 | persion my,cur,next;
      |                ^~~~
0_0_39098441_31417.cpp:40:13: error: reference to 'next' is ambiguous
   40 |             next.z=cur.z+directions[i][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_39098441_31417.cpp:17:16: note:                 'persion next'
   17 | persion my,cur,next;
      |                ^~~~
0_0_39098441_31417.cpp:42:16: error: reference to 'next' is ambiguous
   42 |             if(next.x<a&&next.y<c&&next.z<b&&next.x>=0&&next.y>=0&&next.z>=0&&map[next.x][next.y][next.z]!=1&&next.time<=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_39098441_31417.cpp:17:16: note:                 'persion next'
   17 | persion my,cur,next;
      |                ^~~~
0_0_39098441_31417.cpp:42:26: error: reference to 'next' is ambiguous
   42 |             if(next.x<a&&next.y<c&&next.z<b&&next.x>=0&&next.y>=0&&next.z>=0&&map[next.x][next.y][next.z]!=1&&next.time<=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_39098441_31417.cpp:17:16: note:                 'persion next'
   17 | persion my,cur,next;
      |                ^~~~
0_0_39098441_31417.cpp:42:36: error: reference to 'next' is ambiguous
   42 |             if(next.x<a&&next.y<c&&next.z<b&&next.x>=0&&next.y>=0&&next.z>=0&&map[next.x][next.y][next.z]!=1&&next.time<=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_39098441_31417.cpp:17:16: note:                 'persion next'
   17 | persion my,cur,next;
      |                ^~~~
0_0_39098441_31417.cpp:42:46: error: reference to 'next' is ambiguous
   42 |             if(next.x<a&&next.y<c&&next.z<b&&next.x>=0&&next.y>=0&&next.z>=0&&map[next.x][next.y][next.z]!=1&&next.time<=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_39098441_31417.cpp:17:16: note:                 'persion next'
   17 | persion my,cur,next;
      |                ^~~~
0_0_39098441_31417.cpp:42:57: error: reference to 'next' is ambiguous
   42 |             if(next.x<a&&next.y<c&&next.z<b&&next.x>=0&&next.y>=0&&next.z>=0&&map[next.x][next.y][next.z]!=1&&next.time<=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_39098441_31417.cpp:17:16: note:                 'persion next'
   17 | persion my,cur,next;
      |                ^~~~
0_0_39098441_31417.cpp:42:68: error: reference to 'next' is ambiguous
   42 |             if(next.x<a&&next.y<c&&next.z<b&&next.x>=0&&next.y>=0&&next.z>=0&&map[next.x][next.y][next.z]!=1&&next.time<=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_39098441_31417.cpp:17:16: note:                 'persion next'
   17 | persion my,cur,next;
      |                ^~~~
0_0_39098441_31417.cpp:42:83: error: reference to 'next' is ambiguous
   42 |             if(next.x<a&&next.y<c&&next.z<b&&next.x>=0&&next.y>=0&&next.z>=0&&map[next.x][next.y][next.z]!=1&&next.time<=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_39098441_31417.cpp:17:16: note:                 'persion next'
   17 | persion my,cur,next;
      |                ^~~~
0_0_39098441_31417.cpp:42:91: error: reference to 'next' is ambiguous
   42 |             if(next.x<a&&next.y<c&&next.z<b&&next.x>=0&&next.y>=0&&next.z>=0&&map[next.x][next.y][next.z]!=1&&next.time<=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_39098441_31417.cpp:17:16: note:                 'persion next'
   17 | persion my,cur,next;
      |                ^~~~
0_0_39098441_31417.cpp:42:99: error: reference to 'next' is ambiguous
   42 |             if(next.x<a&&next.y<c&&next.z<b&&next.x>=0&&next.y>=0&&next.z>=0&&map[next.x][next.y][next.z]!=1&&next.time<=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_39098441_31417.cpp:17:16: note:                 'persion next'
   17 | persion my,cur,next;
      |                ^~~~
0_0_39098441_31417.cpp:42:111: error: reference to 'next' is ambiguous
   42 |             if(next.x<a&&next.y<c&&next.z<b&&next.x>=0&&next.y>=0&&next.z>=0&&map[next.x][next.y][next.z]!=1&&next.time<=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_39098441_31417.cpp:17:16: note:                 'persion next'
   17 | persion my,cur,next;
      |                ^~~~
0_0_39098441_31417.cpp:45:20: error: reference to 'next' is ambiguous
   45 |                 if(next.x==a-1&&next.y==c-1&&next.z==b-1)  //如果找到了出口 返回当前走的步数
      |                    ^~~~
D:/HDOJ


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-17 22:44:42, Gzip enabled