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:136:20: warning: conversion from 'long long 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 int' to 'int' may change value [-Wconversion]
136 | ll res=query2(1,1,n,1,n);
| ^
horses.cpp:143:12: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
143 | if(a>=1e9) break;
| ^
horses.cpp:150:9: warning: conversion from 'long long int' to 'std::vector<int>::value_type' {aka 'int'} may change value [-Wconversion]
150 | vt.pb(n+1);
| ~^~
horses.cpp:151:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
151 | for(int i=0;i<vt.size()-1;i++){
| ~^~~~~~~~~~~~
horses.cpp:154:21: warning: declaration of 'k' shadows a previous local [-Wshadow]
154 | 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:154:38: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
154 | unsigned ll k=ans*query2(1,1,n,l,n);
| ^
horses.cpp:154:42: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
154 | unsigned ll k=ans*query2(1,1,n,l,n);
| ^
horses.cpp:153:21: warning: unused variable 'r' [-Wunused-variable]
153 | int l=vt[i],r=vt[i+1]-1;
| ^
horses.cpp:161:21: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
161 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:161:43: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
161 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:161:47: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
161 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:162:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
162 | return res;
| ^~~
horses.cpp:160:14: warning: unused variable 'r' [-Wunused-variable]
160 | int l=vt[q],r=vt[q+1]-1;
| ^
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:168:14: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
168 | 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:181:12: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
181 | if(a>=1e9) break;
| ^
horses.cpp:188:9: warning: conversion from 'long long int' to 'std::vector<int>::value_type' {aka 'int'} may change value [-Wconversion]
188 | vt.pb(n+1);
| ~^~
horses.cpp:189:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
189 | for(int i=0;i<vt.size()-1;i++){
| ~^~~~~~~~~~~~
horses.cpp:192:21: warning: declaration of 'k' shadows a previous local [-Wshadow]
192 | unsigned ll k=ans*query2(1,1,n,l,n);
| ^
horses.cpp:169:6: note: shadowed declaration is here
169 | int k=min(32,(int)st.size());
| ^
horses.cpp:192:38: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
192 | unsigned ll k=ans*query2(1,1,n,l,n);
| ^
horses.cpp:192:42: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
192 | unsigned ll k=ans*query2(1,1,n,l,n);
| ^
horses.cpp:191:21: warning: unused variable 'r' [-Wunused-variable]
191 | int l=vt[i],r=vt[i+1]-1;
| ^
horses.cpp:199:21: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
199 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:199:43: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
199 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:199:47: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
199 | res=(1ll*query(1,1,n,1,vt[q])*query2(1,1,n,l,n))%MOD;
| ^
horses.cpp:200:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
200 | return res;
| ^~~
horses.cpp:198:14: warning: unused variable 'r' [-Wunused-variable]
198 | int l=vt[q],r=vt[q+1]-1;
| ^