gap.cpp: In function 'int findGap()':
gap.cpp:3:5: error: 'set' was not declared in this scope
3 | set<int> st;
| ^~~
gap.cpp:3:9: error: expected primary-expression before 'int'
3 | set<int> st;
| ^~~
gap.cpp:7:9: error: 'MinMax' was not declared in this scope
7 | MinMax(s, t, mn, mx);
| ^~~~~~
gap.cpp:11:9: error: 'st' was not declared in this scope; did you mean 't'?
11 | st.insert(mn);
| ^~
| t
gap.cpp:16:5: error: 'vector' was not declared in this scope
16 | vector<int> a;
| ^~~~~~
gap.cpp:16:12: error: expected primary-expression before 'int'
16 | vector<int> a;
| ^~~
gap.cpp:17:19: error: 'st' was not declared in this scope; did you mean 't'?
17 | for (auto v : st) {
| ^~
| t
gap.cpp:18:9: error: 'a' was not declared in this scope
18 | a.push_back(v);
| ^
gap.cpp:21:30: error: 'a' was not declared in this scope
21 | for (int i = 1; i < (int)a.size(); ++i) {
| ^
gap.cpp:22:15: error: 'max' was not declared in this scope; did you mean 'mx'?
22 | ans = max(ans, a[i] - a[i - 1]);
| ^~~
| mx