Borderou de evaluare (job #3216484)

Utilizator antonc27Anton Malmygin antonc27 Data 17 martie 2024 13:36:55
Problema Padure Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:21:3: error: 'memset' was not declared in this scope 21 | memset(cost, -1, N*M*sizeof(short)); | ^~~~~~ main.cpp:4:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'? 3 | #include <deque> +++ |+#include <cstring> 4 | main.cpp:26:14: error: no matching function for call to 'std::deque<std::tuple<int, int> >::push_back(<brace-enclosed initializer list>)' 26 | q.push_back({pl, cl}); | ~~~~~~~~~~~^~~~~~~~~~ In file included from /usr/include/c++/12.2.1/deque:64, from main.cpp:3: /usr/include/c++/12.2.1/bits/stl_deque.h:1538:7: note: candidate: 'void std::deque<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::tuple<int, int>; _Alloc = std::allocator<std::tuple<int, int> >; value_type = std::tuple<int, int>]' 1538 | push_back(const value_type& __x) | ^~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_deque.h:1538:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::deque<std::tuple<int, int> >::value_type&' {aka 'const std::tuple<int, int>&'} 1538 | push_back(const value_type& __x) | ~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/12.2.1/bits/stl_deque.h:1553:7: note: candidate: 'void std::deque<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::tuple<int, int>; _Alloc = std::allocator<std::tuple<int, int> >; value_type = std::tuple<int, int>]' 1553 | push_back(value_type&& __x) | ^~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_deque.h:1553:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::deque<std::tuple<int, int> >::value_type&&' {aka 'std::tuple<int, int>&&'} 1553 | push_back(value_type&& __x) | ~~~~~~~~~~~~~^~~ main.cpp:28:10: error: 'std::tuple<int, int> <structured bindings>' has incomplete type 28 | auto [curr_i, curr_j] = q.front(); | ^~~~~~~~~~~~~~~~ main.cpp:46:23: error: no matching function for call to 'std::deque<std::tuple<int, int> >::push_front(<brace-enclosed initializer list>)' 46 | q.push_front({next_i, next_j}); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_deque.h:1501:7: note: candidate: 'void std::deque<_Tp, _Alloc>::push_front(const value_type&) [with _Tp = std::tuple<int, int>; _Alloc = std::allocator<std::tuple<int, int> >; value_type = std::tuple<int, int>]' 1501 | push_front(const value_type& __x) | ^~~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_deque.h:1501:36: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::deque<std::tuple<int, int> >::value_type&' {aka 'const std::tuple<int, int>&'} 1501 | push_front(const value_type& __x) | ~~~~~~~~~~~~~~~~~~^~~ /usr/include/c++/12.2.1/bits/stl_deque.h:1516:7: note: candidate: 'void std::deque<_Tp, _Alloc>::push_front(value_type&&) [with _Tp = std::tuple<int, int>; _Alloc = std::allocator<std::tuple<int, int> >; value_type = std::tuple<int, int>]' 1516 | push_front(value_type&& __x) | ^~~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_deque.h:1516:31: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::deque<std::tuple<int, int> >::value_type&&' {aka 'std::tuple<int, int>&&'} 1516 | push_front(value_type&& __x) | ~~~~~~~~~~~~~^~~ main.cpp:49:22: error: no matching function for call to 'std::deque<std::tuple<int, int> >::push_back(<brace-enclosed initializer list>)' 49 | q.push_back({next_i, next_j}); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_deque.h:1538:7: note: candidate: 'void std::deque<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::tuple<int, int>; _Alloc = std::allocator<std::tuple<int, int> >; value_type = std::tuple<int, int>]' 1538 | push_back(const value_type& __x) | ^~~~~~~~~ /usr/include/c++/12.2.1/bits/stl_deque.h:1538:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const std::deque<std::tuple<int, int> >::value_type&' {aka 'const std::tuple<int, int>&'} Non zero exit status: 1

Ceva nu functioneaza?