horses.cpp: In function 'll cef(ll, ll)':
horses.cpp:25:12: warning: conversion from 'll' {aka 'long long int'} to 'double' may change value [-Wconversion]
25 | if (ll(a) * ll(b) >= 1e9)
| ~~~~~~^~~~~~~
horses.cpp: In constructor 'seg::seg(ll, ll)':
horses.cpp:35:15: warning: declaration of 'r' shadows a member of 'seg' [-Wshadow]
35 | seg(ll l, ll r): l(l), r(r), mid((l + r) / 2) {
| ~~~^
horses.cpp:33:8: note: shadowed declaration is here
33 | ll l, r, mid, val=1;
| ^
horses.cpp:35:9: warning: declaration of 'l' shadows a member of 'seg' [-Wshadow]
35 | seg(ll l, ll r): l(l), r(r), mid((l + r) / 2) {
| ~~~^
horses.cpp:33:5: note: shadowed declaration is here
33 | ll l, r, mid, val=1;
| ^
horses.cpp: In constructor 'seg::seg(ll, ll)':
horses.cpp:35:15: warning: declaration of 'r' shadows a member of 'seg' [-Wshadow]
35 | seg(ll l, ll r): l(l), r(r), mid((l + r) / 2) {
| ~~~^
horses.cpp:33:8: note: shadowed declaration is here
33 | ll l, r, mid, val=1;
| ^
horses.cpp:35:9: warning: declaration of 'l' shadows a member of 'seg' [-Wshadow]
35 | seg(ll l, ll r): l(l), r(r), mid((l + r) / 2) {
| ~~~^
horses.cpp:33:5: note: shadowed declaration is here
33 | ll l, r, mid, val=1;
| ^
horses.cpp: In constructor 'seg::seg(ll, ll)':
horses.cpp:35:15: warning: declaration of 'r' shadows a member of 'seg' [-Wshadow]
35 | seg(ll l, ll r): l(l), r(r), mid((l + r) / 2) {
| ~~~^
horses.cpp:33:8: note: shadowed declaration is here
33 | ll l, r, mid, val=1;
| ^
horses.cpp:35:9: warning: declaration of 'l' shadows a member of 'seg' [-Wshadow]
35 | seg(ll l, ll r): l(l), r(r), mid((l + r) / 2) {
| ~~~^
horses.cpp:33:5: note: shadowed declaration is here
33 | ll l, r, mid, val=1;
| ^
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:79:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
79 | return ans.second;
| ~~~~^~~~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:95:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
95 | return ans.second;
| ~~~~^~~~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:111:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
111 | return ans.second;
| ~~~~^~~~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:54:33: warning: 'segx.seg::rp' may be used uninitialized in this function [-Wmaybe-uninitialized]
54 | if (a <= l and r <= b) return val;
| ^~~
horses.cpp:86:6: note: 'segx.seg::rp' was declared here
86 | seg segx(0, n - 1);
| ^~~~
horses.cpp:54:33: warning: 'segx.seg::lp' may be used uninitialized in this function [-Wmaybe-uninitialized]
54 | if (a <= l and r <= b) return val;
| ^~~
horses.cpp:86:6: note: 'segx.seg::lp' was declared here
86 | seg segx(0, n - 1);
| ^~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:54:33: warning: 'segx.seg::rp' may be used uninitialized in this function [-Wmaybe-uninitialized]
54 | if (a <= l and r <= b) return val;
| ^~~
horses.cpp:102:6: note: 'segx.seg::rp' was declared here
102 | seg segx(0, n - 1);
| ^~~~
horses.cpp:54:33: warning: 'segx.seg::lp' may be used uninitialized in this function [-Wmaybe-uninitialized]
54 | if (a <= l and r <= b) return val;
| ^~~
horses.cpp:102:6: note: 'segx.seg::lp' was declared here
102 | seg segx(0, n - 1);
| ^~~~
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:54:33: warning: 'segx.seg::rp' may be used uninitialized in this function [-Wmaybe-uninitialized]
54 | if (a <= l and r <= b) return val;
| ^~~
horses.cpp:70:6: note: 'segx.seg::rp' was declared here
70 | seg segx(0, n - 1);
| ^~~~
horses.cpp:54:33: warning: 'segx.seg::lp' may be used uninitialized in this function [-Wmaybe-uninitialized]
54 | if (a <= l and r <= b) return val;
| ^~~
horses.cpp:70:6: note: 'segx.seg::lp' was declared here
70 | seg segx(0, n - 1);
| ^~~~