Borderou de evaluare (job #2529569)
Utilizator | Data | 23 ianuarie 2020 17:40:23 | |
---|---|---|---|
Problema | BFS - Parcurgere in latime | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'int Graph::addEdge(int, int)':
main.cpp:26:27: error: no matching function for call to 'std::__cxx11::list<node>::push_back(<brace-enclosed initializer list>)'
Adj[x].push_back({x, y, 0});
^
In file included from /usr/include/c++/6/list:63:0,
from main.cpp:3:
/usr/include/c++/6/bits/stl_list.h:1097:7: note: candidate: void std::__cxx11::list<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = node; _Alloc = std::allocator<node>; std::__cxx11::list<_Tp, _Alloc>::value_type = node]
push_back(const value_type& __x)
^~~~~~~~~
/usr/include/c++/6/bits/stl_list.h:1097:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const node&}'
/usr/include/c++/6/bits/stl_list.h:1102:7: note: candidate: void std::__cxx11::list<_Tp, _Alloc>::push_back(std::__cxx11::list<_Tp, _Alloc>::value_type&&) [with _Tp = node; _Alloc = std::allocator<node>; std::__cxx11::list<_Tp, _Alloc>::value_type = node]
push_back(value_type&& __x)
^~~~~~~~~
/usr/include/c++/6/bits/stl_list.h:1102:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::__cxx11::list<node>::value_type&& {aka node&&}'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !