horses.cpp: In constructor 'Node::Node(int, int)':
horses.cpp:22:18: warning: declaration of 'r' shadows a member of 'Node' [-Wshadow]
22 | Node(int l, int r) : l(l), r(r){
| ~~~~^
horses.cpp:19:9: note: shadowed declaration is here
19 | int l, r;
| ^
horses.cpp:22:11: warning: declaration of 'l' shadows a member of 'Node' [-Wshadow]
22 | Node(int l, int r) : l(l), r(r){
| ~~~~^
horses.cpp:19:6: note: shadowed declaration is here
19 | int l, r;
| ^
horses.cpp: In constructor 'Node::Node(int, int)':
horses.cpp:22:18: warning: declaration of 'r' shadows a member of 'Node' [-Wshadow]
22 | Node(int l, int r) : l(l), r(r){
| ~~~~^
horses.cpp:19:9: note: shadowed declaration is here
19 | int l, r;
| ^
horses.cpp:22:11: warning: declaration of 'l' shadows a member of 'Node' [-Wshadow]
22 | Node(int l, int r) : l(l), r(r){
| ~~~~^
horses.cpp:19:6: note: shadowed declaration is here
19 | int l, r;
| ^
horses.cpp: In constructor 'Node::Node(int, int)':
horses.cpp:22:18: warning: declaration of 'r' shadows a member of 'Node' [-Wshadow]
22 | Node(int l, int r) : l(l), r(r){
| ~~~~^
horses.cpp:19:9: note: shadowed declaration is here
19 | int l, r;
| ^
horses.cpp:22:11: warning: declaration of 'l' shadows a member of 'Node' [-Wshadow]
22 | Node(int l, int r) : l(l), r(r){
| ~~~~^
horses.cpp:19:6: note: shadowed declaration is here
19 | int l, r;
| ^
horses.cpp: In function 'long long int solve(long double)':
horses.cpp:78:14: warning: conversion from 'long double' to 'long long int' may change value [-Wfloat-conversion]
78 | return round(binPow(currentVal));
| ~~~~~^~~~~~~~~~~~~~~~~~~~
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:88:16: warning: conversion from 'std::vector<long long int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
88 | int n = x.size();
| ~~~~~~^~
horses.cpp:96:14: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
96 | return solve(st->query());
| ~~~~~^~~~~~~~~~~~~
horses.cpp:86:5: warning: unused variable 'current' [-Wunused-variable]
86 | ll current = 1;
| ^~~~~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:106:24: warning: conversion from 'std::vector<long long int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
106 | st->update(pos, x.size(), delta);
| ~~~~~~^~
horses.cpp:107:14: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
107 | return solve(st->query());
| ~~~~~^~~~~~~~~~~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:114:14: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
114 | return solve(st->query());
| ~~~~~^~~~~~~~~~~~~