horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:15:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
15 | for(int i=n-1;i>=1;i--)
| ~^~
horses.cpp:38:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
38 | return ans;
| ^~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:46:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
46 | for(int i=n-1;i>=1;i--)
| ~^~
horses.cpp:65:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
65 | return ans;
| ^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:73:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
73 | for(int i=n-1;i>=1;i--)
| ~^~
horses.cpp:92:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
92 | return ans;
| ^~~