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,r);
| ^
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,r);
| ^
horses.cpp:116:19: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
116 | if(q==-1) return res;
| ^~~
horses.cpp:118:21: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
118 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,r))%MOD;
| ^
horses.cpp:118:43: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
118 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,r))%MOD;
| ^
horses.cpp:119:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
119 | return res;
| ^~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:131:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
131 | update(1,1,n,pos,val);
| ^
horses.cpp:134:20: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
134 | ll res=query2(1,1,n,1,n);
| ^
horses.cpp:134:24: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
134 | ll res=query2(1,1,n,1,n);
| ^
horses.cpp:139:16: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
139 | return res;
| ^~~
horses.cpp:147:12: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
147 | if(a>=1e9) break;
| ^
horses.cpp:154:9: warning: conversion from 'long long int' to 'std::vector<int>::value_type' {aka 'int'} may change value [-Wconversion]
154 | vt.pb(n+1);
| ~^~
horses.cpp:155:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
155 | for(int i=0;i<vt.size()-1;i++){
| ~^~~~~~~~~~~~
horses.cpp:158:21: warning: declaration of 'k' shadows a previous local [-Wshadow]
158 | unsigned ll k=ans*query2(1,1,n,l,r);
| ^
horses.cpp:132:6: note: shadowed declaration is here
132 | int k=min(32,(int)st.size());
| ^
horses.cpp:158:38: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
158 | unsigned ll k=ans*query2(1,1,n,l,r);
| ^
horses.cpp:164:19: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
164 | if(q==-1) return res;
| ^~~
horses.cpp:166:21: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
166 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,r))%MOD;
| ^
horses.cpp:166:43: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
166 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,r))%MOD;
| ^
horses.cpp:167:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
167 | return res;
| ^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:173:14: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
173 | update2(1,1,n,pos,val);
| ^
horses.cpp:176:20: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
176 | ll res=query2(1,1,n,1,n);
| ^
horses.cpp:176:24: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
176 | ll res=query2(1,1,n,1,n);
| ^
horses.cpp:181:16: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
181 | return res;
| ^~~
horses.cpp:189:12: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
189 | if(a>=1e9) break;
| ^
horses.cpp:196:9: warning: conversion from 'long long int' to 'std::vector<int>::value_type' {aka 'int'} may change value [-Wconversion]
196 | vt.pb(n+1);
| ~^~
horses.cpp:197:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
197 | for(int i=0;i<vt.size()-1;i++){
| ~^~~~~~~~~~~~
horses.cpp:200:21: warning: declaration of 'k' shadows a previous local [-Wshadow]
200 | unsigned ll k=ans*query2(1,1,n,l,r);
| ^
horses.cpp:174:6: note: shadowed declaration is here
174 | int k=min(32,(int)st.size());
| ^
horses.cpp:200:38: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
200 | unsigned ll k=ans*query2(1,1,n,l,r);
| ^
horses.cpp:206:19: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
206 | if(q==-1) return res;
| ^~~
horses.cpp:208:21: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
208 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,r))%MOD;
| ^
horses.cpp:208:43: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
208 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,r))%MOD;
| ^
horses.cpp:209:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
209 | return res;
| ^~~