Problem typicalstairs
User playiprobro
Submission Time 2024-02-14 16:20:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

typicalstairs.cpp: In function ‘long long int fc(long long int)’:
typicalstairs.cpp:9:20: error: no match for ‘operator&&’ (operand types are ‘std::unordered_set<long long int>::iterator’ {aka ‘std::__detail::_Node_iterator<long long int, true, false>’} and ‘std::unordered_set<long long int>::iterator’ {aka ‘std::__detail::_Node_iterator<long long int, true, false>’})
9 | if (bs.find(n) and bs.find(n+1)) return 0;
| ~~~~~~~~~~ ^~~ ~~~~~~~~~~~~
| | |
| | _Node_iterator<[...],[...],[...]>
| _Node_iterator<[...],[...],[...]>
typicalstairs.cpp:9:20: note: candidate: ‘operator&&(bool, bool)’ <built-in>
9 | if (bs.find(n) and bs.find(n+1)) return 0;
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~
typicalstairs.cpp:9:20: note: no known conversion for argument 2 from ‘std::unordered_set<long long int>: