ho_t2.cpp: In function 'int main()':
ho_t2.cpp:8:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < s.size(); i++) {
~~^~~~~~~~~~
ho_t2.cpp:14:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = k-1; i < J.size(); i++) {
~~^~~~~~~~~~
ho_t2.cpp:17:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (lasto >= O.size()) break;
~~~~~~^~~~~~~~~~~
ho_t2.cpp:20:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (lasti >= I.size()) break;
~~~~~~^~~~~~~~~~~
ho_t2.cpp:7:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int n, k; scanf("%d %d", &n, &k); cin >> s;
~~~~~^~~~~~~~~~~~~~~~~