horses.cpp: In function 'long long int binpow(long long int, long long int)':
horses.cpp:56:21: warning: declaration of 'n' shadows a global declaration [-Wshadow]
56 | ll binpow(ll x , ll n){
| ^
horses.cpp:54:12: note: shadowed declaration is here
54 | ll f = 1 , n;
| ^
horses.cpp: In function 'long long int divmod(long long int, long long int)':
horses.cpp:65:21: warning: declaration of 'b' shadows a global declaration [-Wshadow]
65 | ll divmod(ll a , ll b){
| ^
horses.cpp:23:11: note: shadowed declaration is here
23 | ll a[N] , b[N] , d[N] , c[N] , dp[N] , t[4 * N];
| ^
horses.cpp:65:14: warning: declaration of 'a' shadows a global declaration [-Wshadow]
65 | ll divmod(ll a , ll b){
| ^
horses.cpp:23:4: note: shadowed declaration is here
23 | ll a[N] , b[N] , d[N] , c[N] , dp[N] , t[4 * N];
| ^
horses.cpp: In function 'long long int mul(long long int, long long int)':
horses.cpp:68:18: warning: declaration of 'b' shadows a global declaration [-Wshadow]
68 | ll mul(ll a , ll b){
| ^
horses.cpp:23:11: note: shadowed declaration is here
23 | ll a[N] , b[N] , d[N] , c[N] , dp[N] , t[4 * N];
| ^
horses.cpp:68:11: warning: declaration of 'a' shadows a global declaration [-Wshadow]
68 | ll mul(ll a , ll b){
| ^
horses.cpp:23:4: note: shadowed declaration is here
23 | ll a[N] , b[N] , d[N] , c[N] , dp[N] , t[4 * N];
| ^
horses.cpp: In function 'int getans()':
horses.cpp:81:25: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
81 | l = get(1 , 1 , n , *it + 1 , r + 1 );
| ^
horses.cpp:81:41: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
81 | l = get(1 , 1 , n , *it + 1 , r + 1 );
| ~~^~~
horses.cpp:86:36: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
86 | return ((x % mod) * k) % mod;
| ~~~~~~~~~~~~~~~~^~~~~
horses.cpp:92:26: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
92 | return (x % mod) * k % mod;
| ~~~~~~~~~~~~~~^~~~~
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:95:14: warning: declaration of 'N' shadows a global declaration [-Wshadow]
95 | int init(int N, int X[], int Y[]) {
| ~~~~^
horses.cpp:22:11: note: shadowed declaration is here
22 | const int N = 5e5 + 9 , mod = 1e9 +7;
| ^
horses.cpp:102:21: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
102 | add(1 , 1 , n , i + 1 , i + 1 , b[i]);
| ^
horses.cpp:102:44: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
102 | add(1 , 1 , n , i + 1 , i + 1 , b[i]);
| ~~~^
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:121:14: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
121 | add(1 , 1 , n , pos + 1 , pos + 1 , val);
| ^