horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:51:25: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
51 | return qry(mxi)*Y[mxi]%MOD;
| ~~~~~~~~~~~~~~~^~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:55:23: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
55 | upd(i,modinv(X[i])*a%MOD);
| ~~~~~~~~~~~~~~^~~~
horses.cpp:59:11: warning: declaration of 'int i' shadows a parameter [-Wshadow]
59 | for(int i=N;i>0;--i) {
| ^
horses.cpp:53:17: note: shadowed declaration is here
53 | int updateX(int i,int a) {
| ~~~~^
horses.cpp:65:11: warning: declaration of 'int i' shadows a parameter [-Wshadow]
65 | for(int i=sti;i<=N;++i) {
| ^
horses.cpp:53:17: note: shadowed declaration is here
53 | int updateX(int i,int a) {
| ~~~~^
horses.cpp:72:25: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
72 | return qry(mxi)*Y[mxi]%MOD;
| ~~~~~~~~~~~~~~~^~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:79:11: warning: declaration of 'int i' shadows a parameter [-Wshadow]
79 | for(int i=N;i>0;--i) {
| ^
horses.cpp:74:17: note: shadowed declaration is here
74 | int updateY(int i,int a) {
| ~~~~^
horses.cpp:85:11: warning: declaration of 'int i' shadows a parameter [-Wshadow]
85 | for(int i=sti;i<=N;++i) {
| ^
horses.cpp:74:17: note: shadowed declaration is here
74 | int updateY(int i,int a) {
| ~~~~^
horses.cpp:92:25: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
92 | return qry(mxi)*Y[mxi]%MOD;
| ~~~~~~~~~~~~~~~^~~~