gap.cpp: In function 'long long int findGap(int, int)':
gap.cpp:17:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
17 | for(register int i = 2; i <= N/2 + (N & 1); ++i){
| ^
gap.cpp:27:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
27 | for(register int i = 2; i <= N; ++i) ans = max(ans, a[i] - a[i-1]);
| ^
gap.cpp:35:11: warning: narrowing conversion of 'mn' from 'long long int' to 'int' [-Wnarrowing]
35 | int pmn{mn}, pmx{mx};
| ^~
gap.cpp:35:20: warning: narrowing conversion of 'mx' from 'long long int' to 'int' [-Wnarrowing]
35 | int pmn{mn}, pmx{mx};
| ^~
gap.cpp:35:7: warning: variable 'pmn' set but not used [-Wunused-but-set-variable]
35 | int pmn{mn}, pmx{mx};
| ^~~