horses.cpp: In function 'int lg_put(int, int)':
horses.cpp:16:46: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
return 1LL * nr * nr % MOD * 1LL * a % MOD;
^
horses.cpp:17:31: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
else return 1LL * nr * nr % MOD;
^
horses.cpp: In function 'void build(int, int, int)':
horses.cpp:29:49: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
aint[nod].maxi = 1LL * prod[st] * y[st] % MOD;
^
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:47:34: warning: declaration of 'Y' shadows a global declaration [-Wshadow]
int init (int n, int X[], int Y[]){
^
horses.cpp:8:26: note: shadowed declaration is here
int x[DIM],y[DIM],X[DIM],Y[DIM],prod[DIM];
^
horses.cpp:47:34: warning: declaration of 'X' shadows a global declaration [-Wshadow]
int init (int n, int X[], int Y[]){
^
horses.cpp:8:19: note: shadowed declaration is here
int x[DIM],y[DIM],X[DIM],Y[DIM],prod[DIM];
^
horses.cpp:47:34: warning: declaration of 'n' shadows a global declaration [-Wshadow]
int init (int n, int X[], int Y[]){
^
horses.cpp:7:5: note: shadowed declaration is here
int n,m,i,tip,poz,val;
^
horses.cpp:54:42: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
prod[i] = 1LL * prod[i-1] * x[i] % MOD;
^
horses.cpp: In function 'void update_lazy(int, int, int)':
horses.cpp:67:70: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
aint[fiu_st].maxi = 1LL * aint[fiu_st].maxi * aint[nod].lazy % MOD;
^
horses.cpp:68:70: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
aint[fiu_st].lazy = 1LL * aint[fiu_st].lazy * aint[nod].lazy % MOD;
^
horses.cpp:72:70: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
aint[fiu_dr].maxi = 1LL * aint[fiu_dr].maxi * aint[nod].lazy % MOD;
^
horses.cpp:73:70: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
aint[fiu_dr].lazy = 1LL * aint[fiu_dr].lazy * aint[nod].lazy % MOD;
^
horses.cpp: In function 'void update(int, int, int, int, int, double, int)':
horses.cpp:79:76: warning: declaration of 'val' shadows a global declaration [-Wshadow]
void update (int nod, int st, int dr, int x, int y, double val_log, int val){
^
horses.cpp:7:19: note: shadowed declaration is here
int n,m,i,tip,poz,val;
^~~
horses.cpp:79:76: warning: declaration of 'y' shadows a global declaration [-Wshadow]
void update (int nod, int st, int dr, int x, int y, double val_log, int val){
^
horses.cpp:8:12: note: shadowed declaration is here
int x[DIM],y[DIM],X[DIM],Y[DIM],prod[DIM];
^
horses.cpp:79:76: warning: declaration of 'x' shadows a global declaration [-Wshadow]
void update (int nod, int st, int dr, int x, int y, double val_log, int val){
^
horses.cpp:8:5: note: shadowed declaration is here
int x[DIM],y[DIM],X[DIM],Y[DIM],prod[DIM];
^
horses.cpp:83:53: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
aint[nod].maxi = 1LL * aint[nod].maxi * val % MOD;
^
horses.cpp:86:53: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
aint[nod].lazy = 1LL * aint[nod].lazy * val % MOD;
^
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:104:29: warning: declaration of 'val' shadows a global declaration [-Wshadow]
int updateX(int pos, int val) {
^
horses.cpp:7:19: note: shadowed declaration is here
int n,m,i,tip,poz,val;
^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:119:29: warning: declaration of 'val' shadows a global declaration [-Wshadow]
int updateY(int pos, int val) {
^
horses.cpp:7:19: note: shadowed declaration is here
int n,m,i,tip,poz,val;
^~~