Josif_tepe

Untitled

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