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:89:20: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
89 | ll res=query2(1,1,n,1,n);
| ^
horses.cpp:89:24: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
89 | ll res=query2(1,1,n,1,n);
| ^
horses.cpp:96:12: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
96 | if(a>=1e9) break;
| ^
horses.cpp:103:9: warning: conversion from 'long long int' to 'std::vector<int>::value_type' {aka 'int'} may change value [-Wconversion]
103 | vt.pb(n+1);
| ~^~
horses.cpp:104:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
104 | for(int i=0;i<vt.size()-1;i++){
| ~^~~~~~~~~~~~
horses.cpp:107:21: warning: declaration of 'k' shadows a previous local [-Wshadow]
107 | 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:107:38: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
107 | unsigned ll k=ans*query2(1,1,n,l,r);
| ^
horses.cpp:114:17: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
114 | res=(query(1,1,n,1,vt[q])*query2(1,1,n,l,r))%MOD;
| ^
horses.cpp:114:39: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
114 | res=(query(1,1,n,1,vt[q])*query2(1,1,n,l,r))%MOD;
| ^
horses.cpp:115:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
115 | return res;
| ^~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:127:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
127 | 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:140:12: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
140 | if(a>=1e9) break;
| ^
horses.cpp:147:9: warning: conversion from 'long long int' to 'std::vector<int>::value_type' {aka 'int'} may change value [-Wconversion]
147 | vt.pb(n+1);
| ~^~
horses.cpp:148:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
148 | for(int i=0;i<vt.size()-1;i++){
| ~^~~~~~~~~~~~
horses.cpp:151:21: warning: declaration of 'k' shadows a previous local [-Wshadow]
151 | unsigned ll k=ans*query2(1,1,n,l,r);
| ^
horses.cpp:128:6: note: shadowed declaration is here
128 | int k=min(32,(int)st.size());
| ^
horses.cpp:151:38: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
151 | unsigned ll k=ans*query2(1,1,n,l,r);
| ^
horses.cpp:158:17: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
158 | res=(query(1,1,n,1,vt[q])*query2(1,1,n,l,r))%MOD;
| ^
horses.cpp:158:39: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
158 | res=(query(1,1,n,1,vt[q])*query2(1,1,n,l,r))%MOD;
| ^
horses.cpp:159:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
159 | return res;
| ^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:165:14: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
165 | update2(1,1,n,pos,val);
| ^
horses.cpp:171:20: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
171 | ll res=query2(1,1,n,1,n);
| ^
horses.cpp:171:24: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
171 | ll res=query2(1,1,n,1,n);
| ^
horses.cpp:178:12: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
178 | if(a>=1e9) break;
| ^
horses.cpp:185:9: warning: conversion from 'long long int' to 'std::vector<int>::value_type' {aka 'int'} may change value [-Wconversion]
185 | vt.pb(n+1);
| ~^~
horses.cpp:186:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
186 | for(int i=0;i<vt.size()-1;i++){
| ~^~~~~~~~~~~~
horses.cpp:189:21: warning: declaration of 'k' shadows a previous local [-Wshadow]
189 | unsigned ll k=ans*query2(1,1,n,l,r);
| ^
horses.cpp:166:6: note: shadowed declaration is here
166 | int k=min(32,(int)st.size());
| ^
horses.cpp:189:38: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
189 | unsigned ll k=ans*query2(1,1,n,l,r);
| ^
horses.cpp:196:17: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
196 | res=(query(1,1,n,1,vt[q])*query2(1,1,n,l,r))%MOD;
| ^
horses.cpp:196:39: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
196 | res=(query(1,1,n,1,vt[q])*query2(1,1,n,l,r))%MOD;
| ^
horses.cpp:197:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
197 | return res;
| ^~~