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>&}'
|