Problem ccs
User Fuhrer101
Submission Time 2023-11-14 14:17:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ccs.cpp: In function ‘int main()’:
ccs.cpp:29:19: error: no match for ‘operator||’ (operand types are ‘bool’ and ‘std::set<long long int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<long long int>’})
29 | if (*it > a2 or it = s.end()){
| ~~~~~~~~~ ^~ ~~
| | |
| bool std::set<long long int>::iterator {aka std::_Rb_tree_const_iterator<long long int>}
ccs.cpp:29:19: note: candidate: ‘operator||(bool, bool)’ <built-in>
29 | if (*it > a2 or it = s.end()){
| ~~~~~~~~~~~^~~~~
ccs.cpp:29:19: note: no known conversion for argument 2 from ‘std::set<long long int>::iterator’ {aka ‘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/bit