// C++ program to insert elements in set using iterator range
include <bits/stdc++.h>
using namespace std;
int main(){
vector v{ 10, 20, 30 };
set s;
s.insert(v.begin(), v.end());
for (int x : s) { cout << x << " "; } // Output: 10 20 30 return 0;
}