Borderou de evaluare (job #1445308)
Utilizator | Data | 30 mai 2015 13:11:08 | |
---|---|---|---|
Problema | Constant | Status | done |
Runda | Adolescent Grigore Moisil 2015 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In member function ‘void Tree::prepare()’:
user.cpp:38:74: error: call of overloaded ‘vector(int, <brace-enclosed initializer list>)’ is ambiguous
m_count_up = m_partial_tree = vector< array<int, 10> >(size(), {});
^
user.cpp:38:74: note: candidates are:
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:281:7: note: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = std::array<int, 10u>; _Alloc = std::allocator<std::array<int, 10u> >; std::vector<_Tp, _Alloc>::size_type = unsigned int; std::vector<_Tp, _Alloc>::value_type = std::array<int, 10u>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::array<int, 10u> >]
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<int, 10u>; _Alloc = std::allocator<std::array<int, 10u> >; std::vector<_Tp, _Alloc>::size_type = unsigned int; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::array<int, 10u> >]
vector(size_type __n, const allocator_type& __a = allocator_type())
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !