horses.cpp: In function 'll mod(ll, ll)':
horses.cpp:31:19: warning: declaration of 'x' shadows a global declaration [-Wshadow]
ll mod(ll x , ll m){
^
horses.cpp:29:4: note: shadowed declaration is here
ll x[500010] , y[500010] , n , co = 0 , cur = 0;
^
horses.cpp: In function 'll mod1(ll, ll)':
horses.cpp:35:20: warning: declaration of 'x' shadows a global declaration [-Wshadow]
ll mod1(ll x , ll m){
^
horses.cpp:29:4: note: shadowed declaration is here
ll x[500010] , y[500010] , n , co = 0 , cur = 0;
^
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:45:5: warning: declaration of 'x' shadows a global declaration [-Wshadow]
ll x = 1 , ans = 0 , c1 = 0;
^
horses.cpp:29:4: note: shadowed declaration is here
ll x[500010] , y[500010] , n , co = 0 , cur = 0;
^
horses.cpp:52:9: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
return ans;
^~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:65:9: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
return ans;
^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:78:9: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
return ans;
^~~