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)*query2(1,1,n,x,n))%MOD;
| ^
horses.cpp:89:45: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
89 | ll ans=(query(1,1,n,1,x)*query2(1,1,n,x,n))%MOD;
| ^
horses.cpp:89:49: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
89 | ll ans=(query(1,1,n,1,x)*query2(1,1,n,x,n))%MOD;
| ^
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:105:13: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
105 | update(1,1,n,pos,val);
| ^
horses.cpp:108:21: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
108 | int res=query2(1,1,n,1,n);
| ^
horses.cpp:108:25: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
108 | int res=query2(1,1,n,1,n);
| ^
horses.cpp:111:27: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
111 | ll ans=(query(1,1,n,1,x)*query2(1,1,n,x,n))%MOD;
| ^
horses.cpp:111:45: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
111 | ll ans=(query(1,1,n,1,x)*query2(1,1,n,x,n))%MOD;
| ^
horses.cpp:111:49: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
111 | 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:121:14: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
121 | update2(1,1,n,pos,val);
| ^
horses.cpp:124:21: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
124 | int res=query2(1,1,n,1,n);
| ^
horses.cpp:124:25: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
124 | int res=query2(1,1,n,1,n);
| ^
horses.cpp:127:27: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
127 | ll ans=(query(1,1,n,1,x)*query2(1,1,n,x,n))%MOD;
| ^
horses.cpp:127:45: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
127 | ll ans=(query(1,1,n,1,x)*query2(1,1,n,x,n))%MOD;
| ^
horses.cpp:127:49: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
127 | ll ans=(query(1,1,n,1,x)*query2(1,1,n,x,n))%MOD;
| ^