horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:11:30: warning: declaration of 'Y' shadows a global declaration [-Wshadow]
11 | int init(int N, int X[], int Y[]) {
| ~~~~^~~
horses.cpp:9:10: note: shadowed declaration is here
9 | int X[N],Y[N];
| ^
horses.cpp:11:21: warning: declaration of 'X' shadows a global declaration [-Wshadow]
11 | int init(int N, int X[], int Y[]) {
| ~~~~^~~
horses.cpp:9:5: note: shadowed declaration is here
9 | int X[N],Y[N];
| ^
horses.cpp:11:14: warning: declaration of 'N' shadows a global declaration [-Wshadow]
11 | int init(int N, int X[], int Y[]) {
| ~~~~^
horses.cpp:8:11: note: shadowed declaration is here
8 | const int N=1e5,mod=1e9+7;
| ^
horses.cpp:19:18: warning: conversion from 'std::vector<long long int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
19 | int n=x.size()-1;
| ~~~~~~~~^~
horses.cpp:25:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
25 | return mx%mod;
| ~~^~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:32:18: warning: conversion from 'std::vector<long long int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
32 | int n=x.size()-1;
| ~~~~~~~~^~
horses.cpp:38:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
38 | return mx%mod;
| ~~^~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:45:18: warning: conversion from 'std::vector<long long int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
45 | int n=y.size()-1;
| ~~~~~~~~^~
horses.cpp:51:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
51 | return mx%mod;
| ~~^~~~