| Problem | arrayfind |
|---|---|
| User | R9q5P8 |
| Submission Time | 2025-11-28 20:45:45 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
arrayfind.cpp: In function ‘int main()’:
arrayfind.cpp:15:13: error: no matching function for call to ‘std::multiset<int>::insert(std::multiset<int>&)’
15 | s.insert(s);
| ^
In file included from /usr/include/c++/9/set:62,
from arrayfind.cpp:2:
/usr/include/c++/9/bits/stl_multiset.h:502:7: note: candidate: ‘std::multiset<_Key, _Compare, _Alloc>::iterator std::multiset<_Key, _Compare, _Alloc>::insert(const value_type&) [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>; std::multiset<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<int>; std::multiset<_Key, _Compare, _Alloc>::value_type = int]’
502 | insert(const value_type& __x)
| ^~~~~~
/usr/include/c++/9/bits/stl_multiset.h:502:32: note: no known conversion for argument 1 from ‘std::multiset<int>’ to ‘const value_type&’ {aka ‘const int&’}
502 |