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:57:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
57 | if (i = 0) sind = 0;
| ~~^~~
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:68:13: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
68 | return ans % MOD;
| ~~~~^~~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:81:13: warning: conversion from 'll' {aka 'long long int'} to 'double' may change value [-Wconversion]
81 | if (ch > 1e9) {
| ^~
horses.cpp:85:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
85 | if (i = 0) sind = 0;
| ~~^~~
horses.cpp:90: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++)
| ~~~
......
90 | 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:96:13: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
96 | return ans % MOD;
| ~~~~^~~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:109:13: warning: conversion from 'll' {aka 'long long int'} to 'double' may change value [-Wconversion]
109 | if (ch > 1e9) {
| ^~
horses.cpp:113:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
113 | if (i = 0) sind = 0;
| ~~^~~
horses.cpp:118: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++)
| ~~~
......
118 | 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:124:13: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
124 | return ans % MOD;
| ~~~~^~~~~