Online C++ Compiler

#include <bits/stdc++.h> using namespace std; int main(){ set<int> Set; Set.insert(9); Set.insert(7); Set.insert(5); Set.insert(3); Set.insert(1); cout<<"Elements are : "; for (auto i = Set.begin(); i!= Set.end(); i++) cout << *i << " "; auto i = Set.upper_bound(5); cout <<"\nupper bound of 5 in the set is: "; cout << (*i) << endl; i = Set.upper_bound(1); cout<<"upper bound of 1 in the set is: "; cout << (*i) << endl; return 0; }