Borderou de evaluare (job #1718011)

Utilizator Ionut.popescuLiviu Rebreanu Ionut.popescu Data 16 iunie 2016 13:24:05
Problema Network Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In member function ‘std::pair<double, double> Graph::answer()’: user.cpp:41:42: error: ‘sort’ was not declared in this scope sort(comp.begin(), comp.end()); ^ user.cpp:54:35: error: ‘tie’ was not declared in this scope tie(to, p1, p2) = e; ^ user.cpp: In member function ‘void Graph::tarjan(int)’: user.cpp:97:31: error: no matching function for call to ‘get(std::tuple<int, double, double>&)’ auto to = get<0>(e); ^ user.cpp:97:31: note: candidates are: In file included from user.cpp:4:0: /usr/include/c++/4.8/array:268:5: note: template<unsigned int _Int, class _Tp, unsigned int _Nm> constexpr _Tp& std::get(std::array<_Tp, _Nm>&) get(array<_Tp, _Nm>& __arr) noexcept ^ /usr/include/c++/4.8/array:268:5: note: template argument deduction/substitution failed: user.cpp:97:31: note: ‘std::tuple<int, double, double>’ is not derived from ‘std::array<_Tp, _Nm>’ auto to = get<0>(e); ^ In file included from user.cpp:4:0: /usr/include/c++/4.8/array:277:5: note: template<unsigned int _Int, class _Tp, unsigned int _Nm> constexpr _Tp&& std::get(std::array<_Tp, _Nm>&&) get(array<_Tp, _Nm>&& __arr) noexcept ^ /usr/include/c++/4.8/array:277:5: note: template argument deduction/substitution failed: user.cpp:97:31: note: ‘std::tuple<int, double, double>’ is not derived from ‘std::array<_Tp, _Nm>’ auto to = get<0>(e); ^ In file included from user.cpp:4:0: /usr/include/c++/4.8/array:285:5: note: template<unsigned int _Int, class _Tp, unsigned int _Nm> constexpr const _Tp& std::get(const std::array<_Tp, _Nm>&) get(const array<_Tp, _Nm>& __arr) noexcept ^ /usr/include/c++/4.8/array:285:5: note: template argument deduction/substitution failed: user.cpp:97:31: note: ‘std::tuple<int, double, double>’ is not derived from ‘const std::array<_Tp, _Nm>’ auto to = get<0>(e); ^ In file included from /usr/include/c++/4.8/vector:69:0, from user.cpp:3: /usr/include/c++/4.8/bits/vector.tcc: In instantiation of ‘void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {int&, double&, double&}; _Tp = std::tuple<int, double, double>; _Alloc = std::allocator<std::tuple<int, double, double> >]’: user.cpp:31:44: required from here /usr/include/c++/4.8/bits/vector.tcc:98:6: error: cannot increment a pointer to incomplete type ‘std::tuple<int, double, double>’ ++this->_M_impl._M_finish; ^ In file included from /usr/include/c++/4.8/vector:64:0, from user.cpp:3: /usr/include/c++/4.8/bits/stl_vector.h: In instantiation of ‘std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::tuple<int, double, double>; _Alloc = std::allocator<std::tuple<int, double, double> >; std::vector<_Tp, _Alloc>::size_type = unsigned int]’: user.cpp:51:63: required from here /usr/include/c++/4.8/bits/stl_vector.h:646:50: error: invalid use of incomplete type ‘class std::tuple<int, double, double>’ { return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); } ^

Ceva nu functioneaza?