ho_t2.cpp: In function 'int main()':
ho_t2.cpp:17:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
17 | for (int s=0; s<j.size()-k+1; s++) {
| ~^~~~~~~~~~~~~
ho_t2.cpp:21:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | if (cur+k > o.size()) break;
| ~~~~~~^~~~~~~~~~
ho_t2.cpp:25:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | if (cur+k <= i.size()) ans = min(ans, i[cur+k-1]-j[s]+1);
| ~~~~~~^~~~~~~~~~~
ho_t2.cpp:8:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
8 | scanf("%d%d", &n, &k);
| ~~~~~^~~~~~~~~~~~~~~~
ho_t2.cpp:12:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
12 | scanf(" %c", &c);
| ~~~~~^~~~~~~~~~~