horses.cpp: In constructor 'NodeInfo::NodeInfo(int, double, int)':
horses.cpp:25:5: warning: declaration of 'val' shadows a member of 'NodeInfo' [-Wshadow]
25 | {
| ^
horses.cpp:20:12: note: shadowed declaration is here
20 | double val, lazy;
| ^~~
horses.cpp:25:5: warning: declaration of 'x' shadows a global declaration [-Wshadow]
25 | {
| ^
horses.cpp:15:5: note: shadowed declaration is here
15 | int x[MAXN], y[MAXN];
| ^
horses.cpp: In constructor 'NodeInfo::NodeInfo(int, double, int)':
horses.cpp:30:5: warning: declaration of 'val' shadows a member of 'NodeInfo' [-Wshadow]
30 | }
| ^
horses.cpp:20:12: note: shadowed declaration is here
20 | double val, lazy;
| ^~~
horses.cpp:30:5: warning: declaration of 'x' shadows a global declaration [-Wshadow]
30 | }
| ^
horses.cpp:15:5: note: shadowed declaration is here
15 | int x[MAXN], y[MAXN];
| ^
horses.cpp: In constructor 'NodeInfo::NodeInfo(int, double, int)':
horses.cpp:30:5: warning: declaration of 'val' shadows a member of 'NodeInfo' [-Wshadow]
30 | }
| ^
horses.cpp:20:12: note: shadowed declaration is here
20 | double val, lazy;
| ^~~
horses.cpp:30:5: warning: declaration of 'x' shadows a global declaration [-Wshadow]
30 | }
| ^
horses.cpp:15:5: note: shadowed declaration is here
15 | int x[MAXN], y[MAXN];
| ^
horses.cpp: In constructor 'SegmentTree::SegmentTree(int, int)':
horses.cpp:55:5: warning: declaration of 'r' shadows a member of 'SegmentTree' [-Wshadow]
55 | {
| ^
horses.cpp:50:12: note: shadowed declaration is here
50 | int l, r;
| ^
horses.cpp:55:5: warning: declaration of 'l' shadows a member of 'SegmentTree' [-Wshadow]
55 | {
| ^
horses.cpp:50:9: note: shadowed declaration is here
50 | int l, r;
| ^
horses.cpp: In constructor 'SegmentTree::SegmentTree(int, int)':
horses.cpp:61:5: warning: declaration of 'r' shadows a member of 'SegmentTree' [-Wshadow]
61 | }
| ^
horses.cpp:50:12: note: shadowed declaration is here
50 | int l, r;
| ^
horses.cpp:61:5: warning: declaration of 'l' shadows a member of 'SegmentTree' [-Wshadow]
61 | }
| ^
horses.cpp:50:9: note: shadowed declaration is here
50 | int l, r;
| ^
horses.cpp: In constructor 'SegmentTree::SegmentTree(int, int)':
horses.cpp:61:5: warning: declaration of 'r' shadows a member of 'SegmentTree' [-Wshadow]
61 | }
| ^
horses.cpp:50:12: note: shadowed declaration is here
50 | int l, r;
| ^
horses.cpp:61:5: warning: declaration of 'l' shadows a member of 'SegmentTree' [-Wshadow]
61 | }
| ^
horses.cpp:50:9: note: shadowed declaration is here
50 | int l, r;
| ^
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:175:19: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
175 | return evalInd(T->info.bestInd);
| ~~~~~~~^~~~~~~~~~~~~~~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:186:19: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
186 | return evalInd(T->info.bestInd);
| ~~~~~~~^~~~~~~~~~~~~~~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:199:19: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
199 | return evalInd(T->info.bestInd);
| ~~~~~~~^~~~~~~~~~~~~~~~~