Problem pandacity
User R9q5P8
Submission Time 2025-11-10 15:16:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pandacity.cpp: In function ‘int main()’:
pandacity.cpp:12:22: error: no matching function for call to ‘std::multiset<int>::multiset(int&)’
12 | multiset<int> popl(N);
| ^
In file included from /usr/include/c++/9/set:62,
from pandacity.cpp:3:
/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:
pandacity.cpp:12:22: note: candidate expects 3 arguments, 1 provided
12 | multiset<int> popl(N);
| ^
In file included from /usr/include/c++/9/set:62,
from pandacity.cpp:3:
/usr/include/c++/9/bits/stl_