Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <set>
- using namespace std;
- int main()
- {
- multiset<int> ms = {5, 3, 3, 1, 1};
- ms.erase(ms.begin());
- ms.erase(3);
- ms.erase(ms.find(1));
- for (auto x : ms)
- cout << x << " ";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment