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_39431434_27037.cpp: In function 'bool dfs(int, int, int, int)':
0_0_39431434_27037.cpp:12:19: error: reference to 'move' is ambiguous
   12 |         int x1=sx+move[i][0];
      |                   ^~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/string:51,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/locale_classes.h:40,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ios_base.h:41,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ios:44,
                 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_39431434_27037.cpp:1:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algobase.h:657:5: note: candidates are: 'template<class _II, class _OI> constexpr _OI std::move(_II, _II, _OI)'
  657 |     move(_II __first, _II __last, _OI __result)
      |     ^~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/exception_ptr.h:41,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/exception:164,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ios:41:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/move.h:104:5: note:                 'template<class _Tp> constexpr typename std::remove_reference<_Tp>::type&& std::move(_Tp&&)'
  104 |     move(_Tp&& __t) noexcept
      |     ^~~~
0_0_39431434_27037.cpp:7:22: note:                 'int move [4][2]'
    7 | int n, m, a[10][10], move[4][2]={0,1,0,-1,1,0,-1,0}, vis[10][10][10][10], flag[10][10];
      |                      ^~~~
0_0_39431434_27037.cpp:13:19: error: reference to 'move' is ambiguous
   13 |         int y1=sy+move[i][1];
      |                   ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algobase.h:657:5: note: candidates are: 'template<class _II, class _OI> constexpr _OI std::move(_II, _II, _OI)'
  657 |     move(_II __first, _II __last, _OI __result)
      |     ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/move.h:104:5: note:                 'template<class _Tp> constexpr typename std::remove_reference<_Tp>::type&& std::move(_Tp&&)'
  104 |     move(_Tp&& __t) noexcept
      |     ^~~~
0_0_39431434_27037.cpp:7:22: note:                 'int move [4][2]'
    7 | int n, m, a[10][10], move[4][2]={0,1,0,-1,1,0,-1,0}, vis[10][10][10][10], flag[10][10];
      |                      ^~~~
0_0_39431434_27037.cpp: In function 'int bfs()':
0_0_39431434_27037.cpp:32:27: error: reference to 'move' is ambiguous
   32 |             next.x=head.x+move[i][0];
      |                           ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algobase.h:657:5: note: candidates are: 'template<class _II, class _OI> constexpr _OI std::move(_II, _II, _OI)'
  657 |     move(_II __first, _II __last, _OI __result)
      |     ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/move.h:104:5: note:                 'template<class _Tp> constexpr typename std::remove_reference<_Tp>::type&& std::move(_Tp&&)'
  104 |     move(_Tp&& __t) noexcept
      |     ^~~~
0_0_39431434_27037.cpp:7:22: note:                 'int move [4][2]'
    7 | int n, m, a[10][10], move[4][2]={0,1,0,-1,1,0,-1,0}, vis[10][10][10][10], flag[10][10];
      |                      ^~~~
0_0_39431434_27037.cpp:33:27: error: reference to 'move' is ambiguous
   33 |             next.y=head.y+move[i][1];
      |                           ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algobase.h:657:5: note: candidates are: 'template<class _II, class _OI> constexpr _OI std::move(_II, _II, _OI)'
  657 |     move(_II __first, _II __last, _OI __result)
      |     ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/move.h:104:5: note:                 'template<class _Tp> constexpr typename std::remove_reference<_Tp>::type&& std::move(_Tp&&)'
  104 |     move(_Tp&& __t) noexcept
      |     ^~~~
0_0_39431434_27037.cpp:7:22: note:                 'int move [4][2]'
    7 | int n, m, a[10][10], move[4][2]={0,1,0,-1,1,0,-1,0}, vis[10][10][10][10], flag[10][10];
      |                      ^~~~
0_0_39431434_27037.cpp:39:23: error: reference to 'move' is ambiguous
   39 |             sx=head.x-move[i][0];sy=head.y-move[i][1];
      |                       ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algobase.h:657:5: note: candidates are: 'template<class _II, class _OI> constexpr _OI std::move(_II, _II, _OI)'
  657 |     move(_II __first, _II __last, _OI __result)
      |     ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/move.h:104:5: note:                 'template<class _Tp> constexpr typename std::remove_reference<_Tp>::type&& std::move(_Tp&&)'
  104 |     move(_Tp&& __t) noexcept
      |     ^~~~
0_0_39431434_27037.cpp:7:22: note:                 'int move [4][2]'
    7 | int n, m, a[10][10], move[4][2]={0,1,0,-1,1,0,-1,0}, vis[10][10][10][10], flag[10][10];
      |                      ^~~~
0_0_39431434_27037.cpp:39:44: error: reference to 'move' is ambiguous
   39 |             sx=head.x-move[i][0];sy=head.y-move[i][1];
      |                                            ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algobase.h:657:5: note: candidates are: 'template<class _II, class _OI> constexpr _OI std::move(_II, _II, _OI)'
  657 |     move(_II __first, _II __last, _OI __result)
      |     ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/move.h:104:5: note:                 'template<class _Tp> constexpr typename std::remove_reference<_Tp>::type&& std::move(_Tp&&)'
  104 |     move(_Tp&& __t) noexcept
      |     ^~~~
0_0_39431434_27037.cpp:7:22: note:                 'int move [4][2]'
    7 | int n, m, a[10][10], move[4][2]={0,1,0,-1,1,0,-1,0}, vis[10][10][10][10], flag[10][10];
      |                      ^~~~
0_0_39431434_27037.cpp:46:28: error: reference to 'end' is ambiguous
   46 |                 if(next.x==end.x&&next.y==end.y){
      |                            ^~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/string:53:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:116:37: note: candidates are: 'template<class _Tp> const _Tp* std::end(const valarray<_Tp>&)'
  116 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
      |                                     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:115:31: note:                 'template<class _Tp> _Tp* std::end(valarray<_Tp>&)'
  115 |   template<typename _Tp> _Tp* end(valarray<_Tp>&) noexcept;
      |                               ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:106:5: note:                 'template<class _Tp, long long unsigned int _Nm> constexpr _Tp* std::end(_Tp (&)[_Nm])'
  106 |     end(_Tp (&__arr)[_Nm]) noexcept
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:85:5: note:                 'template<class _Container> constexpr decltype (__cont.end()) std::end(const _Container&)'
   85 |     end(const _Container& __cont) -> decltype(__cont.end())
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:74:5: note:                 'template<class _Container> constexpr decltype (__cont.end()) std::end(_Container&)'
   74 |     end(_Container& __cont) -> decltype(__cont.end())
      |     ^~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:36:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/initializer_list:99:5: note:                 'template<class _Tp> constexpr const _Tp* std::end(initializer_list<_Tp>)'
   99 |     end(initializer_list<_Tp> __ils) noexcept
      |     ^~~
0_0_39431434_27037.cpp:8:41: note:                 'node end'
    8 | struct node{int x, y, px, py, step;}st, end;  //箱子位置x,y,人的位置px,py。
      |                                         ^~~
0_0_39431434_27037.cpp:46:43: error: reference to 'end' is ambiguous
   46 |                 if(next.x==end.x&&next.y==end.y){
      |                                           ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:116:37: note: candidates are: 'template<class _Tp> const _Tp* std::end(const valarray<_Tp>&)'
  116 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
      |                                     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:115:31: note:                 'template<class _Tp> _Tp* std::end(valarray<_Tp>&)'
  115 |   template<typename _Tp> _Tp* end(valarray<_Tp>&) noexcept;
      |                               ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:106:5: note:                 'template<class _Tp, long long unsigned int _Nm> constexpr _Tp* std::end(_Tp (&)[_Nm])'
  106 |     end(_Tp (&__arr)[_Nm]) noexcept
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:85:5: note:                 'template<class _Container> constexpr decltype (__cont.end()) std::end(const _Container&)'
   85 |     end(const _Container


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-26 07:27:37, Gzip enabled