horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:45:25: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
45 | return qry(mxi)*Y[mxi]%MOD;
| ~~~~~~~~~~~~~~~^~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:49:23: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
49 | upd(i,modinv(X[i])*a%MOD);
| ~~~~~~~~~~~~~~^~~~
horses.cpp:53:11: warning: declaration of 'int i' shadows a parameter [-Wshadow]
53 | for(int i=max(1,N-35);i<=N;++i) {
| ^
horses.cpp:47:17: note: shadowed declaration is here
47 | int updateX(int i,int a) {
| ~~~~^
horses.cpp:60:25: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
60 | return qry(mxi)*Y[mxi]%MOD;
| ~~~~~~~~~~~~~~~^~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:67:11: warning: declaration of 'int i' shadows a parameter [-Wshadow]
67 | for(int i=max(1,N-35);i<=N;++i) {
| ^
horses.cpp:62:17: note: shadowed declaration is here
62 | int updateY(int i,int a) {
| ~~~~^
horses.cpp:74:25: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
74 | return qry(mxi)*Y[mxi]%MOD;
| ~~~~~~~~~~~~~~~^~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:60:24: warning: 'mxi' may be used uninitialized in this function [-Wmaybe-uninitialized]
60 | return qry(mxi)*Y[mxi]%MOD;
| ^
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:74:24: warning: 'mxi' may be used uninitialized in this function [-Wmaybe-uninitialized]
74 | return qry(mxi)*Y[mxi]%MOD;
| ^
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:45:24: warning: 'mxi' may be used uninitialized in this function [-Wmaybe-uninitialized]
45 | return qry(mxi)*Y[mxi]%MOD;
| ^