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