Problem | cinema |
---|---|
User | gghx |
Submission Time | 2024-11-26 00:07:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
cinema.cpp: In function ‘int main()’:
cinema.cpp:17:27: error: no match for ‘operator||’ (operand types are ‘std::set<long long int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<long long int>’} and ‘bool’)
17 | if(it=s.end() || *it>t) break;
| ~~~~~~~ ^~ ~~~~~
| | |
| | bool
| std::set<long long int>::iterator {aka std::_Rb_tree_const_iterator<long long int>}
cinema.cpp:17:27: note: candidate: ‘operator||(bool, bool)’ <built-in>
17 | if(it=s.end() || *it>t) break;
| ~~~~~~~~^~~~~~~~
cinema.cpp:17:27: 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’
In file included from /usr/include/c++/9/valarray:603,
from /usr/i