horses.cpp: In function 'int query2(int, int, int, int, int)':
horses.cpp:69:39: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
69 | if(ql<=l&&r<=qr) return tree2[node];
| ~~~~~~~~~~^
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:82:12: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
82 | build(1,1,n);
| ^
horses.cpp:83:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
83 | build2(1,1,n);
| ^
horses.cpp:86:20: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
86 | ll res=query2(1,1,n,1,n);
| ^
horses.cpp:86:24: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
86 | ll res=query2(1,1,n,1,n);
| ^
horses.cpp:91:16: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
91 | return res;
| ^~~
horses.cpp:99:12: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
99 | if(a>=1e9) break;
| ^
horses.cpp:106:9: warning: conversion from 'long long int' to 'std::vector<int>::value_type' {aka 'int'} may change value [-Wconversion]
106 | vt.pb(n+1);
| ~^~
horses.cpp:107:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
107 | for(int i=0;i<vt.size()-1;i++){
| ~^~~~~~~~~~~~
horses.cpp:110:21: warning: declaration of 'k' shadows a previous local [-Wshadow]
110 | unsigned ll k=ans*query2(1,1,n,l,n);
| ^
horses.cpp:84:6: note: shadowed declaration is here
84 | int k=min(32,(int)st.size());
| ^
horses.cpp:110:38: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
110 | unsigned ll k=ans*query2(1,1,n,l,n);
| ^
horses.cpp:110:42: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
110 | unsigned ll k=ans*query2(1,1,n,l,n);
| ^
horses.cpp:109:21: warning: unused variable 'r' [-Wunused-variable]
109 | int l=vt[i],r=vt[i+1]-1;
| ^
horses.cpp:117:21: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
117 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:117:43: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
117 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:117:47: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
117 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:118:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
118 | return res;
| ^~~
horses.cpp:116:14: warning: unused variable 'r' [-Wunused-variable]
116 | int l=vt[q],r=vt[q+1]-1;
| ^
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:130:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
130 | update(1,1,n,pos,val);
| ^
horses.cpp:133:20: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
133 | ll res=query2(1,1,n,1,n);
| ^
horses.cpp:133:24: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
133 | ll res=query2(1,1,n,1,n);
| ^
horses.cpp:138:16: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
138 | return res;
| ^~~
horses.cpp:146:12: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
146 | if(a>=1e9) break;
| ^
horses.cpp:153:9: warning: conversion from 'long long int' to 'std::vector<int>::value_type' {aka 'int'} may change value [-Wconversion]
153 | vt.pb(n+1);
| ~^~
horses.cpp:154:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
154 | for(int i=0;i<vt.size()-1;i++){
| ~^~~~~~~~~~~~
horses.cpp:157:21: warning: declaration of 'k' shadows a previous local [-Wshadow]
157 | unsigned ll k=ans*query2(1,1,n,l,n);
| ^
horses.cpp:131:6: note: shadowed declaration is here
131 | int k=min(32,(int)st.size());
| ^
horses.cpp:157:38: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
157 | unsigned ll k=ans*query2(1,1,n,l,n);
| ^
horses.cpp:157:42: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
157 | unsigned ll k=ans*query2(1,1,n,l,n);
| ^
horses.cpp:156:21: warning: unused variable 'r' [-Wunused-variable]
156 | int l=vt[i],r=vt[i+1]-1;
| ^
horses.cpp:164:21: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
164 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:164:43: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
164 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:164:47: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
164 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:165:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
165 | return res;
| ^~~
horses.cpp:163:14: warning: unused variable 'r' [-Wunused-variable]
163 | int l=vt[q],r=vt[q+1]-1;
| ^
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:171:14: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
171 | update2(1,1,n,pos,val);
| ^
horses.cpp:174:20: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
174 | ll res=query2(1,1,n,1,n);
| ^
horses.cpp:174:24: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
174 | ll res=query2(1,1,n,1,n);
| ^
horses.cpp:179:16: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
179 | return res;
| ^~~
horses.cpp:187:12: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
187 | if(a>=1e9) break;
| ^
horses.cpp:194:9: warning: conversion from 'long long int' to 'std::vector<int>::value_type' {aka 'int'} may change value [-Wconversion]
194 | vt.pb(n+1);
| ~^~
horses.cpp:195:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
195 | for(int i=0;i<vt.size()-1;i++){
| ~^~~~~~~~~~~~
horses.cpp:198:21: warning: declaration of 'k' shadows a previous local [-Wshadow]
198 | unsigned ll k=ans*query2(1,1,n,l,n);
| ^
horses.cpp:172:6: note: shadowed declaration is here
172 | int k=min(32,(int)st.size());
| ^
horses.cpp:198:38: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
198 | unsigned ll k=ans*query2(1,1,n,l,n);
| ^
horses.cpp:198:42: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
198 | unsigned ll k=ans*query2(1,1,n,l,n);
| ^
horses.cpp:197:21: warning: unused variable 'r' [-Wunused-variable]
197 | int l=vt[i],r=vt[i+1]-1;
| ^
horses.cpp:205:21: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
205 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:205:43: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
205 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:205:47: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
205 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:206:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
206 | return res;
| ^~~
horses.cpp:204:14: warning: unused variable 'r' [-Wunused-variable]
204 | int l=vt[q],r=vt[q+1]-1;
| ^