horses.cpp: In function 'long long int p(long long int, long long int)':
horses.cpp:27:16: warning: declaration of 'x' shadows a global declaration [-Wshadow]
27 | ll p(ll b, ll x) {
| ^
horses.cpp:26:4: note: shadowed declaration is here
26 | ll x[500005], y[500005], bit[500005];
| ^
horses.cpp: In function 'void update(int, long long int)':
horses.cpp:34:26: warning: declaration of 'x' shadows a global declaration [-Wshadow]
34 | void update(int x, ll val) {
| ^
horses.cpp:26:4: note: shadowed declaration is here
26 | ll x[500005], y[500005], bit[500005];
| ^
horses.cpp:35:8: warning: statement has no effect [-Wunused-value]
35 | for (x; x <= n; x += (x&(-x))) {
| ^
horses.cpp: In function 'long long int query(int)':
horses.cpp:39:15: warning: declaration of 'x' shadows a global declaration [-Wshadow]
39 | ll query(int x) {
| ^
horses.cpp:26:4: note: shadowed declaration is here
26 | ll x[500005], y[500005], bit[500005];
| ^
horses.cpp:41:8: warning: statement has no effect [-Wunused-value]
41 | for (x; x > 0; x -= (x&(-x))) {
| ^
horses.cpp: In function 'int calc(int)':
horses.cpp:48:10: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
48 | return ret;
| ^~~
horses.cpp: In function 'int solve()':
horses.cpp:70:10: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
70 | return ret;
| ^~~