Problem ccs
User YongXin
Submission Time 2023-06-16 13:26:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ccs.cpp: In function ‘int main()’:
ccs.cpp:15:23: error: no match for ‘operator!’ (operand type is ‘std::set<long long int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<long long int>’})
15 | if (!s.empty() && !s.lower_bound(f)==s.end() && *s.lower_bound(f)<=t) cout<<"NO";
| ^~~~~~~~~~~~~~~~~
ccs.cpp:15:23: note: candidate: ‘operator!(bool)’ <built-in>
ccs.cpp:15:23: note: no known conversion for argument 1 from ‘std::set<long long int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<long long int>’} to ‘bool’