Borderou de evaluare (job #1446284)

Utilizator freak93Adrian Budau freak93 Data 1 iunie 2015 11:47:46
Problema Magazin Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:37:38: error: ‘sort’ was not declared in this scope sort(V[i].begin(), V[i].end()); ^ user.cpp:45:27: error: call of overloaded ‘vector(int&, <brace-enclosed initializer list>)’ is ambiguous vector<state> dp(N, {}); ^ user.cpp:45:27: note: candidates are: In file included from /usr/include/c++/4.8/vector:64:0, from user.cpp:4: /usr/include/c++/4.8/bits/stl_vector.h:281:7: note: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = std::array<std::array<int, 3u>, 2u>; _Alloc = std::allocator<std::array<std::array<int, 3u>, 2u> >; std::vector<_Tp, _Alloc>::size_type = unsigned int; std::vector<_Tp, _Alloc>::value_type = std::array<std::array<int, 3u>, 2u>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::array<std::array<int, 3u>, 2u> >] vector(size_type __n, const value_type& __value, ^ /usr/include/c++/4.8/bits/stl_vector.h:269:7: note: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const allocator_type&) [with _Tp = std::array<std::array<int, 3u>, 2u>; _Alloc = std::allocator<std::array<std::array<int, 3u>, 2u> >; std::vector<_Tp, _Alloc>::size_type = unsigned int; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::array<std::array<int, 3u>, 2u> >] vector(size_type __n, const allocator_type& __a = allocator_type()) ^ user.cpp:58:14: error: no matching function for call to ‘min(<brace-enclosed initializer list>)’ }); ^ user.cpp:58:14: note: candidates are: In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from user.cpp:1: /usr/include/c++/4.8/bits/stl_algobase.h:193:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&) min(const _Tp& __a, const _Tp& __b) ^ /usr/include/c++/4.8/bits/stl_algobase.h:193:5: note: template argument deduction/substitution failed: user.cpp:58:14: note: candidate expects 2 arguments, 1 provided }); ^ In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from user.cpp:1: /usr/include/c++/4.8/bits/stl_algobase.h:239:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare) min(const _Tp& __a, const _Tp& __b, _Compare __comp) ^ /usr/include/c++/4.8/bits/stl_algobase.h:239:5: note: template argument deduction/substitution failed: user.cpp:58:14: note: candidate expects 3 arguments, 1 provided }); ^ user.cpp:64:14: error: no matching function for call to ‘min(<brace-enclosed initializer list>)’ }); ^ user.cpp:64:14: note: candidates are: In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0, from /usr/include/c++/4.8/ios:40,

Ceva nu functioneaza?