horses.cpp: In function 'void pro1(int, int, int)':
horses.cpp:16: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:25: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:35: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:45: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:58: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:69: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:78:28: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
return (get(1,1,n) * y[r])%mod;
~~~~~~~~~~~~~~~~~~~^~~~