Problem ccs
User 583116UB
Submission Time 2024-07-06 10:17:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ccs.cpp: In function ‘int main()’:
ccs.cpp:20:19: error: invalid use of member function ‘template<class _Kt> decltype ((std::set<_Key, _Compare, _Alloc>::const_iterator)(((const std::set<_Key, _Compare, _Alloc>*)this)->std::set<_Key, _Compare, _Alloc>::_M_t._M_lower_bound_tr(__x))) std::set<_Key, _Compare, _Alloc>::lower_bound(const _Kt&) const [with _Kt = _Kt; _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>]’ (did you forget the ‘()’ ?)
20 | if(asleep_cats.lower_bound.(x)!=asleep_cats.end() and
| ~~~~~~~~~~~~^~~~~~~~~~~
ccs.cpp:21:29: error: ‘X’ was not declared in this scope
21 | *asleep_cats.lower_bound(X) <= y){
| ^
ccs.cpp:22:17: error: expected ‘;’ before ‘}’ token
22 | cout<<"NO\n"
| ^
| ;
23 | }else{
| ~
ccs.cpp:28:10: error: expect