horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:42:23: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
return (ans * y[pl]) % M;
~~~~~~~~~~~~~~^~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:46:16: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
int pr = x[pos];
~~~~~^
horses.cpp:49:29: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
return ((ans / pr) * val) % M;
~~~~~~~~~~~~~~~~~~~^~~
horses.cpp:52:18: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
for(int i = pl + 1 ; i < n ; ++i){
~~~^~~
horses.cpp:58:24: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
return (ans * y[pl]) % M;
~~~~~~~~~~~~~~^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:71:23: warning: conversion to 'int' from 'll {aka long long int}' may alter its value [-Wconversion]
return (ans * y[pl]) % M;
~~~~~~~~~~~~~~^~~