horses.cpp: In member function 'void BIT::init(long long int, long long int (*)(long long int, long long int))':
horses.cpp:16:15: warning: declaration of 'id' shadows a member of 'BIT' [-Wshadow]
16 | void init(ll id, ll (*f)(ll, ll)) {
| ^
horses.cpp:15:22: note: shadowed declaration is here
15 | ll bit[MAXN] = {0}, id;
| ^~
horses.cpp: In function 'long long int add(long long int, long long int)':
horses.cpp:45:17: warning: declaration of 'y' shadows a global declaration [-Wshadow]
45 | ll add(ll x, ll y) { return x + y; }
| ^
horses.cpp:12:13: note: shadowed declaration is here
12 | ll x[MAXN], y[MAXN];
| ^
horses.cpp:45:11: warning: declaration of 'x' shadows a global declaration [-Wshadow]
45 | ll add(ll x, ll y) { return x + y; }
| ^
horses.cpp:12:4: note: shadowed declaration is here
12 | ll x[MAXN], y[MAXN];
| ^
horses.cpp: In function 'long long int mul(long long int, long long int)':
horses.cpp:46:17: warning: declaration of 'y' shadows a global declaration [-Wshadow]
46 | ll mul(ll x, ll y) { return x * y % MOD; }
| ^
horses.cpp:12:13: note: shadowed declaration is here
12 | ll x[MAXN], y[MAXN];
| ^
horses.cpp:46:11: warning: declaration of 'x' shadows a global declaration [-Wshadow]
46 | ll mul(ll x, ll y) { return x * y % MOD; }
| ^
horses.cpp:12:4: note: shadowed declaration is here
12 | ll x[MAXN], y[MAXN];
| ^
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:70:14: warning: declaration of 'N' shadows a global declaration [-Wshadow]
70 | int init(int N, int X[], int Y[]) {
| ~~~~^
horses.cpp:41:4: note: shadowed declaration is here
41 | ll N;
| ^
horses.cpp:86:14: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
86 | return query();
| ~~~~~^~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:97:14: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
97 | return query();
| ~~~~~^~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:102:14: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
102 | return query();
| ~~~~~^~