Problem | pigeonhole |
---|---|
User | limmingyao21 |
Submission Time | 2023-10-28 21:14:58 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
pigeonhole.cpp: In function ‘int main()’:
pigeonhole.cpp:10:27: error: no matching function for call to ‘std::multiset<int>::multiset(int&)’
10 | multiset<int> counts(h);
| ^
In file included from /usr/include/c++/9/set:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from pigeonhole.cpp:1:
/usr/include/c++/9/bits/stl_multiset.h:267:2: note: candidate: ‘template<class _InputIterator> std::multiset<_Key, _Compare, _Alloc>::multiset(_InputIterator, _InputIterator, const allocator_type&)’
267 | multiset(_InputIterator __first, _InputIterator __last,
| ^~~~~~~~
/usr/include/c++/9/bits/stl_multiset.h:267:2: note: template argument deduction/substitution failed:
pigeonhole.cpp:10:27: note: candidate expects 3 arguments, 1 provided
10 | multiset<int> counts(h);
| ^
In file included fr