Problem ccs
User shawn
Submission Time 2024-07-05 22:43:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ccs.cpp: In function ‘int32_t main()’:
ccs.cpp:30:22: 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>’})
30 | if (u==a.end() || uu = a.end()){
| ~~~~~~~~~~ ^~ ~~
| | |
| bool std::set<long long int>::iterator {aka std::_Rb_tree_const_iterator<long long int>}
ccs.cpp:30:22: note: candidate: ‘operator||(bool, bool)’ <built-in>
30 | if (u==a.end() || uu = a.end()){
| ~~~~~~~~~~~^~~~~
ccs.cpp:30:22: 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/i