Problem | duckhunt5 |
---|---|
User | xragon |
Submission Time | 2024-12-21 09:41:20 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
duckhunt5.cpp: In function ‘int main()’:
duckhunt5.cpp:19:17: error: cannot convert ‘std::multiset<int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<int>’} to ‘int’ in assignment
19 | it = ms.begin();
| ~~~~~~~~^~
| |
| std::multiset<int>::iterator {aka std::_Rb_tree_const_iterator<int>}
duckhunt5.cpp:24:10: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::multiset<int>::iterator’ {aka ‘std::_Rb_tree_const_iterator<int>’})
24 | cout << ms.lower_bound(x);
| ~~~~ ^~ ~~~~~~~~~~~~~~~~~
| | |
| | std::multiset<int>::iterator {aka std::_Rb_tree_const_iterator<int>}
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/9/istream:39,