xylophone.cpp: In function 'bool check_permutation(int)':
xylophone.cpp:4:5: error: 'set' was not declared in this scope
4 | set<int> s;
| ^~~
xylophone.cpp:4:9: error: expected primary-expression before 'int'
4 | set<int> s;
| ^~~
xylophone.cpp:5:34: error: 's' was not declared in this scope
5 | for (int i = 1; i <= n; ++i) s.insert(a[i]);
| ^
xylophone.cpp:6:9: error: 's' was not declared in this scope
6 | if (s.size() != n) return false;
| ^
xylophone.cpp:7:11: error: 's' was not declared in this scope
7 | if (*(s.begin()) != 1) return false;
| ^
xylophone.cpp:8:14: error: 's' was not declared in this scope
8 | auto k = s.end();
| ^
xylophone.cpp: In function 'void build_permutation1(int)':
xylophone.cpp:26:12: error: 'min_element' was not declared in this scope
26 | int mi = *min_element(a+1, a+n+1) - 1;
| ^~~~~~~~~~~
xylophone.cpp: In function 'void build_permutation2(int)':
xylophone.cpp:41:12: error: 'min_element' was not declared in this scope
41 | int mi = *min_element(a+1, a+n+1) - 1;
| ^~~~~~~~~~~