horses.cpp: In constructor 'seg::seg(int, int)':
horses.cpp:34:17: warning: declaration of 'r' shadows a member of 'seg' [-Wshadow]
34 | seg(int l, int r): l(l), r(r), mid((l + r) / 2) {
| ~~~~^
horses.cpp:32:9: note: shadowed declaration is here
32 | int l, r, mid, val=1;
| ^
horses.cpp:34:10: warning: declaration of 'l' shadows a member of 'seg' [-Wshadow]
34 | seg(int l, int r): l(l), r(r), mid((l + r) / 2) {
| ~~~~^
horses.cpp:32:6: note: shadowed declaration is here
32 | int l, r, mid, val=1;
| ^
horses.cpp: In constructor 'seg::seg(int, int)':
horses.cpp:34:17: warning: declaration of 'r' shadows a member of 'seg' [-Wshadow]
34 | seg(int l, int r): l(l), r(r), mid((l + r) / 2) {
| ~~~~^
horses.cpp:32:9: note: shadowed declaration is here
32 | int l, r, mid, val=1;
| ^
horses.cpp:34:10: warning: declaration of 'l' shadows a member of 'seg' [-Wshadow]
34 | seg(int l, int r): l(l), r(r), mid((l + r) / 2) {
| ~~~~^
horses.cpp:32:6: note: shadowed declaration is here
32 | int l, r, mid, val=1;
| ^
horses.cpp: In constructor 'seg::seg(int, int)':
horses.cpp:34:17: warning: declaration of 'r' shadows a member of 'seg' [-Wshadow]
34 | seg(int l, int r): l(l), r(r), mid((l + r) / 2) {
| ~~~~^
horses.cpp:32:9: note: shadowed declaration is here
32 | int l, r, mid, val=1;
| ^
horses.cpp:34:10: warning: declaration of 'l' shadows a member of 'seg' [-Wshadow]
34 | seg(int l, int r): l(l), r(r), mid((l + r) / 2) {
| ~~~~^
horses.cpp:32:6: note: shadowed declaration is here
32 | int l, r, mid, val=1;
| ^
horses.cpp: In member function 'void seg::upd(int, int)':
horses.cpp:43:21: warning: declaration of 'x' shadows a global declaration [-Wshadow]
43 | void upd(int i,int x) {
| ~~~~^
horses.cpp:20:4: note: shadowed declaration is here
20 | vi x, y;
| ^
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:69:12: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
69 | segx.upd(i, x[i]);
| ^
horses.cpp:72:39: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
72 | int t = cef(segx.que(ans.first + 1, i), y[i]);
| ^
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:85:12: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
85 | segx.upd(i, x[i]);
| ^
horses.cpp:88:39: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
88 | int t = cef(segx.que(ans.first + 1, i), y[i]);
| ^
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:101:12: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
101 | segx.upd(i, x[i]);
| ^
horses.cpp:104:39: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
104 | int t = cef(segx.que(ans.first + 1, i), y[i]);
| ^
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:53:18: warning: 'segx.seg::rp' may be used uninitialized in this function [-Wmaybe-uninitialized]
53 | if (a <= l and r <= b) return val;
| ^
horses.cpp:83:6: note: 'segx.seg::rp' was declared here
83 | seg segx(0, n - 1);
| ^~~~
horses.cpp:53:33: warning: 'segx.seg::lp' may be used uninitialized in this function [-Wmaybe-uninitialized]
53 | if (a <= l and r <= b) return val;
| ^~~
horses.cpp:83:6: note: 'segx.seg::lp' was declared here
83 | seg segx(0, n - 1);
| ^~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:53:18: warning: 'segx.seg::rp' may be used uninitialized in this function [-Wmaybe-uninitialized]
53 | if (a <= l and r <= b) return val;
| ^
horses.cpp:99:6: note: 'segx.seg::rp' was declared here
99 | seg segx(0, n - 1);
| ^~~~
horses.cpp:53:33: warning: 'segx.seg::lp' may be used uninitialized in this function [-Wmaybe-uninitialized]
53 | if (a <= l and r <= b) return val;
| ^~~
horses.cpp:99:6: note: 'segx.seg::lp' was declared here
99 | seg segx(0, n - 1);
| ^~~~
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:53:18: warning: 'segx.seg::rp' may be used uninitialized in this function [-Wmaybe-uninitialized]
53 | if (a <= l and r <= b) return val;
| ^
horses.cpp:67:6: note: 'segx.seg::rp' was declared here
67 | seg segx(0, n - 1);
| ^~~~
horses.cpp:53:33: warning: 'segx.seg::lp' may be used uninitialized in this function [-Wmaybe-uninitialized]
53 | if (a <= l and r <= b) return val;
| ^~~
horses.cpp:67:6: note: 'segx.seg::lp' was declared here
67 | seg segx(0, n - 1);
| ^~~~