Borderou de evaluare (job #1087779)

Utilizator hiticas_abelhiticasabel hiticas_abel Data 19 ianuarie 2014 21:04:34
Problema Gard 4 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int djikstra(int, int)’: user.cpp:72:16: error: reference to ‘move’ is ambiguous #define dx t.x+move[i][0] ^ user.cpp:111:11: note: in expansion of macro ‘dx’ if (ok(dx,dy)){ ^ user.cpp:70:11: note: candidates are: const int move [8][2] const int move[8][2]={{-1,0},{-1,-1},{0,-1},{1,-1},{1,0},{1,1},{0,1},{-1,1}}; ^ In file included from /usr/local/include/c++/4.8.0/vector:60:0, from user.cpp:3: /usr/local/include/c++/4.8.0/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/local/include/c++/4.8.0/bits/stl_pair.h:59:0, from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:64, from /usr/local/include/c++/4.8.0/vector:60, from user.cpp:3: /usr/local/include/c++/4.8.0/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:73:16: error: reference to ‘move’ is ambiguous #define dy t.y+move[i][1] ^ user.cpp:111:14: note: in expansion of macro ‘dy’ if (ok(dx,dy)){ ^ user.cpp:70:11: note: candidates are: const int move [8][2] const int move[8][2]={{-1,0},{-1,-1},{0,-1},{1,-1},{1,0},{1,1},{0,1},{-1,1}}; ^ In file included from /usr/local/include/c++/4.8.0/vector:60:0, from user.cpp:3: /usr/local/include/c++/4.8.0/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/local/include/c++/4.8.0/bits/stl_pair.h:59:0, from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:64, from /usr/local/include/c++/4.8.0/vector:60, from user.cpp:3: /usr/local/include/c++/4.8.0/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:72:16: error: reference to ‘move’ is ambiguous #define dx t.x+move[i][0] ^ user.cpp:114:18: note: in expansion of macro ‘dx’ if (V[j].x>=dx&&V[j].x>=t.x){ ^ user.cpp:70:11: note: candidates are: const int move [8][2]

Ceva nu functioneaza?