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:76:28: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
76 | return (prod(0,mp)*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
horses.cpp:91:23: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
91 | return (h[mp]*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~^~~~~~~~~~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:104:23: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
104 | return (h[mp]*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~^~~~~~~~~~~~
horses.cpp:113:23: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
113 | return (h[mp]*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~^~~~~~~~~~~~