Problem doll_noi
User personjs
Submission Time 2024-12-25 14:21:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

doll_noi.cpp: In function ‘int main()’:
doll_noi.cpp:19:36: error: no match for ‘operator!’ (operand type is ‘std::unordered_set<int>::iterator’ {aka ‘std::__detail::_Node_iterator<int, true, false>’})
19 | } else if (in(v - 1, dolls) && !in(v + 1, dolls)) {
| ^
doll_noi.cpp:19:36: note: candidate: ‘operator!(bool)’ <built-in>
doll_noi.cpp:19:36: note: no known conversion for argument 1 from ‘std::unordered_set<int>::iterator’ {aka ‘std::__detail::_Node_iterator<int, true, false>’} to ‘bool’
doll_noi.cpp:22:36: error: no match for ‘operator!’ (operand type is ‘std::unordered_set<int>::iterator’ {aka ‘std::__detail::_Node_iterator<int, true, false>’})
22 | } else if (in(v + 1, dolls) && !in(v - 1, dolls)) {
| ^
doll_noi.cpp:22:36: note: candidate: ‘operator!(bool)’ <built-in>
doll_noi.cpp:22:36: note: no known c