horses.cpp: In function 'void upd(int)':
horses.cpp:70:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
70 | up((q+za-1)/2);
| ~~~~~~~~^~
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:73:35: warning: declaration of 'N' shadows a global declaration [-Wshadow]
73 | int init(int N, int XX[], int YY[]) {
| ^
horses.cpp:5:11: note: shadowed declaration is here
5 | const int N=1100009;
| ^
horses.cpp:81:7: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
81 | upd(i);
| ^
horses.cpp:85:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
85 | return zx;
| ^~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:92:6: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
92 | upd(c);
| ^
horses.cpp:95:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
95 | return zx;
| ^~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:102:6: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
102 | upd(c);
| ^
horses.cpp:105:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
105 | return zx;
| ^~