horses.cpp: In function 'void pro1(int, int, int)':
horses.cpp:23:28: warning: declaration of 'n' shadows a global declaration [-Wshadow]
void pro1(int n,int s,int e){
^
horses.cpp:14:5: note: shadowed declaration is here
int n,l,r;
^
horses.cpp: In function 'void build1(int, int, int)':
horses.cpp:32:30: warning: declaration of 'n' shadows a global declaration [-Wshadow]
void build1(int n,int s,int e){
^
horses.cpp:14:5: note: shadowed declaration is here
int n,l,r;
^
horses.cpp: In function 'void build2(int, int, int)':
horses.cpp:42:30: warning: declaration of 'n' shadows a global declaration [-Wshadow]
void build2(int n,int s,int e){
^
horses.cpp:14:5: note: shadowed declaration is here
int n,l,r;
^
horses.cpp: In function 'void update1(int, int, int)':
horses.cpp:52:31: warning: declaration of 'n' shadows a global declaration [-Wshadow]
void update1(int n,int s,int e){
^
horses.cpp:14:5: note: shadowed declaration is here
int n,l,r;
^
horses.cpp: In function 'void update2(int, int, int)':
horses.cpp:64:31: warning: declaration of 'n' shadows a global declaration [-Wshadow]
void update2(int n,int s,int e){
^
horses.cpp:14:5: note: shadowed declaration is here
int n,l,r;
^
horses.cpp: In function 'int get(int, int, int)':
horses.cpp:75:26: warning: declaration of 'n' shadows a global declaration [-Wshadow]
int get(int n,int s,int e){
^
horses.cpp:14:5: note: shadowed declaration is here
int n,l,r;
^
horses.cpp: In function 'int solve()':
horses.cpp:84:28: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
return (get(1,1,n) * y[r])%mod;
~~~~~~~~~~~~~~~~~~~^~~~