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