Josif_tepe

Untitled

May 15th, 2026
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include <iostream>
  2. #include <iterator>
  3. #include <set>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.     multiset<int> ms = {5, 3, 3, 1};
  9.  
  10.    
  11.     auto it1 = ms.begin();
  12.     cout << *it1 << " ";
  13.  
  14.     auto it2 = next(it1, 3);
  15.     cout << *it2;
  16.  
  17.     return 0;
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment