horses.cpp: In function 'uint power(uint, uint)':
horses.cpp:15:36: warning: conversion to 'uint {aka unsigned int}' from 'uint64_t {aka long unsigned int}' may alter its value [-Wconversion]
if(b) r = (uint64_t) r * a % MOD;
~~~~~~~~~~~~~~~~~^~~~~
horses.cpp:16:30: warning: conversion to 'uint {aka unsigned int}' from 'uint64_t {aka long unsigned int}' may alter its value [-Wconversion]
a = (uint64_t) a * a % MOD;
~~~~~~~~~~~~~~~~~^~~~~
horses.cpp: In function 'uint compute()':
horses.cpp:33:32: warning: conversion to 'uint {aka unsigned int}' from 'uint64_t {aka long unsigned int}' may alter its value [-Wconversion]
return product * inverse(lj) % MOD * Y[j] % MOD;
^
horses.cpp:33:47: warning: conversion to 'uint {aka unsigned int}' from 'uint64_t {aka long unsigned int}' may alter its value [-Wconversion]
return product * inverse(lj) % MOD * Y[j] % MOD;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~