horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:50:25: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
50 | return qry(mxi)*Y[mxi]%MOD;
| ~~~~~~~~~~~~~~~^~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:54:23: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
54 | upd(i,modinv(X[i])*a%MOD);
| ~~~~~~~~~~~~~~^~~~
horses.cpp:58:11: warning: declaration of 'int i' shadows a parameter [-Wshadow]
58 | for(int i=N;i>0;--i) {
| ^
horses.cpp:52:17: note: shadowed declaration is here
52 | int updateX(int i,int a) {
| ~~~~^
horses.cpp:63:11: warning: declaration of 'int i' shadows a parameter [-Wshadow]
63 | for(int i=sti;i<=N;++i) {
| ^
horses.cpp:52:17: note: shadowed declaration is here
52 | int updateX(int i,int a) {
| ~~~~^
horses.cpp:70:25: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
70 | return qry(mxi)*Y[mxi]%MOD;
| ~~~~~~~~~~~~~~~^~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:77:11: warning: declaration of 'int i' shadows a parameter [-Wshadow]
77 | for(int i=N;i>0;--i) {
| ^
horses.cpp:72:17: note: shadowed declaration is here
72 | int updateY(int i,int a) {
| ~~~~^
horses.cpp:82:11: warning: declaration of 'int i' shadows a parameter [-Wshadow]
82 | for(int i=sti;i<=N;++i) {
| ^
horses.cpp:72:17: note: shadowed declaration is here
72 | int updateY(int i,int a) {
| ~~~~^
horses.cpp:89:25: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
89 | return qry(mxi)*Y[mxi]%MOD;
| ~~~~~~~~~~~~~~~^~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:70:24: warning: 'mxi' may be used uninitialized in this function [-Wmaybe-uninitialized]
70 | return qry(mxi)*Y[mxi]%MOD;
| ^
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:89:24: warning: 'mxi' may be used uninitialized in this function [-Wmaybe-uninitialized]
89 | return qry(mxi)*Y[mxi]%MOD;
| ^
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:50:24: warning: 'mxi' may be used uninitialized in this function [-Wmaybe-uninitialized]
50 | return qry(mxi)*Y[mxi]%MOD;
| ^