horses.cpp: In function 'int32_t init(int32_t, int32_t*, int32_t*)':
horses.cpp:24:22: warning: declaration of 'N' shadows a global declaration [-Wshadow]
24 | int32_t init(int32_t N, int32_t X[], int32_t Y[]) {
| ~~~~~~~~^
horses.cpp:12:11: note: shadowed declaration is here
12 | const int N = 5e5+50;
| ^
horses.cpp:32:9: warning: conversion from 'long long int' to 'int32_t' {aka 'int'} may change value [-Wconversion]
32 | return ans;
| ^~~
horses.cpp: In function 'int32_t updateX(int32_t, int32_t)':
horses.cpp:43:9: warning: conversion from 'long long int' to 'int32_t' {aka 'int'} may change value [-Wconversion]
43 | return ans;
| ^~~
horses.cpp: In function 'int32_t updateY(int32_t, int32_t)':
horses.cpp:54:9: warning: conversion from 'long long int' to 'int32_t' {aka 'int'} may change value [-Wconversion]
54 | return ans;
| ^~~