prepare (1/3):
finished
make (2/3):
g++ -o main main.cpp
main.cpp: In function 'int findSpanning(std::map<int, std::vector<edge> >, int)':
main.cpp:102:41: error: 'INT_MAX' was not declared in this scope
nodeToAdd.push_back({it->first, INT_MAX});
^~~~~~~
main.cpp:102:41: note: suggested alternative: 'INT8_MAX'
nodeToAdd.push_back({it->first, INT_MAX});
^~~~~~~
INT8_MAX
main.cpp:102:49: error: no matching function for call to 'std::vector<mstEdge>::push_back(<brace-enclosed initializer list>)'
nodeToAdd.push_back({it->first, INT_MAX});
^
In file included from /usr/include/c++/7/vector:64:0,
from main.cpp:2:
/usr/include/c++/7/bits/stl_vector.h:939:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = mstEdge; _Alloc = std::allocator<mstEdge>; std::vector<_Tp, _Alloc>::value_type = mstEdge]
push_back(const value_type& __x)
^~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:939:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type& {aka const mstEdge&}'
/usr/include/c++/7/bits/stl_vector.h:953:7: note: candidate: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = mstEdge; _Alloc = std::allocator<mstEdge>; std::vector<_Tp, _Alloc>::value_type = mstEdge]
push_back(value_type&& __x)
^~~~~~~~~
/usr/include/c++/7/bits/stl_vector.h:953:7: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::vector<mstEdge>::value_type&& {aka mstEdge&&}'
Makefile:2: recipe for target 'main' failed
make: *** [main] Error 1
build failed