Advertisement
Josif_tepe

Untitled

Mar 20th, 2024
589
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 <cmath>
  3. #include <set>
  4. using namespace std;
  5.  
  6. int main() {
  7.    
  8.     multiset<int> ms;
  9.    
  10.     ms.insert(5);
  11.     ms.insert(2);
  12.     ms.insert(1);
  13.     ms.insert(6);
  14.    
  15.     ms.erase(ms.find(5));
  16.    
  17.     for(int x : ms) {
  18.         cout << x << endl;
  19.     }
  20.     return 0;
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement