Problem duckhunt5
User Arielhst
Submission Time 2026-05-16 09:26:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt5.cpp: In function ‘int main()’:
duckhunt5.cpp:5:2: error: ‘multiset’ was not declared in this scope
5 | multiset<int>ms;
| ^~~~~~~~
duckhunt5.cpp:2:1: note: ‘std::multiset’ is defined in header ‘<set>’; did you forget to ‘#include <set>’?
1 | #include <iostream>
+++ |+#include <set>
2 | using namespace std;
duckhunt5.cpp:5:11: error: expected primary-expression before ‘int’
5 | multiset<int>ms;
| ^~~
duckhunt5.cpp:6:2: error: ‘ms’ was not declared in this scope
6 | ms.insert(2)
| ^~