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 = 4; ld = long double]':
horses.cpp:19:8: required from here
horses.cpp:44:3: warning: declaration of 'r' shadows a member of 'segtree<4>::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<4>::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<4>::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<4>::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<4>::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<4>::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<4>::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<4>::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<4>::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 = 4; ld = long double]':
horses.cpp:19:8: required from here
horses.cpp:23:3: warning: declaration of 'x' shadows a member of 'segtree<4>::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<4>::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<4>::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 = 4]':
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();
| ~~~~~~^~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:86:5: warning: array subscript 8 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
86 | a[i] += lazy[i];
| ~^
horses.cpp:86:5: warning: array subscript 8 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
horses.cpp:86:5: warning: array subscript 16 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
86 | a[i] += lazy[i];
| ~^
horses.cpp:86:5: warning: array subscript 16 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
horses.cpp:86:5: warning: array subscript 32 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
86 | a[i] += lazy[i];
| ~^
horses.cpp:86:5: warning: array subscript 32 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
horses.cpp:121:13: warning: array subscript 64 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
121 | a[pos] = a[2*pos]+a[2*pos+1];
| ~^
horses.cpp:121:22: warning: array subscript 65 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
121 | a[pos] = a[2*pos]+a[2*pos+1];
| ~^
horses.cpp:121:13: warning: array subscript 32 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
121 | a[pos] = a[2*pos]+a[2*pos+1];
| ~^
horses.cpp:121:22: warning: array subscript 33 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
121 | a[pos] = a[2*pos]+a[2*pos+1];
| ~^
horses.cpp:86:5: warning: array subscript 17 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
86 | a[i] += lazy[i];
| ~^
horses.cpp:86:5: warning: array subscript 17 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
horses.cpp:109:8: warning: array subscript 17 is above array bounds of 'segtree<4>::update [8]' [-Warray-bounds]
109 | lazy[pos] += v;
| ~~~~^
horses.cpp:109:8: warning: array subscript 17 is above array bounds of 'segtree<4>::update [8]' [-Warray-bounds]
horses.cpp:86:5: warning: array subscript 17 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
86 | a[i] += lazy[i];
| ~^
horses.cpp:86:5: warning: array subscript 17 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
horses.cpp:121:13: warning: array subscript 16 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
121 | a[pos] = a[2*pos]+a[2*pos+1];
| ~^
horses.cpp:121:22: warning: array subscript 17 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
121 | a[pos] = a[2*pos]+a[2*pos+1];
| ~^
horses.cpp:86:5: warning: array subscript 9 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
86 | a[i] += lazy[i];
| ~^
horses.cpp:86:5: warning: array subscript 9 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
horses.cpp:109:8: warning: array subscript 9 is above array bounds of 'segtree<4>::update [8]' [-Warray-bounds]
109 | lazy[pos] += v;
| ~~~~^
horses.cpp:109:8: warning: array subscript 9 is above array bounds of 'segtree<4>::update [8]' [-Warray-bounds]
horses.cpp:86:5: warning: array subscript 9 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
86 | a[i] += lazy[i];
| ~^
horses.cpp:86:5: warning: array subscript 9 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
horses.cpp:121:13: warning: array subscript 8 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
121 | a[pos] = a[2*pos]+a[2*pos+1];
| ~^
horses.cpp:121:22: warning: array subscript 9 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
121 | a[pos] = a[2*pos]+a[2*pos+1];
| ~^
horses.cpp:86:5: warning: array subscript 10 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
86 | a[i] += lazy[i];
| ~^
horses.cpp:86:5: warning: array subscript 10 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
horses.cpp:86:5: warning: array subscript 20 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
86 | a[i] += lazy[i];
| ~^
horses.cpp:86:5: warning: array subscript 20 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
horses.cpp:121:13: warning: array subscript 40 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
121 | a[pos] = a[2*pos]+a[2*pos+1];
| ~^
horses.cpp:121:22: warning: array subscript 41 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
121 | a[pos] = a[2*pos]+a[2*pos+1];
| ~^
horses.cpp:86:5: warning: array subscript 21 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
86 | a[i] += lazy[i];
| ~^
horses.cpp:86:5: warning: array subscript 21 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
horses.cpp:109:8: warning: array subscript 21 is above array bounds of 'segtree<4>::update [8]' [-Warray-bounds]
109 | lazy[pos] += v;
| ~~~~^
horses.cpp:109:8: warning: array subscript 21 is above array bounds of 'segtree<4>::update [8]' [-Warray-bounds]
horses.cpp:86:5: warning: array subscript 21 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
86 | a[i] += lazy[i];
| ~^
horses.cpp:86:5: warning: array subscript 21 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
horses.cpp:121:13: warning: array subscript 20 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
121 | a[pos] = a[2*pos]+a[2*pos+1];
| ~^
horses.cpp:121:22: warning: array subscript 21 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
121 | a[pos] = a[2*pos]+a[2*pos+1];
| ~^
horses.cpp:86:5: warning: array subscript 11 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
86 | a[i] += lazy[i];
| ~^
horses.cpp:86:5: warning: array subscript 11 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
horses.cpp:109:8: warning: array subscript 11 is above array bounds of 'segtree<4>::update [8]' [-Warray-bounds]
109 | lazy[pos] += v;
| ~~~~^
horses.cpp:109:8: warning: array subscript 11 is above array bounds of 'segtree<4>::update [8]' [-Warray-bounds]
horses.cpp:86:5: warning: array subscript 11 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
86 | a[i] += lazy[i];
| ~^
horses.cpp:86:5: warning: array subscript 11 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
horses.cpp:121:13: warning: array subscript 10 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
121 | a[pos] = a[2*pos]+a[2*pos+1];
| ~^
horses.cpp:121:22: warning: array subscript 11 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
121 | a[pos] = a[2*pos]+a[2*pos+1];
| ~^
horses.cpp:86:5: warning: array subscript 12 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
86 | a[i] += lazy[i];
| ~^
horses.cpp:86:5: warning: array subscript 12 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
horses.cpp:121:13: warning: array subscript 24 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
121 | a[pos] = a[2*pos]+a[2*pos+1];
| ~^
horses.cpp:121:22: warning: array subscript 25 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
121 | a[pos] = a[2*pos]+a[2*pos+1];
| ~^
horses.cpp:86:5: warning: array subscript 13 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
86 | a[i] += lazy[i];
| ~^
horses.cpp:86:5: warning: array subscript 13 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
horses.cpp:109:8: warning: array subscript 13 is above array bounds of 'segtree<4>::update [8]' [-Warray-bounds]
109 | lazy[pos] += v;
| ~~~~^
horses.cpp:109:8: warning: array subscript 13 is above array bounds of 'segtree<4>::update [8]' [-Warray-bounds]
horses.cpp:86:5: warning: array subscript 13 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
86 | a[i] += lazy[i];
| ~^
horses.cpp:86:5: warning: array subscript 13 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
horses.cpp:121:13: warning: array subscript 12 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
121 | a[pos] = a[2*pos]+a[2*pos+1];
| ~^
horses.cpp:121:22: warning: array subscript 13 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
121 | a[pos] = a[2*pos]+a[2*pos+1];
| ~^
horses.cpp:86:5: warning: array subscript 14 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
86 | a[i] += lazy[i];
| ~^
horses.cpp:86:5: warning: array subscript 14 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
horses.cpp:86:5: warning: array subscript 28 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
86 | a[i] += lazy[i];
| ~^
horses.cpp:86:5: warning: array subscript 28 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
horses.cpp:121:13: warning: array subscript 56 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
121 | a[pos] = a[2*pos]+a[2*pos+1];
| ~^
horses.cpp:121:22: warning: array subscript 57 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
121 | a[pos] = a[2*pos]+a[2*pos+1];
| ~^
horses.cpp:86:5: warning: array subscript 29 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
86 | a[i] += lazy[i];
| ~^
horses.cpp:86:5: warning: array subscript 29 is above array bounds of 'segtree<4>::node [8]' [-Warray-bounds]
horses.cpp:109:8: warning: array subscript 29 is above array bounds of 'segtree<4>::update [8]' [-Warray-bounds]
109 | lazy[pos] += v;
| ~~~~^
/var/local/lib/isolate/490/box/pr