horses.cpp: In function 'long long int calc()':
horses.cpp:40:15: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
40 | for(int i=idx+1;i<=n;i++){
| ~~~^~
horses.cpp:49:15: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
49 | for(int i=max(1ll,n-29);i<=idx;i++)
| ~~~^~~~~~~~~~
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:66:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
66 | return calc();
| ~~~~^~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:77:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
77 | return calc();
| ~~~~^~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:84:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
84 | return calc();
| ~~~~^~