Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
#include <iostream>
#include <set>
int main() {
std::set<int> s = {1, 2, 3};
s.insert(4);
for (const auto& n : s) {
std::cout << n << ' ';
}
return 0;
}Coding works best on desktop or with an external keyboard.