Problem | cups |
---|---|
User | Hengweezy |
Submission Time | 2024-01-31 16:34:49 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
cups.cpp: In function ‘int main()’:
cups.cpp:18:14: error: no match for ‘operator!=’ (operand types are ‘const int’ and ‘std::set<int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<int>’})
18 | if(*lower != cup.end()){
| ~~~~~~ ^~ ~~~~~~~~~
| | |
| const int std::set<int>::iterator {aka std::_Rb_tree_const_iterator<int>}
In file included from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/ios:38,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from cups.cpp:1:
/usr/include/c++/9/bits/postypes.h:227:5: note: candidate: ‘template<class _StateT> bool std::operator!=(const std::fpos<_StateT>&, const std::fpos<_StateT>&)’
227 | operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs)
| ^~~~~~~~
/usr/include/c+