/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'long int Find_L(long int)':
foo.cpp:25:8: error: reference to 'move' is ambiguous
  while(move[--x]);
        ^
foo.cpp:10:6: note: candidates are: bool move [50005]
 bool move[MAXN];
      ^
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/deque:64:0,
                 from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/queue:60,
                 from foo.cpp:2:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_deque.h:408:5: note:                 template<class _Tp> std::_Deque_iterator<_Tp, _Tp&, _Tp*> std::move(std::_Deque_iterator<_Tp, _Tp&, _Tp*>, std::_Deque_iterator<_Tp, _Tp&, _Tp*>, std::_Deque_iterator<_Tp, _Tp&, _Tp*>)
     move(_Deque_iterator<_Tp, _Tp&, _Tp*> __first,
     ^
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/deque:66:0,
                 from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/queue:60,
                 from foo.cpp:2:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/deque.tcc:1009:5: note:                 template<class _Tp> std::_Deque_iterator<_Tp, _Tp&, _Tp*> std::move(std::_Deque_iterator<_Tp, const _Tp&, const _Tp*>, std::_Deque_iterator<_Tp, const _Tp&, const _Tp*>, std::_Deque_iterator<_Tp, _Tp&, _Tp*>)
     move(_Deque_iterator<_Tp, const _Tp&, const _Tp*> __first,
     ^
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/char_traits.h:39:0,
                 from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/ios:40,
                 from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/ostream:38,
                 from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/iostream:39,
                 from foo.cpp:1:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/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 C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_pair.h:59:0,
                 from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_algobase.h:64,
                 from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/char_traits.h:39,
                 from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/ios:40,
                 from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/ostream:38,
                 from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/iostream:39,
                 from foo.cpp:1:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/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
     ^
foo.cpp: In function 'long int Find_R(long int)':
foo.cpp:32:8: error: reference to 'move' is ambiguous
  while(move[++x]);
        ^
foo.cpp:10:6: note: candidates are: bool move [50005]
 bool move[MAXN];
      ^
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/deque:64:0,
                 from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/queue:60,
                 from foo.cpp:2:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/stl_deque.h:408:5: note:                 template<class _Tp> std::_Deque_iterator<_Tp, _Tp&, _Tp*> std::move(std::_Deque_iterator<_Tp, _Tp&, _Tp*>, std::_Deque_iterator<_Tp, _Tp&, _Tp*>, std::_Deque_iterator<_Tp, _Tp&, _Tp*>)
     move(_Deque_iterator<_Tp, _Tp&, _Tp*> __first,
     ^
In file included from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/deque:66:0,
                 from C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/queue:60,
                 from foo.cpp:2:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/bits/deque.tcc:1009:5: note:                 template<class _Tp> std::_Deque_iterator<_Tp, _Tp&, _Tp*> std::move(std::_Deque_iterator<_Tp, const _Tp&, const _Tp*>, std::_Deque_iterator<_Tp, const _Tp&, const _Tp*>, std::_Deque_iterator<_Tp, _Tp&, _Tp*>)
     move(_Deque_iterator<_Tp, const _Tp&, const _Tp*> __first,
     ^
In file included from C:/TDM-GC

信息

递交者
类型
递交
题目
P1981 跳石头
语言
C++
递交时间
2015-11-10 18:53:59
评测时间
2015-11-10 18:54:27
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes