Borderou de evaluare (job #2161638)

Utilizator andrei.arnautuAndi Arnautu andrei.arnautu Data 11 martie 2018 19:57:18
Problema Delfin Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: In file included from /usr/include/x86_64-linux-gnu/c++/5/32/bits/c++allocator.h:33:0, from /usr/include/c++/5/bits/allocator.h:46, from /usr/include/c++/5/deque:61, from user.cpp:6: /usr/include/c++/5/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = Str; _Args = {int&, int&, int, int&, bool}; _Tp = Str]’: /usr/include/c++/5/bits/alloc_traits.h:530:4: required from ‘static void std::allocator_traits<std::allocator<_Tp1> >::construct(std::allocator_traits<std::allocator<_Tp1> >::allocator_type&, _Up*, _Args&& ...) [with _Up = Str; _Args = {int&, int&, int, int&, bool}; _Tp = Str; std::allocator_traits<std::allocator<_Tp1> >::allocator_type = std::allocator<Str>]’ /usr/include/c++/5/bits/deque.tcc:137:30: required from ‘void std::deque<_Tp, _Alloc>::emplace_front(_Args&& ...) [with _Args = {int&, int&, int, int&, bool}; _Tp = Str; _Alloc = std::allocator<Str>]’ user.cpp:109:48: required from here /usr/include/c++/5/ext/new_allocator.h:120:4: error: no matching function for call to ‘Str::Str(int&, int&, int, int&, bool)’ { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); } ^ user.cpp:24:3: note: candidate: Str::Str(int, int, int, int) Str(const int _x, const int _y, const int _type, const int _dist) {x = _x; y = _y; type = _type; dist = _dist; restricted = 0;} ^ user.cpp:24:3: note: candidate expects 4 arguments, 5 provided user.cpp:22:3: note: candidate: Str::Str() Str() {x = 0; y = 0; type = 0; dist = 0; restricted = 0;} ^ user.cpp:22:3: note: candidate expects 0 arguments, 5 provided user.cpp:19:8: note: candidate: constexpr Str::Str(const Str&) struct Str { ^ user.cpp:19:8: note: candidate expects 1 argument, 5 provided user.cpp:19:8: note: candidate: constexpr Str::Str(Str&&) user.cpp:19:8: note: candidate expects 1 argument, 5 provided user.cpp: In function ‘void ReadInput()’: user.cpp:43:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &m); ^ user.cpp:45:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", s + 1); ^

Ceva nu functioneaza?