F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_23688362_14104.cpp:3:
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 = node*; _Value = const node; _Compare = bool (*)(node&, node&)]':
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 = node*; _Tp = node; _Compare = __gnu_cxx::__ops::_Iter_comp_val<bool (*)(node&, node&)>]'
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 = node*; _Distance = long long int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(node&, node&)>]'
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 = node*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(node&, node&)>]'
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 = node*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(node&, node&)>]'
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 = node*; _Compare = bool (*)(node&, node&)]'
0_0_23688362_14104.cpp:60:40:   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 'node&' from expression of type 'const node'
  { 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 node; _Iterator = node*; _Compare = bool (*)(node&, node&)]':
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 = node*; _Tp = node; _Compare = __gnu_cxx::__ops::_Val_comp_iter<bool (*)(node&, node&)>]'
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 = node*; _Distance = long long int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(node&, node&)>]'
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 = node*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(node&, node&)>]'
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 = node*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool (*)(node&, node&)>]'
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 = node*; _Compare = bool (*)(node&, node&)]'
0_0_23688362_14104.cpp:60:40:   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 'node&' from expression of type 'const node'
  { return bool(_M_comp(__val, *__it)); }
                                     ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-12-02 17:40:21, Gzip enabled