#include <iostream>
#include <set>
#include <vector>
using namespace std;
int
main ()
{
int mynumbers[] = { 8, 9, 7, 6, 4, 1 };
vector < int >v (mynumbers, mynumbers + 6);
set < int >s1 (v.begin (), v.end ());
s1.erase (s1.lower_bound (4), s1.upper_bound (9)); // LINE I
s1.insert (10); //LINE II
s1.insert (v.begin (), v.end ());
for (set < int >::iterator i = s1.begin (); i != s1.end (); i++)
cout << *i << ", ";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKI2luY2x1ZGUgPHNldD4KCiNpbmNsdWRlIDx2ZWN0b3I+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50Cm1haW4gKCkKewoKICBpbnQgbXludW1iZXJzW10gPSB7IDgsIDksIDcsIDYsIDQsIDEgfTsKCiAgdmVjdG9yIDwgaW50ID52IChteW51bWJlcnMsIG15bnVtYmVycyArIDYpOwoKICBzZXQgPCBpbnQgPnMxICh2LmJlZ2luICgpLCB2LmVuZCAoKSk7CgogIHMxLmVyYXNlIChzMS5sb3dlcl9ib3VuZCAoNCksIHMxLnVwcGVyX2JvdW5kICg5KSk7ICAgIC8vIExJTkUgSQoKICBzMS5pbnNlcnQgKDEwKTsgICAgICAgIC8vTElORSBJSQoKICBzMS5pbnNlcnQgKHYuYmVnaW4gKCksIHYuZW5kICgpKTsKCiAgZm9yIChzZXQgPCBpbnQgPjo6aXRlcmF0b3IgaSA9IHMxLmJlZ2luICgpOyBpICE9IHMxLmVuZCAoKTsgaSsrKQoKICAgIGNvdXQgPDwgKmkgPDwgIiwgIjsKCiAgcmV0dXJuIDA7Cgp9Cg==