ho_t2.cpp: In function 'int main()':
ho_t2.cpp:10:21: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
cin >> N >> K >> S + 1;
~~^~~
ho_t2.cpp:17:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0, j = 0, k = 0; i + K - 1 < O.size(); ++i) {
~~~~~~~~~~^~~~~~~~~~
ho_t2.cpp:18:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (j + K < J.size() && J[j + K] < O[i]) ++j;
~~~~~~^~~~~~~~~~
ho_t2.cpp:19:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (k + K < I.size() && I[k] < O[i + K - 1]) ++k;
~~~~~~^~~~~~~~~~