Borderou de evaluare (job #1333056)

Utilizator ZenusTudor Costin Razvan Zenus Data 2 februarie 2015 18:51:24
Problema Stive Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:24:7: error: reference to ‘move’ is ambiguous ++move; ^ user.cpp:8:7: note: candidates are: int move int N,move,i,j,k; ^ In file included from /usr/include/c++/4.8/vector:60:0, from user.cpp:2: /usr/include/c++/4.8/bits/stl_algobase.h:483:5: note: template<class _II, class _OI> _OI std::move(_II, _II, _OI) move(_II __first, _II __last, _OI __result) ^ In file included from /usr/include/c++/4.8/bits/stl_pair.h:59:0, from /usr/include/c++/4.8/bits/stl_algobase.h:64, from /usr/include/c++/4.8/vector:60, from user.cpp:2: /usr/include/c++/4.8/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 ^ user.cpp:29:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (j=0;j<s.size();++j) ^ user.cpp:30:11: error: reference to ‘move’ is ambiguous t[move].push_back(i+s[j]-1); ^ user.cpp:8:7: note: candidates are: int move int N,move,i,j,k; ^ In file included from /usr/include/c++/4.8/vector:60:0, from user.cpp:2: /usr/include/c++/4.8/bits/stl_algobase.h:483:5: note: template<class _II, class _OI> _OI std::move(_II, _II, _OI) move(_II __first, _II __last, _OI __result) ^ In file included from /usr/include/c++/4.8/bits/stl_pair.h:59:0, from /usr/include/c++/4.8/bits/stl_algobase.h:64, from /usr/include/c++/4.8/vector:60, from user.cpp:2: /usr/include/c++/4.8/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 ^ user.cpp:36:14: error: reference to ‘move’ is ambiguous cost[move]=N/2; ^ user.cpp:8:7: note: candidates are: int move int N,move,i,j,k; ^ In file included from /usr/include/c++/4.8/vector:60:0, from user.cpp:2: /usr/include/c++/4.8/bits/stl_algobase.h:483:5: note: template<class _II, class _OI> _OI std::move(_II, _II, _OI) move(_II __first, _II __last, _OI __result)

Ceva nu functioneaza?