Borderou de evaluare (job #2925576)

Utilizator T_george_TGeorge Teodorescu T_george_T Data 15 octombrie 2022 18:42:14
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:27:19: error: 'make_tuple' was not declared in this scope 27 | dq.push_front(make_tuple(p1-1,c1-1,0)); | ^~~~~~~~~~ main.cpp:4:1: note: 'std::make_tuple' is defined in header '<tuple>'; did you forget to '#include <tuple>'? 3 | #include <deque> +++ |+#include <tuple> 4 | using namespace std; main.cpp:29:15: error: 'get' was not declared in this scope; did you mean 'getw'? 29 | int x=get<0>(dq.front()),y=get<1>(dq.front()),cost=get<2>(dq.front()); | ^~~ | getw main.cpp:31:12: error: 'cost' was not declared in this scope 31 | if(cost>=dist[x][y]) | ^~~~ main.cpp:31:26: error: 'y' was not declared in this scope 31 | if(cost>=dist[x][y]) | ^ main.cpp:33:17: error: 'y' was not declared in this scope 33 | dist[x][y]=cost; | ^ main.cpp:33:20: error: 'cost' was not declared in this scope 33 | dist[x][y]=cost; | ^~~~ main.cpp:38:15: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 38 | if(dist[x]) | ^ In file included from /usr/include/c++/10/deque:67, from main.cpp:3: /usr/include/c++/10/bits/stl_deque.h: In instantiation of 'void std::deque<_Tp, _Alloc>::pop_front() [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >]': main.cpp:30:22: required from here /usr/include/c++/10/bits/stl_deque.h:1533:40: error: invalid use of incomplete type 'class std::tuple<int, int, int>' 1533 | != this->_M_impl._M_start._M_last - 1) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /usr/include/c++/10/bits/move.h:57, from /usr/include/c++/10/bits/nested_exception.h:40, from /usr/include/c++/10/exception:148, from /usr/include/c++/10/ios:39, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from main.cpp:1: /usr/include/c++/10/type_traits:2631:11: note: declaration of 'class std::tuple<int, int, int>' 2631 | class tuple; | ^~~~~ In file included from /usr/include/c++/10/deque:67, from main.cpp:3: /usr/include/c++/10/bits/stl_deque.h:1537:31: error: cannot increment a pointer to incomplete type 'std::tuple<int, int, int>' 1537 | ++this->_M_impl._M_start._M_cur; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ /usr/include/c++/10/bits/stl_deque.h: In instantiation of 'void std::_Deque_base<_Tp, _Alloc>::_M_initialize_map(std::size_t) [with _Tp = std::tuple<int, int, int>; _Alloc = std::allocator<std::tuple<int, int, int> >; std::size_t = long unsigned int]': Non zero exit status: 1

Ceva nu functioneaza?