In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:71:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_37841306_21080.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_comp_val<_Compare>::operator()(_Iterator, _Value&) [with _Iterator = __gnu_cxx::__normal_iterator<Edge*, std::vector<Edge> >; _Value = const Edge; _Compare = bool (*)(Edge&, Edge&)]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:965:30: required from '_ForwardIterator std::__lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = __gnu_cxx::__normal_iterator<Edge*, std::vector<Edge> >; _Tp = Edge; _Compare = __gnu_cxx::__ops::_Iter_comp_val<bool (*)(Edge&, Edge&)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:2515:47: required from 'void std::__merge_without_buffer(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Compare) [with _BidirectionalIterator = __gnu_cxx::__normal_iterator<Edge*, std::vector<Edge> >; _Distance = long long int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Edge&, Edge&)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:2785:13: required from 'void std::__inplace_stable_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<Edge*, std::vector<Edge> >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Edge&, Edge&)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4850:52: required from 'void std::__stable_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<Edge*, std::vector<Edge> >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Edge&, Edge&)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4920:51: required from 'void std::stable_sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<Edge*, std::vector<Edge> >; _Compare = bool (*)(Edge&, Edge&)]'
0_0_37841306_21080.cpp:78:44: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h:141:37: error: invalid initialization of reference of type 'Edge&' from expression of type 'const Edge'
{ return bool(_M_comp(*__it, __val)); }
^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Val_comp_iter<_Compare>::operator()(_Value&, _Iterator) [with _Value = const Edge; _Iterator = __gnu_cxx::__normal_iterator<Edge*, std::vector<Edge> >; _Compare = bool (*)(Edge&, Edge&)]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:2054:30: required from '_ForwardIterator std::__upper_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = __gnu_cxx::__normal_iterator<Edge*, std::vector<Edge> >; _Tp = Edge; _Compare = __gnu_cxx::__ops::_Val_comp_iter<bool (*)(Edge&, Edge&)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:2524:47: required from 'void std::__merge_without_buffer(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Compare) [with _BidirectionalIterator = __gnu_cxx::__normal_iterator<Edge*, std::vector<Edge> >; _Distance = long long int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Edge&, Edge&)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:2785:13: required from 'void std::__inplace_stable_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<Edge*, std::vector<Edge> >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Edge&, Edge&)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4850:52: required from 'void std::__stable_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<Edge*, std::vector<Edge> >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(Edge&, Edge&)>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4920:51: required from 'void std::stable_sort(_RAIter, _RAIter, _Compare) [with _RAIter = __gnu_cxx::__normal_iterator<Edge*, std::vector<Edge> >; _Compare = bool (*)(Edge&, Edge&)]'
0_0_37841306_21080.cpp:78:44: required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h:166:37: error: invalid initialization of reference of type 'Edge&' from expression of type 'const Edge'
{ return bool(_M_comp(__val, *__it)); }
^
|