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:34:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
34 | return ans;
| ^~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:42:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
42 | for(int i=n-1;i>=1;i--)
| ~^~
horses.cpp:61:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
61 | return ans;
| ^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:69:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
69 | for(int i=n-1;i>=1;i--)
| ~^~
horses.cpp:88:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
88 | return ans;
| ^~~