Job 9551

Owner
Morosac M. George Marian
Problem
The Oddest Tree
Source
1.67KB
Result
Compile error (Non-zero exit status: 1)

Compiler output

prog.cpp: In function 'int main()':
prog.cpp:66:30: error: no matching function for call to 'std::vector<Node>::push_back(<brace-enclosed initializer list>)'
prog.cpp:66:30: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from prog.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Node; _Alloc = std::allocator<Node>; std::vector<_Tp, _Alloc>::value_type = Node]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const Node&}'
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Node; _Alloc = std::allocator<Node>; std::vector<_Tp, _Alloc>::value_type = Node]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<Node>::value_type&& {aka Node&&}'
prog.cpp:67:54: error: no matching function for call to 'std::vector<Node>::push_back(<brace-enclosed initializer list>)'
prog.cpp:67:54: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from prog.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Node; _Alloc = std::allocator<Node>; std::vector<_Tp, _Alloc>::value_type = Node]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const Node&}'
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Node; _Alloc = std::allocator<Node>; std::vector<_Tp, _Alloc>::value_type = Node]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<Node>::value_type&& {aka Node&&}'
prog.cpp:83:29: error: no matching function for call to 'std::vector<Node>::push_back(<brace-enclosed initializer list>)'
prog.cpp:83:29: note: candidates are:
In file included from /usr/include/c++/4.7/vector:65:0,
                 from prog.cpp:5:
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Node; _Alloc = std::allocator<Node>; std::vector<_Tp, _Alloc>::value_type = Node]
/usr/include/c++/4.7/bits/stl_vector.h:881:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const Node&}'
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Node; _Alloc = std::allocator<Node>; std::vector<_Tp, _Alloc>::value_type = Node]
/usr/include/c++/4.7/bits/stl_vector.h:899:7: note:   no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<Node>::value_type&& {aka Node&&}'

Questions?

Sponsors Gold