horses.cpp: In constructor 'segtree<MAXN>::update::update(ld)':
horses.cpp:26:26: warning: declaration of 'x' shadows a member of 'segtree<MAXN>::update' [-Wshadow]
26 | update(ld x = 0) : x(x){}
| ^
horses.cpp:24:12: note: shadowed declaration is here
24 | ld x;
| ^
horses.cpp: In constructor 'segtree<MAXN>::node::node(ld, int, int)':
horses.cpp:44:46: warning: declaration of 'r' shadows a member of 'segtree<MAXN>::node' [-Wshadow]
44 | node(ld x = 0, int l = 0, int r = 0) : x(x), l(l), r(r) {}
| ^
horses.cpp:41:16: note: shadowed declaration is here
41 | int l, r;
| ^
horses.cpp:44:46: warning: declaration of 'l' shadows a member of 'segtree<MAXN>::node' [-Wshadow]
44 | node(ld x = 0, int l = 0, int r = 0) : x(x), l(l), r(r) {}
| ^
horses.cpp:41:13: note: shadowed declaration is here
41 | int l, r;
| ^
horses.cpp:44:46: warning: declaration of 'x' shadows a member of 'segtree<MAXN>::node' [-Wshadow]
44 | node(ld x = 0, int l = 0, int r = 0) : x(x), l(l), r(r) {}
| ^
horses.cpp:40:12: note: shadowed declaration is here
40 | ld x;
| ^
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:150:21: warning: conversion from 'ld' {aka 'long double'} to 'std::vector<double>::value_type' {aka 'double'} may change value [-Wfloat-conversion]
150 | t.push_back(c);
| ^
horses.cpp:156:20: warning: conversion from 'long double' to 'int' may change value [-Wfloat-conversion]
156 | int sol = round(exp(drvo.get(1,n).x));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:167:20: warning: conversion from 'long double' to 'int' may change value [-Wfloat-conversion]
167 | int sol = round(exp(drvo.get(1,N).x));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:177:20: warning: conversion from 'long double' to 'int' may change value [-Wfloat-conversion]
177 | int sol = round(exp(drvo.get(1,N).x));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
horses.cpp: In function 'int man()':
horses.cpp:213:1: warning: no return statement in function returning non-void [-Wreturn-type]
213 | }
| ^
horses.cpp: In instantiation of 'segtree<MAXN>::node::node(ld, int, int) [with int MAXN = 1048576; ld = long double]':
horses.cpp:21:8: required from here
horses.cpp:44:9: warning: declaration of 'r' shadows a member of 'segtree<1048576>::node' [-Wshadow]
44 | node(ld x = 0, int l = 0, int r = 0) : x(x), l(l), r(r) {}
| ^~~~
horses.cpp:41:16: note: shadowed declaration is here
41 | int l, r;
| ^
horses.cpp:44:9: warning: declaration of 'l' shadows a member of 'segtree<1048576>::node' [-Wshadow]
44 | node(ld x = 0, int l = 0, int r = 0) : x(x), l(l), r(r) {}
| ^~~~
horses.cpp:41:13: note: shadowed declaration is here
41 | int l, r;
| ^
horses.cpp:44:9: warning: declaration of 'x' shadows a member of 'segtree<1048576>::node' [-Wshadow]
44 | node(ld x = 0, int l = 0, int r = 0) : x(x), l(l), r(r) {}
| ^~~~
horses.cpp:40:12: note: shadowed declaration is here
40 | ld x;
| ^
horses.cpp:44:66: warning: declaration of 'r' shadows a member of 'segtree<1048576>::node' [-Wshadow]
44 | node(ld x = 0, int l = 0, int r = 0) : x(x), l(l), r(r) {}
| ^
horses.cpp:41:16: note: shadowed declaration is here
41 | int l, r;
| ^
horses.cpp:44:66: warning: declaration of 'l' shadows a member of 'segtree<1048576>::node' [-Wshadow]
44 | node(ld x = 0, int l = 0, int r = 0) : x(x), l(l), r(r) {}
| ^
horses.cpp:41:13: note: shadowed declaration is here
41 | int l, r;
| ^
horses.cpp:44:66: warning: declaration of 'x' shadows a member of 'segtree<1048576>::node' [-Wshadow]
44 | node(ld x = 0, int l = 0, int r = 0) : x(x), l(l), r(r) {}
| ^
horses.cpp:40:12: note: shadowed declaration is here
40 | ld x;
| ^
horses.cpp:44:66: warning: declaration of 'r' shadows a member of 'segtree<1048576>::node' [-Wshadow]
44 | node(ld x = 0, int l = 0, int r = 0) : x(x), l(l), r(r) {}
| ^
horses.cpp:41:16: note: shadowed declaration is here
41 | int l, r;
| ^
horses.cpp:44:66: warning: declaration of 'l' shadows a member of 'segtree<1048576>::node' [-Wshadow]
44 | node(ld x = 0, int l = 0, int r = 0) : x(x), l(l), r(r) {}
| ^
horses.cpp:41:13: note: shadowed declaration is here
41 | int l, r;
| ^
horses.cpp:44:66: warning: declaration of 'x' shadows a member of 'segtree<1048576>::node' [-Wshadow]
44 | node(ld x = 0, int l = 0, int r = 0) : x(x), l(l), r(r) {}
| ^
horses.cpp:40:12: note: shadowed declaration is here
40 | ld x;
| ^
horses.cpp: In instantiation of 'segtree<MAXN>::update::update(ld) [with int MAXN = 1048576; ld = long double]':
horses.cpp:21:8: required from here
horses.cpp:26:9: warning: declaration of 'x' shadows a member of 'segtree<1048576>::update' [-Wshadow]
26 | update(ld x = 0) : x(x){}
| ^~~~~~
horses.cpp:24:12: note: shadowed declaration is here
24 | ld x;
| ^
horses.cpp:26:33: warning: declaration of 'x' shadows a member of 'segtree<1048576>::update' [-Wshadow]
26 | update(ld x = 0) : x(x){}
| ^
horses.cpp:24:12: note: shadowed declaration is here
24 | ld x;
| ^
horses.cpp:26:33: warning: declaration of 'x' shadows a member of 'segtree<1048576>::update' [-Wshadow]
26 | update(ld x = 0) : x(x){}
| ^
horses.cpp:24:12: note: shadowed declaration is here
24 | ld x;
| ^
horses.cpp: In instantiation of 'void segtree<MAXN>::init(vd) [with int MAXN = 1048576; vd = std::vector<double>]':
horses.cpp:154:16: required from here
horses.cpp:72:23: warning: conversion from 'std::vector<double>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
72 | int N = t.size();
| ~~~~~~^~