Problem duckhunt5
User lxmine
Submission Time 2026-05-16 09:33:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt5.cpp: In function ‘int main()’:
duckhunt5.cpp:14:22: error: could not convert ‘ms.std::multiset<int>::lower_bound(x)’ from ‘std::multiset<int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<int>’} to ‘bool’
14 | if (ms.lower_bound(x)) == s.end()){cout << -1 << endl;}
| ~~~~~~~~~~~~~~^~~
| |
| std::multiset<int>::iterator {aka std::_Rb_tree_const_iterator<int>}
duckhunt5.cpp:14:27: error: expected primary-expression before ‘==’ token
14 | if (ms.lower_bound(x)) == s.end()){cout << -1 << endl;}
| ^~
duckhunt5.cpp:14:30: error: ‘s’ was not declared in this scope
14 | if (ms.lower_bound(x)) == s.end()){cout << -1 << endl;}
| ^