horses.cpp: In function 'int calc()':
horses.cpp:28:21: warning: conversion from 'll' {aka 'long long int'} to '__gnu_cxx::__alloc_traits<std::allocator<double>, double>::value_type' {aka 'double'} may change value [-Wconversion]
28 | ls += logX[i];
| ^
horses.cpp:28:21: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<double>, double>::value_type' {aka 'double'} to 'll' {aka 'long long int'} may change value [-Wfloat-conversion]
horses.cpp:29:12: warning: conversion from 'll' {aka 'long long int'} to '__gnu_cxx::__alloc_traits<std::allocator<double>, double>::value_type' {aka 'double'} may change value [-Wconversion]
29 | if(ls + logY[i] > ans) {
| ^~
horses.cpp:29:27: warning: conversion from 'll' {aka 'long long int'} to '__gnu_cxx::__alloc_traits<std::allocator<double>, double>::value_type' {aka 'double'} may change value [-Wconversion]
29 | if(ls + logY[i] > ans) {
| ^~~
horses.cpp:30:19: warning: conversion from 'll' {aka 'long long int'} to '__gnu_cxx::__alloc_traits<std::allocator<double>, double>::value_type' {aka 'double'} may change value [-Wconversion]
30 | ans = ls + logY[i];
| ^~
horses.cpp:30:22: warning: conversion from '__gnu_cxx::__alloc_traits<std::allocator<double>, double>::value_type' {aka 'double'} to 'll' {aka 'long long int'} may change value [-Wfloat-conversion]
30 | ans = ls + logY[i];
horses.cpp:38:12: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
38 | return res;
| ^~~