gap.cpp: In function 'll findGap(int, int)':
gap.cpp:22:25: error: 'MinMax' was not declared in this scope
22 | MinMax(A[l - 1] + 1, A[N - l + 2] - 1, &A[l], &A[N - l + 1]);
| ^~~~~~
gap.cpp:30:17: error: 'MinMax' was not declared in this scope
30 | MinMax(0ll, 1000000000000000000ll, &mn, &mx);
| ^~~~~~
gap.cpp:31:49: error: 'l' was not declared in this scope
31 | ll L = mn, R = mx; ll md = (R - l + N) / N;
| ^
gap.cpp:34:39: error: 'B' was not declared in this scope
34 | MinMax(L + 1, min(B - 1, L + md), &mn, &mx);
| ^
gap.cpp:39:34: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
39 | for(int l = 1; l < S.size(); l++)
| ~~^~~~~~~~~~