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:79:13: warning: conversion from 'll' {aka 'long long int'} to 'double' may change value [-Wconversion]
79 | if (ch > 1e9) {
| ^~
horses.cpp:83:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
83 | if (i = 0) sind = 0;
| ~~^~~
horses.cpp:88: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++)
| ~~~
......
88 | 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:94:13: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
94 | return ans % MOD;
| ~~~~^~~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:105:13: warning: conversion from 'll' {aka 'long long int'} to 'double' may change value [-Wconversion]
105 | if (ch > 1e9) {
| ^~
horses.cpp:109:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
109 | if (i = 0) sind = 0;
| ~~^~~
horses.cpp:114: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++)
| ~~~
......
114 | 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:120:13: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
120 | return ans % MOD;
| ~~~~^~~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:88:9: warning: 'sind' may be used uninitialized in this function [-Wmaybe-uninitialized]
88 | rep(i,sind,n) { // start on sind -1"
| ^
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:114:9: warning: 'sind' may be used uninitialized in this function [-Wmaybe-uninitialized]
114 | rep(i,sind,n) { // start on sind -1"
| ^
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:62:9: warning: 'sind' may be used uninitialized in this function [-Wmaybe-uninitialized]
62 | rep(i,sind,n) { // start on sind -1"
| ^