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:67:14: warning: conversion from 'long double' to 'long long int' may change value [-Wfloat-conversion]
67 | return round(powl(10, currentVal));
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:77:16: warning: conversion from 'std::vector<long long int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
77 | int n = x.size();
| ~~~~~~^~
horses.cpp:85:14: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
85 | return solve(st->query());
| ~~~~~^~~~~~~~~~~~~
horses.cpp:75:5: warning: unused variable 'current' [-Wunused-variable]
75 | ll current = 1;
| ^~~~~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:95:24: warning: conversion from 'std::vector<long long int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
95 | st->update(pos, x.size(), delta);
| ~~~~~~^~
horses.cpp:96:14: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
96 | return solve(st->query());
| ~~~~~^~~~~~~~~~~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:103:14: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
103 | return solve(st->query());
| ~~~~~^~~~~~~~~~~~~