horses.cpp: In function 'int query2(int, int, int, int, int)':
horses.cpp:69:39: warning: conversion from 'long long unsigned 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:75:15: warning: comparison of integer expressions of different signedness: 'int' and 'long long unsigned int' [-Wsign-compare]
75 | for(int i=0;i<n;i++){
| ~^~
horses.cpp:82:12: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
82 | build(1,1,n);
| ^
horses.cpp:83:13: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
83 | build2(1,1,n);
| ^
horses.cpp:86:20: warning: conversion from 'long long unsigned 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 unsigned 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 unsigned int' to 'int' may change value [-Wconversion]
91 | return res;
| ^~~
horses.cpp:99:12: warning: conversion from 'long long unsigned int' to 'double' may change value [-Wconversion]
99 | if(a>=1e9) break;
| ^
horses.cpp:106:9: warning: conversion from 'long long unsigned 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:111:23: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
111 | qq=query2(1,1,n,l,n);
| ^
horses.cpp:111:27: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
111 | qq=query2(1,1,n,l,n);
| ^
horses.cpp:112:18: warning: declaration of 'k' shadows a previous local [-Wshadow]
112 | __int128 k=ans*qq;
| ^
horses.cpp:84:6: note: shadowed declaration is here
84 | int k=min(64,(int)st.size());
| ^
horses.cpp:110:21: warning: unused variable 'r' [-Wunused-variable]
110 | int l=vt[i],r=vt[i+1]-1;
| ^
horses.cpp:118:19: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
118 | if(q==-1) return res;
| ^~~
horses.cpp:119:25: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
119 | __int128 qw=query2(1,1,n,1,n);
| ^
horses.cpp:119:29: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
119 | __int128 qw=query2(1,1,n,1,n);
| ^
horses.cpp:121:27: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
121 | return query2(1,1,n,1,n);
| ^
horses.cpp:121:31: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
121 | return query2(1,1,n,1,n);
| ^
horses.cpp:124:21: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
124 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:124:43: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
124 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:124:47: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
124 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:125:9: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
125 | return res;
| ^~~
horses.cpp:123:14: warning: unused variable 'r' [-Wunused-variable]
123 | int l=vt[q],r=vt[q+1]-1;
| ^
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:137:13: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
137 | update(1,1,n,pos,val);
| ^
horses.cpp:140:20: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
140 | ll res=query2(1,1,n,1,n);
| ^
horses.cpp:140:24: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
140 | ll res=query2(1,1,n,1,n);
| ^
horses.cpp:145:16: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
145 | return res;
| ^~~
horses.cpp:153:12: warning: conversion from 'long long unsigned int' to 'double' may change value [-Wconversion]
153 | if(a>=1e9) break;
| ^
horses.cpp:160:9: warning: conversion from 'long long unsigned int' to 'std::vector<int>::value_type' {aka 'int'} may change value [-Wconversion]
160 | vt.pb(n+1);
| ~^~
horses.cpp:161:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
161 | for(int i=0;i<vt.size()-1;i++){
| ~^~~~~~~~~~~~
horses.cpp:165:23: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
165 | qq=query2(1,1,n,l,n);
| ^
horses.cpp:165:27: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
165 | qq=query2(1,1,n,l,n);
| ^
horses.cpp:166:18: warning: declaration of 'k' shadows a previous local [-Wshadow]
166 | __int128 k=ans*qq;
| ^
horses.cpp:138:6: note: shadowed declaration is here
138 | int k=min(64,(int)st.size());
| ^
horses.cpp:164:21: warning: unused variable 'r' [-Wunused-variable]
164 | int l=vt[i],r=vt[i+1]-1;
| ^
horses.cpp:172:19: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
172 | if(q==-1) return res;
| ^~~
horses.cpp:173:25: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
173 | __int128 qw=query2(1,1,n,1,n);
| ^
horses.cpp:173:29: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
173 | __int128 qw=query2(1,1,n,1,n);
| ^
horses.cpp:175:27: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
175 | return query2(1,1,n,1,n);
| ^
horses.cpp:175:31: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
175 | return query2(1,1,n,1,n);
| ^
horses.cpp:178:21: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
178 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:178:43: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
178 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:178:47: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
178 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:179:9: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
179 | return res;
| ^~~
horses.cpp:177:14: warning: unused variable 'r' [-Wunused-variable]
177 | int l=vt[q],r=vt[q+1]-1;
| ^
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:185:14: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
185 | update2(1,1,n,pos,val);
| ^
horses.cpp:188:20: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
188 | ll res=query2(1,1,n,1,n);
| ^
horses.cpp:188:24: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
188 | ll res=query2(1,1,n,1,n);
| ^
horses.cpp:193:16: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
193 | return res;
| ^~~
horses.cpp:201:12: warning: conversion from 'long long unsigned int' to 'double' may change value [-Wconversion]
201 | if(a>=1e9) break;
| ^
horses.cpp:208:9: warning: conversion from 'long long unsigned int' to 'std::vector<int>::value_type' {aka 'int'} may change value [-Wconversion]
208 | vt.pb(n+1);
| ~^~
horses.cpp:209:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
209 | for(int i=0;i<vt.size()-1;i++){
| ~^~~~~~~~~~~~
horses.cpp:213:23: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
213 | qq=query2(1,1,n,l,n);
| ^
horses.cpp:213:27: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
213 | qq=query2(1,1,n,l,n);
| ^
horses.cpp:214:18: warning: declaration of 'k' shadows a previous local [-Wshadow]
214 | __int128 k=ans*qq;
| ^
horses.cpp:186:6: note: shadowed declaration is here
186 | int k=min(64,(int)st.size());
| ^
horses.cpp:212:21: warning: unused variable 'r' [-Wunused-variable]
212 | int l=vt[i],r=vt[i+1]-1;
| ^
horses.cpp:220:19: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
220 | if(q==-1) return res;
| ^~~
horses.cpp:221:25: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
221 | __int128 qw=query2(1,1,n,1,n);
| ^
horses.cpp:221:29: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
221 | __int128 qw=query2(1,1,n,1,n);
| ^
horses.cpp:223:27: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
223 | return query2(1,1,n,1,n);
| ^
horses.cpp:223:31: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
223 | return query2(1,1,n,1,n);
| ^
horses.cpp:226:21: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
226 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:226:43: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
226 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:226:47: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
226 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:227:9: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
227 | return res;
| ^~~
horses.cpp:225:14: warning: unused variable 'r' [-Wunused-variable]
225 | int l=vt[q],r=vt[q+1]-1;
| ^