ho_t2.cpp: In function 'int main()':
ho_t2.cpp:27:29: warning: array subscript 202021 is outside array bounds of 'long long int [202020]' [-Warray-bounds]
27 | int jp = lower_bound(js+np, js+N+1, js[np]+k) - js;
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
ho_t2.cpp:14:5: note: while referencing 'js'
14 | int js[N], os[N], is[N];
| ^~
ho_t2.cpp:29:29: warning: array subscript 202021 is outside array bounds of 'long long int [202020]' [-Warray-bounds]
29 | int op = lower_bound(os+jp, os+N+1, os[jp]+k) - os;
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
ho_t2.cpp:14:12: note: while referencing 'os'
14 | int js[N], os[N], is[N];
| ^~
ho_t2.cpp:31:29: warning: array subscript 202021 is outside array bounds of 'long long int [202020]' [-Warray-bounds]
31 | int ip = lower_bound(is+op, is+N+1, is[op]+k) - is;
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
ho_t2.cpp:14:19: note: while referencing 'is'
14 | int js[N], os[N], is[N];
| ^~