roads.cpp: In function 'void solve(int, int, int)':
roads.cpp:26:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
26 | for(i = 0; i < diff.size() && (diff[i] < 0 || diff.size() - i > k + 1); ++i)
| ~~^~~~~~~~~~~~~
roads.cpp:26:67: warning: comparison of integer expressions of different signedness: 'std::vector<long long int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
26 | for(i = 0; i < diff.size() && (diff[i] < 0 || diff.size() - i > k + 1); ++i)
| ~~~~~~~~~~~~~~~~^~~~~~~
roads.cpp:29:24: warning: comparison of integer expressions of different signedness: 'std::vector<long long int>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
29 | if(diff.size() - i > k)
| ~~~~~~~~~~~~~~~~^~~
roads.cpp:25:9: warning: unused variable 'cnt' [-Wunused-variable]
25 | int cnt = 0, i;
| ^~~