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