horses.cpp: In constructor 'segtree<maxn>::update::update(ld)':
horses.cpp:23:20: warning: declaration of 'x' shadows a member of 'segtree<maxn>::update' [-Wshadow]
23 | update(ld x = 0) : x(x) {}
| ^
horses.cpp:21:6: note: shadowed declaration is here
21 | ld x;
| ^
horses.cpp: In constructor 'segtree<maxn>::node::node(ld, int, int)':
horses.cpp:44:40: 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:42:10: note: shadowed declaration is here
42 | int l, r;
| ^
horses.cpp:44:40: 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:42:7: note: shadowed declaration is here
42 | int l, r;
| ^
horses.cpp:44:40: 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:41:6: note: shadowed declaration is here
41 | ld x;
| ^
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:151:14: warning: conversion from 'long double' to 'int' may change value [-Wfloat-conversion]
151 | return round(exp(drvo.get(1, n).x));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:159:14: warning: conversion from 'long double' to 'int' may change value [-Wfloat-conversion]
159 | return round(exp(drvo.get(1,n).x));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:167:14: warning: conversion from 'long double' to 'int' may change value [-Wfloat-conversion]
167 | return round(exp(drvo.get(1,n).x));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
horses.cpp: In function 'int man()':
horses.cpp:202:1: warning: no return statement in function returning non-void [-Wreturn-type]
202 | }
| ^
horses.cpp: In instantiation of 'segtree<maxn>::node::node(ld, int, int) [with int maxn = 131072; ld = long double]':
horses.cpp:19:8: required from here
horses.cpp:44:3: warning: declaration of 'r' shadows a member of 'segtree<131072>::node' [-Wshadow]
44 | node(ld x = 0, int l = 0, int r = 0) : x(x), l(l), r(r) {}
| ^~~~
horses.cpp:42:10: note: shadowed declaration is here
42 | int l, r;
| ^
horses.cpp:44:3: warning: declaration of 'l' shadows a member of 'segtree<131072>::node' [-Wshadow]
44 | node(ld x = 0, int l = 0, int r = 0) : x(x), l(l), r(r) {}
| ^~~~
horses.cpp:42:7: note: shadowed declaration is here
42 | int l, r;
| ^
horses.cpp:44:3: warning: declaration of 'x' shadows a member of 'segtree<131072>::node' [-Wshadow]
44 | node(ld x = 0, int l = 0, int r = 0) : x(x), l(l), r(r) {}
| ^~~~
horses.cpp:41:6: note: shadowed declaration is here
41 | ld x;
| ^
horses.cpp:44:60: warning: declaration of 'r' shadows a member of 'segtree<131072>::node' [-Wshadow]
44 | node(ld x = 0, int l = 0, int r = 0) : x(x), l(l), r(r) {}
| ^
horses.cpp:42:10: note: shadowed declaration is here
42 | int l, r;
| ^
horses.cpp:44:60: warning: declaration of 'l' shadows a member of 'segtree<131072>::node' [-Wshadow]
44 | node(ld x = 0, int l = 0, int r = 0) : x(x), l(l), r(r) {}
| ^
horses.cpp:42:7: note: shadowed declaration is here
42 | int l, r;
| ^
horses.cpp:44:60: warning: declaration of 'x' shadows a member of 'segtree<131072>::node' [-Wshadow]
44 | node(ld x = 0, int l = 0, int r = 0) : x(x), l(l), r(r) {}
| ^
horses.cpp:41:6: note: shadowed declaration is here
41 | ld x;
| ^
horses.cpp:44:60: warning: declaration of 'r' shadows a member of 'segtree<131072>::node' [-Wshadow]
44 | node(ld x = 0, int l = 0, int r = 0) : x(x), l(l), r(r) {}
| ^
horses.cpp:42:10: note: shadowed declaration is here
42 | int l, r;
| ^
horses.cpp:44:60: warning: declaration of 'l' shadows a member of 'segtree<131072>::node' [-Wshadow]
44 | node(ld x = 0, int l = 0, int r = 0) : x(x), l(l), r(r) {}
| ^
horses.cpp:42:7: note: shadowed declaration is here
42 | int l, r;
| ^
horses.cpp:44:60: warning: declaration of 'x' shadows a member of 'segtree<131072>::node' [-Wshadow]
44 | node(ld x = 0, int l = 0, int r = 0) : x(x), l(l), r(r) {}
| ^
horses.cpp:41:6: note: shadowed declaration is here
41 | ld x;
| ^
horses.cpp: In instantiation of 'segtree<maxn>::update::update(ld) [with int maxn = 131072; ld = long double]':
horses.cpp:19:8: required from here
horses.cpp:23:3: warning: declaration of 'x' shadows a member of 'segtree<131072>::update' [-Wshadow]
23 | update(ld x = 0) : x(x) {}
| ^~~~~~
horses.cpp:21:6: note: shadowed declaration is here
21 | ld x;
| ^
horses.cpp:23:28: warning: declaration of 'x' shadows a member of 'segtree<131072>::update' [-Wshadow]
23 | update(ld x = 0) : x(x) {}
| ^
horses.cpp:21:6: note: shadowed declaration is here
21 | ld x;
| ^
horses.cpp:23:28: warning: declaration of 'x' shadows a member of 'segtree<131072>::update' [-Wshadow]
23 | update(ld x = 0) : x(x) {}
| ^
horses.cpp:21:6: note: shadowed declaration is here
21 | ld x;
| ^
horses.cpp: In instantiation of 'void segtree<maxn>::init(std::vector<long double>) [with int maxn = 131072]':
horses.cpp:149:13: required from here
horses.cpp:72:17: warning: conversion from 'std::vector<long double>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
72 | int n = t.size();
| ~~~~~~^~