horses.cpp: In function 'void add(int, int, int)':
horses.cpp:23:50: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
23 | t[a].r=t[a].x*t[a].y%mod, t[a].R=t[a].X+t[a].y;
| ~~~~~^
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:29:17: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion]
29 | return t[1].R;
| ~~~~~^
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:33:17: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion]
33 | return t[1].R;
| ~~~~~^
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:37:17: warning: conversion from 'double' to 'int' may change value [-Wfloat-conversion]
37 | return t[1].R;
| ~~~~~^