horses.cpp: In function 'll cef(ll, ll)':
horses.cpp:25:15: 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:18: 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:11: note: shadowed declaration is here
33 | ll l, r, mid, val = 1, vm = 1;
| ^
horses.cpp:35:12: 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:8: note: shadowed declaration is here
33 | ll l, r, mid, val = 1, vm = 1;
| ^
horses.cpp: In constructor 'seg::seg(ll, ll)':
horses.cpp:35:18: 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:11: note: shadowed declaration is here
33 | ll l, r, mid, val = 1, vm = 1;
| ^
horses.cpp:35:12: 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:8: note: shadowed declaration is here
33 | ll l, r, mid, val = 1, vm = 1;
| ^
horses.cpp: In constructor 'seg::seg(ll, ll)':
horses.cpp:35:18: 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:11: note: shadowed declaration is here
33 | ll l, r, mid, val = 1, vm = 1;
| ^
horses.cpp:35:12: 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:8: note: shadowed declaration is here
33 | ll l, r, mid, val = 1, vm = 1;
| ^
horses.cpp: In constructor 'smax::smax(int, int)':
horses.cpp:76:21: warning: declaration of 'r' shadows a member of 'smax' [-Wshadow]
76 | smax(int l, int r) : l(l), r(r), mid((l + r) / 2) {
| ~~~~^
horses.cpp:74:12: note: shadowed declaration is here
74 | int l, r, mid;
| ^
horses.cpp:76:14: warning: declaration of 'l' shadows a member of 'smax' [-Wshadow]
76 | smax(int l, int r) : l(l), r(r), mid((l + r) / 2) {
| ~~~~^
horses.cpp:74:9: note: shadowed declaration is here
74 | int l, r, mid;
| ^
horses.cpp: In constructor 'smax::smax(int, int)':
horses.cpp:76:21: warning: declaration of 'r' shadows a member of 'smax' [-Wshadow]
76 | smax(int l, int r) : l(l), r(r), mid((l + r) / 2) {
| ~~~~^
horses.cpp:74:12: note: shadowed declaration is here
74 | int l, r, mid;
| ^
horses.cpp:76:14: warning: declaration of 'l' shadows a member of 'smax' [-Wshadow]
76 | smax(int l, int r) : l(l), r(r), mid((l + r) / 2) {
| ~~~~^
horses.cpp:74:9: note: shadowed declaration is here
74 | int l, r, mid;
| ^
horses.cpp: In constructor 'smax::smax(int, int)':
horses.cpp:76:21: warning: declaration of 'r' shadows a member of 'smax' [-Wshadow]
76 | smax(int l, int r) : l(l), r(r), mid((l + r) / 2) {
| ~~~~^
horses.cpp:74:12: note: shadowed declaration is here
74 | int l, r, mid;
| ^
horses.cpp:76:14: warning: declaration of 'l' shadows a member of 'smax' [-Wshadow]
76 | smax(int l, int r) : l(l), r(r), mid((l + r) / 2) {
| ~~~~^
horses.cpp:74:9: note: shadowed declaration is here
74 | int l, r, mid;
| ^
horses.cpp: In function 'std::pair<long long int, long long int> solve()':
horses.cpp:120:28: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
120 | for (int j = wx.size() - 1;j>=0;j--) {
| ~~~~~~~~~~^~~
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:148:19: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
148 | segy->upd(i, y[i]);
| ^
horses.cpp:150:26: warning: conversion from 'll' {aka 'long long int'} to 'std::vector<int>::value_type' {aka 'int'} may change value [-Wconversion]
150 | wx.push_back(i);
| ^
horses.cpp:161:16: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
161 | return ans.second;
| ~~~~^~~~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:194:16: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
194 | return ans.second;
| ~~~~^~~~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:201:16: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
201 | return ans.second;
| ~~~~^~~~~~