Advertisement
Josif_tepe

Untitled

Mar 12th, 2022
1,270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <iostream>
  2. #include <set>
  3. using namespace std;
  4.  
  5. int main() {
  6.  
  7.     set<int> st;
  8.     st.insert(2);
  9.     st.insert(3);
  10.     st.insert(5);
  11.     st.insert(2);
  12.    
  13.     for(int x : st) {
  14.         cout << x << " ";
  15.     }
  16.    
  17.     return 0;
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement