Borderou de evaluare (job #2189474)
Utilizator | Data | 28 martie 2018 13:37:12 | |
---|---|---|---|
Problema | Zmeu2 | 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:25:43: error: no matching function for call to ‘std::vector<Story>::push_back(<brace-enclosed initializer list>)’
Stories.push_back({ duration, headsCut });
^
In file included from /usr/include/c++/6/vector:64:0,
from user.cpp:2:
/usr/include/c++/6/bits/stl_vector.h:914:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Story; _Alloc = std::allocator<Story>; std::vector<_Tp, _Alloc>::value_type = Story]
push_back(const value_type& __x)
^~~~~~~~~
/usr/include/c++/6/bits/stl_vector.h:914:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const value_type& {aka const Story&}’
/usr/include/c++/6/bits/stl_vector.h:932:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Story; _Alloc = std::allocator<Story>; std::vector<_Tp, _Alloc>::value_type = Story]
push_back(value_type&& __x)
^~~~~~~~~
/usr/include/c++/6/bits/stl_vector.h:932:7: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘std::vector<Story>::value_type&& {aka Story&&}’
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !