Problem | leave |
---|---|
User | Jinxuan |
Submission Time | 2024-01-04 10:33:11 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
leave.cpp: In function ‘int main()’:
leave.cpp:16:44: error: no match for ‘operator!=’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type’ {aka ‘int’} and ‘std::set<int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<int>’})
16 | while(!q.empty() || leave.find(q.front()!=leave.end()) q.pop();
| ~~~~~~~~~^~~~~~~~~~~~~
| | |
| | std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}
| __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from leave.cpp:1:
/usr/include/c++/9/bits/regex.h:1037:5: note: can