Advertisement
Josif_tepe

Untitled

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