horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:13:33: warning: declaration of 'N' shadows a global declaration [-Wshadow]
int init(int N, int X[], int Y[])
^
horses.cpp:6:11: note: shadowed declaration is here
const int N=1e3+55;
^
horses.cpp:28:16: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
return (ret%m);
~~~~^~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:41:16: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
return (ret%m);
~~~~^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:54:16: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
return (ret%m);
~~~~^~~