#include <iostream>
#include <set>
using namespace std;
void printSet(set<int> st) {
for (auto n: st) {
cout << n << ' ' ;
}
}
int main ()
{
int arr[] = {1, 2, 3, 4, 5, 6, 7};
std::set<int> st(arr + 1, arr + 4);
printSet(st);
return 0;
}
/*
run:
2 3 4
*/