horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:14:32: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
14 | ans = (numhorse[N] * Y[N - 1])%mod;
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
horses.cpp:20:8: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
20 | if (temp > 1e9)ok = true;
| ^~~~
horses.cpp:26:34: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} to 'int' may change value [-Wconversion]
26 | ans = (numhorse[i] * Y[i - 1])%mod;
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:32:17: warning: unused parameter 'pos' [-Wunused-parameter]
32 | int updateX(int pos, int val) {
| ~~~~^~~
horses.cpp:32:26: warning: unused parameter 'val' [-Wunused-parameter]
32 | int updateX(int pos, int val) {
| ~~~~^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:36:17: warning: unused parameter 'pos' [-Wunused-parameter]
36 | int updateY(int pos, int val) {
| ~~~~^~~
horses.cpp:36:26: warning: unused parameter 'val' [-Wunused-parameter]
36 | int updateY(int pos, int val) {
| ~~~~^~~