Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "bits/stdc++.h"
- using namespace std;
- int main () {
- ios::sync_with_stdio(false);
- cin.tie(nullptr);
- cout.tie(nullptr);
- set<int> st;
- st.insert(10);
- st.insert(20);
- st.insert(30);
- //~ st.begin(),st.begin() + 1,st.begin() + 2, st.end()
- //~ for (auto x : st) {
- //~ cout << x << ' ';
- //~ }
- //~ cout << '\n';
- //~ st.erase(21);
- //~ for (auto x : st) {
- //~ cout << x << ' ';
- //~ }
- //~ cout << '\n';
- auto it = st.find(20);
- if (it == st.end()) {
- //amra khuje painai
- } else {
- //amra paisi
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement