horses.cpp: In function 'int getMaxValue(int)':
horses.cpp:61:38: warning: conversion from 'lng' {aka 'long long int'} to 'int' may change value [-Wconversion]
61 | return horses * Y[i] % MOD;
| ~~~~~~~~~~~~~~^~~~~
horses.cpp:85:38: warning: conversion from 'lng' {aka 'long long int'} to 'int' may change value [-Wconversion]
85 | return horses * Y[i] % MOD;
| ~~~~~~~~~~~~~~^~~~~
horses.cpp:89:37: warning: conversion from 'lng' {aka 'long long int'} to 'int' may change value [-Wconversion]
89 | return allHorses * Y[N - 1] % MOD;
| ~~~~~~~~~~~~~~~~~~~~~^~~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:117:38: warning: conversion from 'lng' {aka 'long long int'} to '__gnu_cxx::__promote_2<int, int, double, double>::__type' {aka 'double'} may change value [-Wconversion]
117 | (allHorses *= pow(X[pos], MOD - 2)) %= MOD;
| ^
horses.cpp:117:38: warning: conversion from '__gnu_cxx::__promote_2<int, int, double, double>::__type' {aka 'double'} to 'lng' {aka 'long long int'} may change value [-Wfloat-conversion]
/usr/bin/ld: /tmp/ccsFo1iG.o: in function `main':
grader.c:(.text.startup+0x0): multiple definition of `main'; /tmp/ccBqmxsF.o:horses.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status