horses.cpp: In function 'int32_t init(int32_t, int32_t*, int32_t*)':
horses.cpp:23:22: warning: declaration of 'N' shadows a global declaration [-Wshadow]
23 | 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:31:7: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
31 | if (mm >= 1e10) {
| ^~
horses.cpp:45:9: warning: conversion from 'long long int' to 'int32_t' {aka 'int'} may change value [-Wconversion]
45 | return ans;
| ^~~
horses.cpp: In function 'int32_t updateX(int32_t, int32_t)':
horses.cpp:56:7: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
56 | if (mm >= 1e10) {
| ^~
horses.cpp:70:9: warning: conversion from 'long long int' to 'int32_t' {aka 'int'} may change value [-Wconversion]
70 | return ans;
| ^~~
horses.cpp: In function 'int32_t updateY(int32_t, int32_t)':
horses.cpp:81:7: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
81 | if (mm >= 1e10) {
| ^~
horses.cpp:95:9: warning: conversion from 'long long int' to 'int32_t' {aka 'int'} may change value [-Wconversion]
95 | return ans;
| ^~~