gap.cpp: In function 'll findGap(int, int)':
gap.cpp:15:24: warning: comparison of integer expressions of different signedness: 'std::vector<long long int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
15 | while (k.size()<n) {
| ~~~~~~~~^~
gap.cpp:25:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | for (int i=1; i<k.size(); ++i) ans=max(ans,k[i]-k[i-1]);
| ~^~~~~~~~~
gap.cpp:39:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<long long int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
39 | for (int i=1; i<v.size(); ++i) ans=max(ans,v[i].first-v[i-1].second);
| ~^~~~~~~~~
gap.cpp:28:12: warning: unused variable 'mmin' [-Wunused-variable]
28 | ll mmin=mn,mmax=mx;
| ^~~~
gap.cpp:31:12: warning: unused variable 'wide' [-Wunused-variable]
31 | ll wide=(mx-mn+n-2)/(n-1);
| ^~~~