horses.cpp: In constructor 'segtree<MAXN>::update::update(double)':
horses.cpp:26:30: warning: declaration of 'x' shadows a member of 'segtree<MAXN>::update' [-Wshadow]
26 | update(double x = 0) : x(x){}
| ^
horses.cpp:24:16: note: shadowed declaration is here
24 | double x;
| ^
horses.cpp: In constructor 'segtree<MAXN>::node::node(double, int, int)':
horses.cpp:44:50: warning: declaration of 'r' shadows a member of 'segtree<MAXN>::node' [-Wshadow]
44 | node(double 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:50: warning: declaration of 'l' shadows a member of 'segtree<MAXN>::node' [-Wshadow]
44 | node(double 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:50: warning: declaration of 'x' shadows a member of 'segtree<MAXN>::node' [-Wshadow]
44 | node(double x = 0, int l = 0, int r = 0) : x(x), l(l), r(r) {}
| ^
horses.cpp:40:16: note: shadowed declaration is here
40 | double 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:17: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion]
156 | return round(exp(drvo.get(1,n).x));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:165:24: warning: conversion from 'ld' {aka 'long double'} to 'double' may change value [-Wfloat-conversion]
165 | drvo.add(pos+1, N, c);
| ^
horses.cpp:166:17: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion]
166 | return round(exp(drvo.get(1,N).x));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:174:26: warning: conversion from 'ld' {aka 'long double'} to 'double' may change value [-Wfloat-conversion]
174 | drvo.add(pos+1,pos+1,c);
| ^
horses.cpp:175:17: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion]
175 | return round(exp(drvo.get(1,N).x));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
horses.cpp: In function 'int man()':
horses.cpp:210:1: warning: no return statement in function returning non-void [-Wreturn-type]
210 | }
| ^
horses.cpp: In instantiation of 'segtree<MAXN>::node::node(double, int, int) [with int MAXN = 1048576]':
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(double 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(double 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(double x = 0, int l = 0, int r = 0) : x(x), l(l), r(r) {}
| ^~~~
horses.cpp:40:16: note: shadowed declaration is here
40 | double x;
| ^
horses.cpp:44:70: warning: declaration of 'r' shadows a member of 'segtree<1048576>::node' [-Wshadow]
44 | node(double 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:70: warning: declaration of 'l' shadows a member of 'segtree<1048576>::node' [-Wshadow]
44 | node(double 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:70: warning: declaration of 'x' shadows a member of 'segtree<1048576>::node' [-Wshadow]
44 | node(double x = 0, int l = 0, int r = 0) : x(x), l(l), r(r) {}
| ^
horses.cpp:40:16: note: shadowed declaration is here
40 | double x;
| ^
horses.cpp:44:70: warning: declaration of 'r' shadows a member of 'segtree<1048576>::node' [-Wshadow]
44 | node(double 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:70: warning: declaration of 'l' shadows a member of 'segtree<1048576>::node' [-Wshadow]
44 | node(double 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:70: warning: declaration of 'x' shadows a member of 'segtree<1048576>::node' [-Wshadow]
44 | node(double x = 0, int l = 0, int r = 0) : x(x), l(l), r(r) {}
| ^
horses.cpp:40:16: note: shadowed declaration is here
40 | double x;
| ^
horses.cpp: In instantiation of 'segtree<MAXN>::update::update(double) [with int MAXN = 1048576]':
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(double x = 0) : x(x){}
| ^~~~~~
horses.cpp:24:16: note: shadowed declaration is here
24 | double x;
| ^
horses.cpp:26:37: warning: declaration of 'x' shadows a member of 'segtree<1048576>::update' [-Wshadow]
26 | update(double x = 0) : x(x){}
| ^
horses.cpp:24:16: note: shadowed declaration is here
24 | double x;
| ^
horses.cpp:26:37: warning: declaration of 'x' shadows a member of 'segtree<1048576>::update' [-Wshadow]
26 | update(double x = 0) : x(x){}
| ^
horses.cpp:24:16: note: shadowed declaration is here
24 | double 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();
| ~~~~~~^~