horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:24:36: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
res = res * 1ll * x[i] % mod;
~~~~~~~~~~~~~~~~~^~~~~
horses.cpp:29:41: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
ot = res * 1ll * y[i] % mod;
~~~~~~~~~~~~~~~~~^~~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:44:36: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
res = res * 1ll * x[i] % mod;
~~~~~~~~~~~~~~~~~^~~~~
horses.cpp:49:41: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
ot = res * 1ll * y[i] % mod;
~~~~~~~~~~~~~~~~~^~~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:63:36: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
res = res * 1ll * x[i] % mod;
~~~~~~~~~~~~~~~~~^~~~~
horses.cpp:68:41: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
ot = res * 1ll * y[i] % mod;
~~~~~~~~~~~~~~~~~^~~~~