horses.cpp: In function 'void build_ms(int, int, int)':
horses.cpp:21:32: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
21 | if (ms[2*idx].first*ms[2*idx+1].first>1e9) ms[idx].first=-1;
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
horses.cpp: In function 'void update_ms(int, int, int, int, ll)':
horses.cpp:38:32: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
38 | if (ms[2*idx].first*ms[2*idx+1].first>1e9) ms[idx].first=-1;
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
horses.cpp: In function 'll query_ms(int, int, int, int, int)':
horses.cpp:45:47: warning: declaration of 'y' shadows a global declaration [-Wshadow]
45 | ll query_ms(int l, int r, int idx, int x, int y) {
| ~~~~^
horses.cpp:10:14: note: shadowed declaration is here
10 | ll x[500001],y[500001];
| ^
horses.cpp:45:40: warning: declaration of 'x' shadows a global declaration [-Wshadow]
45 | ll query_ms(int l, int r, int idx, int x, int y) {
| ~~~~^
horses.cpp:10:4: note: shadowed declaration is here
10 | ll x[500001],y[500001];
| ^
horses.cpp:54:15: warning: conversion from 'll' {aka 'long long int'} to 'double' may change value [-Wconversion]
54 | if (ml*mr>1e9) return -1;
| ~~^~~
horses.cpp: In function 'll query_ms2(int, int, int, int, int)':
horses.cpp:59:48: warning: declaration of 'y' shadows a global declaration [-Wshadow]
59 | ll query_ms2(int l, int r, int idx, int x, int y) {
| ~~~~^
horses.cpp:10:14: note: shadowed declaration is here
10 | ll x[500001],y[500001];
| ^
horses.cpp:59:41: warning: declaration of 'x' shadows a global declaration [-Wshadow]
59 | ll query_ms2(int l, int r, int idx, int x, int y) {
| ~~~~^
horses.cpp:10:4: note: shadowed declaration is here
10 | ll x[500001],y[500001];
| ^
horses.cpp: In function 'void update(int, int, int)':
horses.cpp:83:29: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
83 | s[idx]=check(s[2*idx],s[2*idx+1]);
| ~~~~~~~^
horses.cpp:83:40: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
83 | s[idx]=check(s[2*idx],s[2*idx+1]);
| ~~~~~~~~~^
horses.cpp: In function 'void update2(int, int, int, int, int)':
horses.cpp:87:48: warning: declaration of 'y' shadows a global declaration [-Wshadow]
87 | void update2(int l, int r, int idx, int x, int y) {
| ~~~~^
horses.cpp:10:14: note: shadowed declaration is here
10 | ll x[500001],y[500001];
| ^
horses.cpp:87:41: warning: declaration of 'x' shadows a global declaration [-Wshadow]
87 | void update2(int l, int r, int idx, int x, int y) {
| ~~~~^
horses.cpp:10:4: note: shadowed declaration is here
10 | ll x[500001],y[500001];
| ^
horses.cpp:94:29: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
94 | s[idx]=check(s[2*idx],s[2*idx+1]);
| ~~~~~~~^
horses.cpp:94:40: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
94 | s[idx]=check(s[2*idx],s[2*idx+1]);
| ~~~~~~~~~^
horses.cpp: In function 'void update3(int, int, int, int)':
horses.cpp:98:41: warning: declaration of 'x' shadows a global declaration [-Wshadow]
98 | void update3(int l, int r, int idx, int x) {
| ~~~~^
horses.cpp:10:4: note: shadowed declaration is here
10 | ll x[500001],y[500001];
| ^
horses.cpp:105:29: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
105 | s[idx]=check(s[2*idx],s[2*idx+1]);
| ~~~~~~~^
horses.cpp:105:40: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
105 | s[idx]=check(s[2*idx],s[2*idx+1]);
| ~~~~~~~~~^
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:118:36: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
118 | return (query_ms2(0,n-1,1,0,s[1])*y[s[1]])%mod;
| ~~~^
horses.cpp:118:47: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
118 | return (query_ms2(0,n-1,1,0,s[1])*y[s[1]])%mod;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:128:33: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
128 | return (query_ms2(0,n-1,1,0,s[1])*y[s[1]])%mod;
| ~~~^
horses.cpp:128:44: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
128 | return (query_ms2(0,n-1,1,0,s[1])*y[s[1]])%mod;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:137:33: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
137 | return (query_ms2(0,n-1,1,0,s[1])*y[s[1]])%mod;
| ~~~^
horses.cpp:137:44: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
137 | return (query_ms2(0,n-1,1,0,s[1])*y[s[1]])%mod;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~