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++/string:48:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 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_21415787_16749.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_function.h: In instantiation of 'bool std::less<_Tp>::operator()(const _Tp&, const _Tp&) const [with _Tp = point]':
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/predefined_ops.h:141:37:   required from 'bool __gnu_cxx::__ops::_Iter_comp_val<_Compare>::operator()(_Iterator, _Value&) [with _Iterator = __gnu_cxx::__normal_iterator<point*, std::vector<point, std::allocator<point> > >; _Value = point; _Compare = std::less<point>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:129:76:   required from 'void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<point*, std::vector<point, std::allocator<point> > >; _Distance = long long int; _Tp = point; _Compare = __gnu_cxx::__ops::_Iter_comp_val<std::less<point> >]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_heap.h:201:51:   required from 'void std::push_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<point*, std::vector<point, std::allocator<point> > >; _Compare = std::less<point>]'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_queue.h:510:41:   required from 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = point; _Sequence = std::vector<point, std::allocator<point> >; _Compare = std::less<point>; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = point]'
0_0_21415787_16749.cpp:46:23:   required from here
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_function.h:371:20: error: passing 'const point' as 'this' argument of 'bool point::operator<(const point&)' discards qualifiers [-fpermissive]
       { return __x < __y; }
                    ^


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-11-17 16:19:09, Gzip enabled