horses.cpp: In function 'll fastpower(ll, ll)':
horses.cpp:32:27: warning: declaration of 'n' shadows a global declaration [-Wshadow]
ll fastpower( ll x , ll n ){
^
horses.cpp:29:28: note: shadowed declaration is here
ll x[500010] , y[500010] , n;
^
horses.cpp:32:27: warning: declaration of 'x' shadows a global declaration [-Wshadow]
ll fastpower( ll x , ll n ){
^
horses.cpp:29:4: note: shadowed declaration is here
ll x[500010] , y[500010] , n;
^
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:47:17: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
for(int i = max(0ll,n - 31) ; i < N ; ++i){
~~~^~~~~~~~~~~~
horses.cpp:56:23: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
return (ans * y[pl]) % M;
~~~~~~~~~~~~~~^~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:65:17: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
for(int i = max(0ll,n - 31) ; i < n ; ++i){
~~~^~~~~~~~~~~~
horses.cpp:74:23: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
return (ans * y[pl]) % M;
~~~~~~~~~~~~~~^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:80:17: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
for(int i = max(0ll,n - 31) ; i < n; ++i){
~~~^~~~~~~~~~~~
horses.cpp:86:23: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
return (ans * y[pl]) % M;
~~~~~~~~~~~~~~^~~