Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <algorithm>
- #include <vector>
- #include <cmath>
- #include <set>
- #include <array>
- using namespace std;
- int main() {
- set<array<int, 3> > st;
- st.insert({1, 2, 3});
- st.insert({3, 2, 3});
- st.insert({5, 2, 3});
- for(set<array<int, 3> >::iterator it = st.begin(); it != st.end(); it++) {
- for(int i = 0; i < 3; i++) {
- cout << it->at(i) << " ";
- }
- cout << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement