ho_t2.cpp: In function 'int32_t main()':
ho_t2.cpp:35:8: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | if (K > js.size()) {
| ~~^~~~~~~~~~~
ho_t2.cpp:40:20: warning: comparison of integer expressions of different signedness: 'long long int' and 'long long unsigned int' [-Wsign-compare]
40 | for (int i = 0; i <= js.size() - K; i++) {
| ~~^~~~~~~~~~~~~~~~
ho_t2.cpp:48:11: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
48 | if (off >= os.size() or os.size() - off < K) continue;
| ~~~~^~~~~~~~~~~~
ho_t2.cpp:48:43: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'long long int' [-Wsign-compare]
48 | if (off >= os.size() or os.size() - off < K) continue;
| ~~~~~~~~~~~~~~~~^~~
ho_t2.cpp:58:12: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
58 | if (off2 >= is.size() or is.size() - off2 < K) continue;
| ~~~~~^~~~~~~~~~~~
ho_t2.cpp:58:45: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'long long int' [-Wsign-compare]
58 | if (off2 >= is.size() or is.size() - off2 < K) continue;
| ~~~~~~~~~~~~~~~~~^~~
ho_t2.cpp:21:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
21 | freopen("input.txt", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
ho_t2.cpp:22:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
22 | freopen("output.txt", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~