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

0_0_18361220_12209.cpp: In function 'void check(int, int)':
0_0_18361220_12209.cpp:23:49: error: no matching function for call to 'std::set<std::pair<int, int> >::lower_bound(int&)'
         set<P>::iterator its = s.lower_bound(mid);
                                                 ^
0_0_18361220_12209.cpp:23:49: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:61:0,
                 from 0_0_18361220_12209.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:722:7: note: std::set<_Key, _Compare, _Alloc>::iterator std::set<_Key, _Compare, _Alloc>::lower_bound(const key_type&) [with _Key = std::pair<int, int>; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::key_type = std::pair<int, int>]
       lower_bound(const key_type& __x)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:722:7: note:   no known conversion for argument 1 from 'int' to 'const key_type& {aka const std::pair<int, int>&}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:726:7: note: std::set<_Key, _Compare, _Alloc>::const_iterator std::set<_Key, _Compare, _Alloc>::lower_bound(const key_type&) const [with _Key = std::pair<int, int>; _Compare = std::less<std::pair<int, int> >; _Alloc = std::allocator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::const_iterator = std::_Rb_tree_const_iterator<std::pair<int, int> >; std::set<_Key, _Compare, _Alloc>::key_type = std::pair<int, int>]
       lower_bound(const key_type& __x) const
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:726:7: note:   no known conversion for argument 1 from 'int' to 'const key_type& {aka const std::pair<int, int>&}'


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 01:51:58, Gzip enabled