// C++ program to Insert // Elements In set using // Iterator Range
include <bits/stdc++.h>
using namespace std;
int main() { vector v{ 10, 20, 30 }; // Create an empty set set s;
// Inserting values of vector to set s.insert(v.begin(), v.end()); // Printing the set for (int x : s) { cout << x << " "; } // Output: 10 20 30 return 0;
}