horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:21:21: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
21 | return (long long)m%((long long)1e9);
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:35:21: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
35 | return (long long)m%((long long)1e9);
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:44:21: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
44 | return (long long)m%((long long)1e9);
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~