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:48:15: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
48 | for(int i=max(1ll,n-29);i<=idx;i++)
| ~~~^~~~~~~~~~
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:65:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
65 | return calc();
| ~~~~^~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:76:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
76 | return calc();
| ~~~~^~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:83:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
83 | return calc();
| ~~~~^~