Problem ccs
User chickennn
Submission Time 2026-11-05 13:42:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ccs.cpp: In function ‘int main()’:
ccs.cpp:24:35: error: no match for ‘operator||’ (operand types are ‘bool’ and ‘std::_Rb_tree_const_iterator<long long int>’)
24 | if (s.empty()||*it > y||it = s.end()) {
| ~~~~~~~~~~~~~~~~~~^~~~
| | |
| bool std::_Rb_tree_const_iterator<long long int>
ccs.cpp:24:35: note: candidate: ‘operator||(bool, bool)’ <built-in>
24 | if (s.empty()||*it > y||it = s.end()) {
| ~~~~~~~~~~~~~~~~~~^~~~
ccs.cpp:24:35: note: no known conversion for argument 2 from ‘std::_Rb_tree_const_iterator<long long int>’ to ‘bool’
In file included from /usr/include/c++/9/valarray:603,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from ccs.cpp:1:
/usr/include/c++/9/bits/valarray_after.h:416:5: note: candidate: ‘templa