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:21: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
86 | int res=query2(1,1,n,1,n);
| ^
horses.cpp:86:25: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
86 | int res=query2(1,1,n,1,n);
| ^
horses.cpp:89:27: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
89 | ll ans=(query(1,1,n,1,x)*arr[x])%MOD;
| ^
horses.cpp:84:6: warning: unused variable 'k' [-Wunused-variable]
84 | int k=min(32,(int)st.size());
| ^
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:106:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
106 | update(1,1,n,pos,val);
| ^
horses.cpp:109:21: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
109 | int res=query2(1,1,n,1,n);
| ^
horses.cpp:109:25: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
109 | int res=query2(1,1,n,1,n);
| ^
horses.cpp:112:27: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
112 | ll ans=(query(1,1,n,1,x)*query2(1,1,n,x,n))%MOD;
| ^
horses.cpp:112:45: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
112 | ll ans=(query(1,1,n,1,x)*query2(1,1,n,x,n))%MOD;
| ^
horses.cpp:112:49: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
112 | ll ans=(query(1,1,n,1,x)*query2(1,1,n,x,n))%MOD;
| ^
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:122:14: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
122 | update2(1,1,n,pos,val);
| ^
horses.cpp:125:21: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
125 | int res=query2(1,1,n,1,n);
| ^
horses.cpp:125:25: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
125 | int res=query2(1,1,n,1,n);
| ^
horses.cpp:128:27: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
128 | ll ans=(query(1,1,n,1,x)*query2(1,1,n,x,n))%MOD;
| ^
horses.cpp:128:45: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
128 | ll ans=(query(1,1,n,1,x)*query2(1,1,n,x,n))%MOD;
| ^
horses.cpp:128:49: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
128 | ll ans=(query(1,1,n,1,x)*query2(1,1,n,x,n))%MOD;
| ^