horses.cpp: In function 'void modify(int, int)':
horses.cpp:14:24: warning: declaration of 'x' shadows a global declaration [-Wshadow]
14 | void modify(int k, int x) {
| ~~~~^
horses.cpp:6:4: note: shadowed declaration is here
6 | ll x[500001];
| ^
horses.cpp: In function 'void ymodify(int, int)':
horses.cpp:34:25: warning: declaration of 'x' shadows a global declaration [-Wshadow]
34 | void ymodify(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:60:15: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
60 | modify(i,x[i]);
| ~~~^
horses.cpp:63:16: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
63 | ymodify(i,y[i]);
| ~~~^
horses.cpp:75:28: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
75 | return (prod(0,mp)*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
horses.cpp:83:28: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
83 | return (prod(0,mp)*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:100:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
100 | for(int vvi=0;vvi<vv.size();vvi++){
| ~~~^~~~~~~~~~
horses.cpp:102:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
102 | int vni=n-1;if(vvi!=vv.size()-1)vni=vv[vvi+1]-1;
| ~~~^~~~~~~~~~~~~
horses.cpp:107:28: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
107 | return (prod(0,mp)*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:119:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
119 | for(int vvi=0;vvi<vv.size();vvi++){
| ~~~^~~~~~~~~~
horses.cpp:121:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
121 | int vni=n-1;if(vvi!=vv.size()-1)vni=vv[vvi+1]-1;
| ~~~^~~~~~~~~~~~~
horses.cpp:126:28: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
126 | return (prod(0,mp)*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~