| Problem | cardplacing |
|---|---|
| User | Xiaoyang |
| Submission Time | 2025-12-29 16:52:06 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
cardplacing.cpp: In function ‘int main()’:
cardplacing.cpp:37:20: error: no match for ‘operator&&’ (operand types are ‘std::set<long long int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<long long int>’} and ‘std::set<long long int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<long long int>’})
37 | if((sb.find(x+1) and sb.find(x-1)) == 0){
| ~~~~~~~~~~~~ ^~~ ~~~~~~~~~~~~
| | |
| | _Rb_tree_const_iterator<[...]>
| _Rb_tree_const_iterator<[...]>
cardplacing.cpp:37:20: note: candidate: ‘operator&&(bool, bool)’ <built-in>
37 | if((sb.find(x+1) and sb.find(x-1)) == 0){
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
cardplacing.cpp:37:20: 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