horses.cpp: In function 'int updateX(int, int)':
horses.cpp:39:19: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
39 | return seg[1].val;
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:46:19: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
46 | return seg[1].val;
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:49:30: warning: declaration of 'y' shadows a global declaration [-Wshadow]
49 | int init(int N, int x[], int y[])
| ~~~~^~~
horses.cpp:23:22: note: shadowed declaration is here
23 | long long x[100005], y[100005];
| ^
horses.cpp:49:21: warning: declaration of 'x' shadows a global declaration [-Wshadow]
49 | int init(int N, int x[], int y[])
| ~~~~^~~
horses.cpp:23:11: note: shadowed declaration is here
23 | long long x[100005], y[100005];
| ^
horses.cpp:57:19: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
57 | return seg[1].val;
horses.cpp:49:21: warning: unused parameter 'x' [-Wunused-parameter]
49 | int init(int N, int x[], int y[])
| ~~~~^~~
horses.cpp:49:30: warning: unused parameter 'y' [-Wunused-parameter]
49 | int init(int N, int x[], int y[])
| ~~~~^~~