horses.cpp: In function 'int calc()':
horses.cpp:16:14: warning: conversion from 'long double' to 'll' {aka 'long long int'} may change value [-Wfloat-conversion]
16 | curr += xlog[i];
| ~~~~~^~~~~~~~~~
horses.cpp:18:23: warning: conversion from 'long double' to 'll' {aka 'long long int'} may change value [-Wfloat-conversion]
18 | mx = curr + ylog[i];
| ~~~~~^~~~~~~~~
horses.cpp:28:24: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
28 | return (res*y[ind])%mod;
| ~~~~~~~~~~~~^~~~
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:31:14: warning: declaration of 'N' shadows a global declaration [-Wshadow]
31 | int init(int N,int X[],int Y[]){
| ~~~~^
horses.cpp:6:11: note: shadowed declaration is here
6 | const int N = 1e5 + 545 , inf = 1e9 + 199 , mod = 1e9 + 7;
| ^