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_35777302_18175.cpp: In function 'bool find(int)':
0_0_35777302_18175.cpp:15:27: error: reference to 'move' is ambiguous
   gap=ex_ch[ch]+ex_pos[i]-move[ch][i];
                           ^
0_0_35777302_18175.cpp:8:21: note: candidates are: int move [505][505]
 int n,tot,now,a1[N],move[N][N],mat[N],ex_ch[N],ex_pos[N],slack[N];
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61:0,
                 from 0_0_35777302_18175.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:489:5: note:                 template<class _II, class _OI> _OI std::move(_II, _II, _OI)
     move(_II __first, _II __last, _OI __result)
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_35777302_18175.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:101:5: note:                 template<class _Tp> constexpr typename std::remove_reference< <template-parameter-1-1> >::type&& std::move(_Tp&&)
     move(_Tp&& __t) noexcept
     ^
0_0_35777302_18175.cpp: In function 'int km()':
0_0_35777302_18175.cpp:27:12: error: reference to 'move' is ambiguous
   ex_ch[i]=move[i][1];
            ^
0_0_35777302_18175.cpp:8:21: note: candidates are: int move [505][505]
 int n,tot,now,a1[N],move[N][N],mat[N],ex_ch[N],ex_pos[N],slack[N];
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61:0,
                 from 0_0_35777302_18175.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:489:5: note:                 template<class _II, class _OI> _OI std::move(_II, _II, _OI)
     move(_II __first, _II __last, _OI __result)
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_35777302_18175.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:101:5: note:                 template<class _Tp> constexpr typename std::remove_reference< <template-parameter-1-1> >::type&& std::move(_Tp&&)
     move(_Tp&& __t) noexcept
     ^
0_0_35777302_18175.cpp:28:47: error: reference to 'move' is ambiguous
   for(int j=2;j<=n;++j)ex_ch[i]=max1(ex_ch[i],move[i][j]);
                                               ^
0_0_35777302_18175.cpp:8:21: note: candidates are: int move [505][505]
 int n,tot,now,a1[N],move[N][N],mat[N],ex_ch[N],ex_pos[N],slack[N];
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61:0,
                 from 0_0_35777302_18175.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:489:5: note:                 template<class _II, class _OI> _OI std::move(_II, _II, _OI)
     move(_II __first, _II __last, _OI __result)
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_35777302_18175.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:101:5: note:                 template<class _Tp> constexpr typename std::remove_reference< <template-parameter-1-1> >::type&& std::move(_Tp&&)
     move(_Tp&& __t) noexcept
     ^
0_0_35777302_18175.cpp:46:30: error: reference to 'move' is ambiguous
  for(int i=1;i<=n;++i)tot+=n-move[mat[i]][i];
                              ^
0_0_35777302_18175.cpp:8:21: note: candidates are: int move [505][505]
 int n,tot,now,a1[N],move[N][N],mat[N],ex_ch[N],ex_pos[N],slack[N];
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61:0,
                 from 0_0_35777302_18175.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:489:5: note:                 template<class _II, class _OI> _OI std::move(_II, _II, _OI)
     move(_II __first, _II __last, _OI __result)
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_35777302_18175.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:101:5: note:                 template<class _Tp> constexpr typename std::remove_reference< <template-parameter-1-1> >::type&& std::move(_Tp&&)
     move(_Tp&& __t) noexcept
     ^
0_0_35777302_18175.cpp: In function 'int main()':
0_0_35777302_18175.cpp:55:50: error: reference to 'move' is ambiguous
    for(int j=1;j<=a1[i];++j)for(int k=1;k<=n;++k)move[now+j][k]=max1(abs(k-i),n-abs(k-i));
                                                  ^
0_0_35777302_18175.cpp:8:21: note: candidates are: int move [505][505]
 int n,tot,now,a1[N],move[N][N],mat[N],ex_ch[N],ex_pos[N],slack[N];
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61:0,
                 from 0_0_35777302_18175.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:489:5: note:                 template<class _II, class _OI> _OI std::move(_II, _II, _OI)
     move(_II __first, _II __last, _OI __result)
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_35777302_18175.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:101:5: note:                 template<class _Tp> constexpr typename std::remove_reference< <template-parameter-1-1> >::type&& std::move(_Tp&&)
     move(_Tp&& __t) noexcept
     ^
0_0_35777302_18175.cpp:58:49: error: reference to 'move' is ambiguous
   for(int i=now+1;i<=n;++i)for(int j=1;j<=n;++j)move[i][j]=n;
                                                 ^
0_0_35777302_18175.cpp:8:21: note: candidates are: int move [505][505]
 int n,tot,now,a1[N],move[N][N],mat[N],ex_ch[N],ex_pos[N],slack[N];
                     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:61:0,
                 from 0_0_35777302_18175.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:489:5: note:                 template<class _II, class _OI> _OI std::move(_II, _II, _OI)
     move(_II __first, _II __last, _OI __result)
     ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_pair.h:59:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:70,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60,
                 from 0_0_35777302_18175.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/move.h:101:5: note:                 template<class _Tp> constexpr typename std::remove_reference< <template-parameter-1-1> >::type&& std::move(_Tp&&)
     move(_Tp&& __t) noexcept
     ^


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-24 17:41:24, Gzip enabled