horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:53:13: warning: conversion from 'll' {aka 'long long int'} to 'double' may change value [-Wconversion]
53 | if (ch > 1e9) {
| ^~
horses.cpp:62:11: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
22 | #define rep(i,a,b) for (int i = (a); i < b; i++)
| ~~~
......
62 | rep(i,sind,n) { // start on sind -1"
horses.cpp:22:34: note: in definition of macro 'rep'
22 | #define rep(i,a,b) for (int i = (a); i < b; i++)
| ^
horses.cpp:69:9: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
69 | return ans;
| ^~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:82:13: warning: conversion from 'll' {aka 'long long int'} to 'double' may change value [-Wconversion]
82 | if (ch > 1e9) {
| ^~
horses.cpp:91:11: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
22 | #define rep(i,a,b) for (int i = (a); i < b; i++)
| ~~~
......
91 | rep(i,sind,n) { // start on sind -1"
horses.cpp:22:34: note: in definition of macro 'rep'
22 | #define rep(i,a,b) for (int i = (a); i < b; i++)
| ^
horses.cpp:98:9: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
98 | return ans;
| ^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:111:13: warning: conversion from 'll' {aka 'long long int'} to 'double' may change value [-Wconversion]
111 | if (ch > 1e9) {
| ^~
horses.cpp:120:11: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
22 | #define rep(i,a,b) for (int i = (a); i < b; i++)
| ~~~
......
120 | rep(i,sind,n) { // start on sind -1"
horses.cpp:22:34: note: in definition of macro 'rep'
22 | #define rep(i,a,b) for (int i = (a); i < b; i++)
| ^
horses.cpp:127:9: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
127 | return ans;
| ^~~