horses.cpp: In function 'void modify(int, int)':
horses.cpp:11:24: warning: declaration of 'x' shadows a global declaration [-Wshadow]
11 | void modify(int k, int x) {
| ~~~~^
horses.cpp:6:4: note: shadowed declaration is here
6 | ll x[500001];
| ^
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:39:15: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
39 | modify(i,x[i]);
| ~~~^
horses.cpp:50:23: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
50 | return (h[mp]*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~^~~~~~~~~~~~
horses.cpp:58:23: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
58 | return (h[mp]*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~^~~~~~~~~~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:75:23: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
75 | return (h[mp]*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~^~~~~~~~~~~~
horses.cpp:90:23: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
90 | return (h[mp]*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~^~~~~~~~~~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:103:23: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
103 | return (h[mp]*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~^~~~~~~~~~~~