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:37:15: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
37 | modify(i,x[i]);
| ~~~^
horses.cpp:48:28: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
48 | return (prod(0,mp)*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
horses.cpp:56:28: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
56 | return (prod(0,mp)*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:69:28: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
69 | return (prod(0,mp)*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
horses.cpp:79:28: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
79 | return (prod(0,mp)*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:92:28: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
92 | return (prod(0,mp)*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
horses.cpp:101:28: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
101 | return (prod(0,mp)*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~