Advertisement
Josif_tepe

Untitled

Mar 12th, 2022
1,308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 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(set<int>::iterator it = st.begin(); it != st.end(); it++) {
  14.         cout << *it << endl;
  15.     }
  16.    
  17.     return 0;
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement