gap.cpp: In function 'long long int findGap(int, int)':
gap.cpp:20:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
20 | for (int i = 0; i < v.size()-1; i++)ans = max(ans, v[i + 1] - v[i]);
| ~~^~~~~~~~~~~~
gap.cpp:35:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | for (int i = 0; i < v.size()-1; i++) {
| ~~^~~~~~~~~~~~
gap.cpp:14:10: warning: 'at' may be used uninitialized in this function [-Wmaybe-uninitialized]
14 | MinMax(a+1, b-1, at, bt);
| ~~~~~~^~~~~~~~~~~~~~~~~~
gap.cpp:14:10: warning: 'bt' may be used uninitialized in this function [-Wmaybe-uninitialized]
gap.cpp:25:9: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]
25 | MinMax(0, 1e18, a, b);
| ~~~~~~^~~~~~~~~~~~~~~
gap.cpp:25:9: warning: 'b' may be used uninitialized in this function [-Wmaybe-uninitialized]
gap.cpp:30:10: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized]
30 | MinMax(i, i + d, c, k);
| ~~~~~~^~~~~~~~~~~~~~~~
gap.cpp:30:10: warning: 'k' may be used uninitialized in this function [-Wmaybe-uninitialized]