Advertisement
Josif_tepe

Untitled

May 25th, 2024
704
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include <iostream>
  2. #include <set>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     multiset<int> ms;
  8.     ms.insert(2);
  9.     ms.insert(3);
  10.     ms.insert(4);
  11.     ms.insert(5);
  12.     ms.insert(6);
  13.  
  14.     multiset<int>::iterator it = ms.lower_bound(3);
  15.  
  16.    
  17.     it--;
  18.     cout << *it << endl;
  19.    
  20.     return 0;
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement