Advertisement
newb_ie

Untitled

Oct 6th, 2021
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #include "bits/stdc++.h"
  2. using namespace std;
  3.  
  4. int main () {
  5. ios::sync_with_stdio(false);
  6. cin.tie(nullptr);
  7. cout.tie(nullptr);
  8. set<int> st;
  9. st.insert(10);
  10. st.insert(20);
  11. st.insert(30);
  12. //~ st.begin(),st.begin() + 1,st.begin() + 2, st.end()
  13. //~ for (auto x : st) {
  14. //~ cout << x << ' ';
  15. //~ }
  16. //~ cout << '\n';
  17. //~ st.erase(21);
  18. //~ for (auto x : st) {
  19. //~ cout << x << ' ';
  20. //~ }
  21. //~ cout << '\n';
  22. auto it = st.find(20);
  23. if (it == st.end()) {
  24. //amra khuje painai
  25. } else {
  26. //amra paisi
  27. }
  28. }
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement