horses.cpp: In constructor 'NodeInfo::NodeInfo(int, long double, int)':
horses.cpp:27:5: warning: declaration of 'val' shadows a member of 'NodeInfo' [-Wshadow]
27 | {
| ^
horses.cpp:22:12: note: shadowed declaration is here
22 | double val, lazy;
| ^~~
horses.cpp:27:5: warning: declaration of 'x' shadows a global declaration [-Wshadow]
27 | {
| ^
horses.cpp:17:5: note: shadowed declaration is here
17 | int x[MAXN], y[MAXN];
| ^
horses.cpp: In constructor 'NodeInfo::NodeInfo(int, long double, int)':
horses.cpp:32:5: warning: declaration of 'val' shadows a member of 'NodeInfo' [-Wshadow]
32 | }
| ^
horses.cpp:22:12: note: shadowed declaration is here
22 | double val, lazy;
| ^~~
horses.cpp:32:5: warning: declaration of 'x' shadows a global declaration [-Wshadow]
32 | }
| ^
horses.cpp:17:5: note: shadowed declaration is here
17 | int x[MAXN], y[MAXN];
| ^
horses.cpp: In constructor 'NodeInfo::NodeInfo(int, long double, int)':
horses.cpp:32:5: warning: declaration of 'val' shadows a member of 'NodeInfo' [-Wshadow]
32 | }
| ^
horses.cpp:22:12: note: shadowed declaration is here
22 | double val, lazy;
| ^~~
horses.cpp:32:5: warning: declaration of 'x' shadows a global declaration [-Wshadow]
32 | }
| ^
horses.cpp:17:5: note: shadowed declaration is here
17 | int x[MAXN], y[MAXN];
| ^
horses.cpp: In constructor 'SegmentTree::SegmentTree(int, int)':
horses.cpp:57:5: warning: declaration of 'r' shadows a member of 'SegmentTree' [-Wshadow]
57 | {
| ^
horses.cpp:52:12: note: shadowed declaration is here
52 | int l, r;
| ^
horses.cpp:57:5: warning: declaration of 'l' shadows a member of 'SegmentTree' [-Wshadow]
57 | {
| ^
horses.cpp:52:9: note: shadowed declaration is here
52 | int l, r;
| ^
horses.cpp: In constructor 'SegmentTree::SegmentTree(int, int)':
horses.cpp:63:5: warning: declaration of 'r' shadows a member of 'SegmentTree' [-Wshadow]
63 | }
| ^
horses.cpp:52:12: note: shadowed declaration is here
52 | int l, r;
| ^
horses.cpp:63:5: warning: declaration of 'l' shadows a member of 'SegmentTree' [-Wshadow]
63 | }
| ^
horses.cpp:52:9: note: shadowed declaration is here
52 | int l, r;
| ^
horses.cpp: In constructor 'SegmentTree::SegmentTree(int, int)':
horses.cpp:63:5: warning: declaration of 'r' shadows a member of 'SegmentTree' [-Wshadow]
63 | }
| ^
horses.cpp:52:12: note: shadowed declaration is here
52 | int l, r;
| ^
horses.cpp:63:5: warning: declaration of 'l' shadows a member of 'SegmentTree' [-Wshadow]
63 | }
| ^
horses.cpp:52:9: note: shadowed declaration is here
52 | int l, r;
| ^
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:177:19: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
177 | return evalInd(T->info.bestInd);
| ~~~~~~~^~~~~~~~~~~~~~~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:188:19: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
188 | return evalInd(T->info.bestInd);
| ~~~~~~~^~~~~~~~~~~~~~~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:201:19: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
201 | return evalInd(T->info.bestInd);
| ~~~~~~~^~~~~~~~~~~~~~~~~