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:120:21: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
120 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:120:43: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
120 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:120:47: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
120 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:121:9: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
121 | return res;
| ^~~
horses.cpp:119:14: warning: unused variable 'r' [-Wunused-variable]
119 | int l=vt[q],r=vt[q+1]-1;
| ^
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:133:13: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
133 | update(1,1,n,pos,val);
| ^
horses.cpp:136:20: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
136 | ll res=query2(1,1,n,1,n);
| ^
horses.cpp:136:24: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
136 | ll res=query2(1,1,n,1,n);
| ^
horses.cpp:141:16: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
141 | return res;
| ^~~
horses.cpp:149:12: warning: conversion from 'long long unsigned int' to 'double' may change value [-Wconversion]
149 | if(a>=1e9) break;
| ^
horses.cpp:156:9: warning: conversion from 'long long unsigned int' to 'std::vector<int>::value_type' {aka 'int'} may change value [-Wconversion]
156 | vt.pb(n+1);
| ~^~
horses.cpp:157:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
157 | for(int i=0;i<vt.size()-1;i++){
| ~^~~~~~~~~~~~
horses.cpp:161:23: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
161 | qq=query2(1,1,n,l,n);
| ^
horses.cpp:161:27: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
161 | qq=query2(1,1,n,l,n);
| ^
horses.cpp:162:18: warning: declaration of 'k' shadows a previous local [-Wshadow]
162 | __int128 k=ans*qq;
| ^
horses.cpp:134:6: note: shadowed declaration is here
134 | int k=min(64,(int)st.size());
| ^
horses.cpp:160:21: warning: unused variable 'r' [-Wunused-variable]
160 | int l=vt[i],r=vt[i+1]-1;
| ^
horses.cpp:168:19: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
168 | if(q==-1) return res;
| ^~~
horses.cpp:170:21: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
170 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:170:43: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
170 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:170:47: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
170 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:171:9: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
171 | return res;
| ^~~
horses.cpp:169:14: warning: unused variable 'r' [-Wunused-variable]
169 | int l=vt[q],r=vt[q+1]-1;
| ^
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:177:14: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
177 | update2(1,1,n,pos,val);
| ^
horses.cpp:180:20: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
180 | ll res=query2(1,1,n,1,n);
| ^
horses.cpp:180:24: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
180 | ll res=query2(1,1,n,1,n);
| ^
horses.cpp:185:16: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
185 | return res;
| ^~~
horses.cpp:193:12: warning: conversion from 'long long unsigned int' to 'double' may change value [-Wconversion]
193 | if(a>=1e9) break;
| ^
horses.cpp:200:9: warning: conversion from 'long long unsigned int' to 'std::vector<int>::value_type' {aka 'int'} may change value [-Wconversion]
200 | vt.pb(n+1);
| ~^~
horses.cpp:201:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
201 | for(int i=0;i<vt.size()-1;i++){
| ~^~~~~~~~~~~~
horses.cpp:205:23: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
205 | qq=query2(1,1,n,l,n);
| ^
horses.cpp:205:27: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
205 | qq=query2(1,1,n,l,n);
| ^
horses.cpp:206:18: warning: declaration of 'k' shadows a previous local [-Wshadow]
206 | __int128 k=ans*qq;
| ^
horses.cpp:178:6: note: shadowed declaration is here
178 | int k=min(64,(int)st.size());
| ^
horses.cpp:204:21: warning: unused variable 'r' [-Wunused-variable]
204 | int l=vt[i],r=vt[i+1]-1;
| ^
horses.cpp:212:19: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
212 | if(q==-1) return res;
| ^~~
horses.cpp:214:21: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
214 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:214:43: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
214 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:214:47: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
214 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:215:9: warning: conversion from 'long long unsigned int' to 'int' may change value [-Wconversion]
215 | return res;
| ^~~
horses.cpp:213:14: warning: unused variable 'r' [-Wunused-variable]
213 | int l=vt[q],r=vt[q+1]-1;
| ^