Borderou de evaluare (job #1385544)

Utilizator thewildnathNathan Wildenberg thewildnath Data 12 martie 2015 02:18:28
Problema Robot2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void readInput()’: user.cpp:73:37: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘bool*’ [-Wformat=] scanf ("%d", &wall[i][j]); ^ user.cpp:74:45: error: reference to ‘end’ is ambiguous scanf ("%d%d%d%d", &start.x, &start.y, &end.x, &end.y); ^ user.cpp:36:14: note: candidates are: point end point start, end; ^ In file included from /usr/include/c++/4.8/deque:65:0, from /usr/include/c++/4.8/queue:60, from user.cpp:3: /usr/include/c++/4.8/bits/range_access.h:97:5: note: template<class _Tp, unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm]) end(_Tp (&__arr)[_Nm]) ^ /usr/include/c++/4.8/bits/range_access.h:78:5: note: template<class _Container> decltype (__cont.end()) std::end(const _Container&) end(const _Container& __cont) -> decltype(__cont.end()) ^ /usr/include/c++/4.8/bits/range_access.h:68:5: note: template<class _Container> decltype (__cont.end()) std::end(_Container&) end(_Container& __cont) -> decltype(__cont.end()) ^ In file included from /usr/include/c++/4.8/bits/stl_deque.h:63:0, from /usr/include/c++/4.8/deque:64, from /usr/include/c++/4.8/queue:60, from user.cpp:3: /usr/include/c++/4.8/initializer_list:99:5: note: template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>) end(initializer_list<_Tp> __ils) noexcept ^ user.cpp:74:53: error: reference to ‘end’ is ambiguous scanf ("%d%d%d%d", &start.x, &start.y, &end.x, &end.y); ^ user.cpp:36:14: note: candidates are: point end point start, end; ^ In file included from /usr/include/c++/4.8/deque:65:0, from /usr/include/c++/4.8/queue:60, from user.cpp:3: /usr/include/c++/4.8/bits/range_access.h:97:5: note: template<class _Tp, unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm]) end(_Tp (&__arr)[_Nm]) ^ /usr/include/c++/4.8/bits/range_access.h:78:5: note: template<class _Container> decltype (__cont.end()) std::end(const _Container&) end(const _Container& __cont) -> decltype(__cont.end()) ^ /usr/include/c++/4.8/bits/range_access.h:68:5: note: template<class _Container> decltype (__cont.end()) std::end(_Container&) end(_Container& __cont) -> decltype(__cont.end()) ^ In file included from /usr/include/c++/4.8/bits/stl_deque.h:63:0, from /usr/include/c++/4.8/deque:64, from /usr/include/c++/4.8/queue:60,

Ceva nu functioneaza?