horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:34:5: warning: declaration of 'x' shadows a global declaration [-Wshadow]
ll x = 1 , ans = 0;
^
horses.cpp:29:4: note: shadowed declaration is here
ll x[500010] , y[500010] , n;
^
horses.cpp:39: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:43:16: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
int xx = x[pos];
~~~~~^
horses.cpp:50: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:55:16: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
int xx = y[pos];
~~~~~^
horses.cpp:62:9: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
return ans;
^~~