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:17:11: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
17 | if(x[i+1]>1e9||z[i+1]>1e9)
| ~~~~~^
horses.cpp:17:23: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
17 | if(x[i+1]>1e9||z[i+1]>1e9)
| ~~~~~^
horses.cpp:40:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
40 | return ans;
| ^~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:48:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
48 | for(int i=n-1;i>=1;i--)
| ~^~
horses.cpp:50:11: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
50 | if(x[i+1]>1e9||z[i+1]>1e9)
| ~~~~~^
horses.cpp:50:23: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
50 | if(x[i+1]>1e9||z[i+1]>1e9)
| ~~~~~^
horses.cpp:73:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
73 | return ans;
| ^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:81:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
81 | for(int i=n-1;i>=1;i--)
| ~^~
horses.cpp:83:11: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
83 | if(x[i+1]>1e9||z[i+1]>1e9)
| ~~~~~^
horses.cpp:83:23: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
83 | if(x[i+1]>1e9||z[i+1]>1e9)
| ~~~~~^
horses.cpp:106:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
106 | return ans;
| ^~~