Problem | childvschild |
---|---|
User | blackpanther |
Submission Time | 2025-05-14 15:56:42 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
childvschild.cpp: In function ‘int main()’:
childvschild.cpp:8:30: error: no matching function for call to ‘std::multiset<std::pair<int, int> >::multiset(int&)’
8 | multiset<pair<int,int>> ab(n);
| ^
In file included from /usr/include/c++/9/set:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from childvschild.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:
childvschild.cpp:8:30: note: candidate expects 3 arguments, 1 provided
8 | multiset<pair<int,int>> ab(n);
|