horses.cpp: In function 'void modify(int, int)':
horses.cpp:13:24: warning: declaration of 'x' shadows a global declaration [-Wshadow]
13 | 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:36:25: warning: declaration of 'x' shadows a global declaration [-Wshadow]
36 | void ymodify(int k, int x) {
| ~~~~^
horses.cpp:6:4: note: shadowed declaration is here
6 | ll x[500001];
| ^
horses.cpp: In function 'std::pair<long long unsigned int, int> rmax(ll, ll)':
horses.cpp:46:6: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long unsigned int'} and 'int' [-Wsign-compare]
46 | if(b>2*n)exit(1);
| ~^~~~
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:64:15: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
64 | modify(i,x[i]);
| ~~~^
horses.cpp:66:16: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
66 | ymodify(i,y[i]);
| ~~~^
horses.cpp:78:28: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
78 | return (prod(0,mp)*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
horses.cpp:86:28: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
86 | return (prod(0,mp)*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
horses.cpp: In function 'int updateX(int, int)':
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:112:70: error: expected ';' before 'reverse'
112 | for(auto i:g1){vv.push_back(i);cn--;if(cn==0)break;}vv.push_back(0)
| ^
| ;
113 | reverse(vv.begin(),vv.end());
| ~~~~~~~
horses.cpp:114:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
114 | for(int vvi=0;vvi<vv.size();vvi++){
| ~~~^~~~~~~~~~
horses.cpp:116:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
116 | int vni=n-1;if(vvi!=vv.size()-1)vni=vv[vvi+1]-1;
| ~~~^~~~~~~~~~~~~
horses.cpp:122:28: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
122 | return (prod(0,mp)*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:134:28: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
134 | return (prod(0,mp)*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
horses.cpp:141:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
141 | for(int vvi=0;vvi<vv.size();vvi++){
| ~~~^~~~~~~~~~
horses.cpp:143:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
143 | int vni=n-1;if(vvi!=vv.size()-1)vni=vv[vvi+1]-1;
| ~~~^~~~~~~~~~~~~
horses.cpp:149:28: warning: conversion from 'll' {aka 'long long unsigned int'} to 'int' may change value [-Wconversion]
149 | return (prod(0,mp)*y[mp])%((ll)1e9+7);
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~