Borderou de evaluare (job #3004889)

Utilizator dragos1029Dragos Morar dragos1029 Data 16 martie 2023 17:48:58
Problema Rover Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'bool isValid(poz)': main.cpp:29:36: error: reference to 'size' is ambiguous 29 | return test.i >= 0 && test.i < size && test.j >= 0 && test.j < size && road[test.i][test.j] == 0; | ^~~~ In file included from /usr/include/c++/12.2.1/string:52, from /usr/include/c++/12.2.1/bits/locale_classes.h:40, from /usr/include/c++/12.2.1/bits/ios_base.h:41, from /usr/include/c++/12.2.1/ios:42, from /usr/include/c++/12.2.1/ostream:38, from /usr/include/c++/12.2.1/iostream:39, from main.cpp:1: /usr/include/c++/12.2.1/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])' 274 | size(const _Tp (&)[_Nm]) noexcept | ^~~~ /usr/include/c++/12.2.1/bits/range_access.h:264:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)' 264 | size(const _Container& __cont) noexcept(noexcept(__cont.size())) | ^~~~ main.cpp:22:5: note: 'int size' 22 | int size, greutate, map[500][500], road[500][500]; | ^~~~ main.cpp:29:68: error: reference to 'size' is ambiguous 29 | return test.i >= 0 && test.i < size && test.j >= 0 && test.j < size && road[test.i][test.j] == 0; | ^~~~ /usr/include/c++/12.2.1/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])' 274 | size(const _Tp (&)[_Nm]) noexcept | ^~~~ /usr/include/c++/12.2.1/bits/range_access.h:264:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)' 264 | size(const _Container& __cont) noexcept(noexcept(__cont.size())) | ^~~~ main.cpp:22:5: note: 'int size' 22 | int size, greutate, map[500][500], road[500][500]; | ^~~~ main.cpp: In function 'void citire()': main.cpp:37:25: error: reference to 'size' is ambiguous 37 | for (int i = 0; i < size; i++) { | ^~~~ /usr/include/c++/12.2.1/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])' 274 | size(const _Tp (&)[_Nm]) noexcept | ^~~~ /usr/include/c++/12.2.1/bits/range_access.h:264:5: note: 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)' 264 | size(const _Container& __cont) noexcept(noexcept(__cont.size())) | ^~~~ main.cpp:22:5: note: 'int size' 22 | int size, greutate, map[500][500], road[500][500]; | ^~~~ main.cpp:38:29: error: reference to 'size' is ambiguous 38 | for (int j = 0; j < size; j++) { | ^~~~ /usr/include/c++/12.2.1/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])' 274 | size(const _Tp (&)[_Nm]) noexcept Non zero exit status: 1

Ceva nu functioneaza?