horses.cpp: In function 'void build_ms(int, int, int)':
horses.cpp:22:32: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
22 | 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:39:32: warning: conversion from 'long long int' to 'double' may change value [-Wconversion]
39 | 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:46:47: warning: declaration of 'y' shadows a global declaration [-Wshadow]
46 | 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:46:40: warning: declaration of 'x' shadows a global declaration [-Wshadow]
46 | 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:55:15: warning: conversion from 'll' {aka 'long long int'} to 'double' may change value [-Wconversion]
55 | if (ml*mr>1e9) return -1;
| ~~^~~
horses.cpp: In function 'll query_ms2(int, int, int, int, int)':
horses.cpp:60:48: warning: declaration of 'y' shadows a global declaration [-Wshadow]
60 | 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:60:41: warning: declaration of 'x' shadows a global declaration [-Wshadow]
60 | 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:85:29: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
85 | s[idx]=check(s[2*idx],s[2*idx+1]);
| ~~~~~~~^
horses.cpp:85:40: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
85 | s[idx]=check(s[2*idx],s[2*idx+1]);
| ~~~~~~~~~^
horses.cpp: In function 'void update2(int, int, int, int, int)':
horses.cpp:89:48: warning: declaration of 'y' shadows a global declaration [-Wshadow]
89 | 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:89:41: warning: declaration of 'x' shadows a global declaration [-Wshadow]
89 | 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:96:29: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
96 | s[idx]=check(s[2*idx],s[2*idx+1]);
| ~~~~~~~^
horses.cpp:96:40: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
96 | s[idx]=check(s[2*idx],s[2*idx+1]);
| ~~~~~~~~~^
horses.cpp: In function 'void update3(int, int, int, int)':
horses.cpp:100:41: warning: declaration of 'x' shadows a global declaration [-Wshadow]
100 | 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:107:29: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
107 | s[idx]=check(s[2*idx],s[2*idx+1]);
| ~~~~~~~^
horses.cpp:107:40: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
107 | s[idx]=check(s[2*idx],s[2*idx+1]);
| ~~~~~~~~~^
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:117:36: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
117 | return (query_ms2(0,n-1,1,0,s[1])*y[s[1]])%mod;
| ~~~^
horses.cpp:117:47: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
117 | return (query_ms2(0,n-1,1,0,s[1])*y[s[1]])%mod;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:126:36: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
126 | return (query_ms2(0,n-1,1,0,s[1])*y[s[1]])%mod;
| ~~~^
horses.cpp:126:47: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
126 | return (query_ms2(0,n-1,1,0,s[1])*y[s[1]])%mod;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:133:36: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
133 | return (query_ms2(0,n-1,1,0,s[1])*y[s[1]])%mod;
| ~~~^
horses.cpp:133:47: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
133 | return (query_ms2(0,n-1,1,0,s[1])*y[s[1]])%mod;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~