horses.cpp: In function 'void modify(int, int)':
horses.cpp:12:24: warning: declaration of 'x' shadows a global declaration [-Wshadow]
12 | 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:38:15: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
38 | modify(i,x[i]);
| ~~~^
horses.cpp:50:28: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
50 | return (prod(0,mp)*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
horses.cpp:58:28: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
58 | return (prod(0,mp)*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:73:28: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
73 | return (prod(0,mp)*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
horses.cpp:91:28: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
91 | return (prod(0,mp)*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:104:28: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
104 | return (prod(0,mp)*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
horses.cpp:121:28: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
121 | return (prod(0,mp)*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~