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