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:82:29: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
82 | s[idx]=check(s[2*idx],s[2*idx+1]);
| ~~~~~~~^
horses.cpp:82:40: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
82 | s[idx]=check(s[2*idx],s[2*idx+1]);
| ~~~~~~~~~^
horses.cpp: In function 'void update2(int, int, int, int, int)':
horses.cpp:86:48: warning: declaration of 'y' shadows a global declaration [-Wshadow]
86 | 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:86:41: warning: declaration of 'x' shadows a global declaration [-Wshadow]
86 | 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:93:29: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
93 | s[idx]=check(s[2*idx],s[2*idx+1]);
| ~~~~~~~^
horses.cpp:93:40: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
93 | s[idx]=check(s[2*idx],s[2*idx+1]);
| ~~~~~~~~~^
horses.cpp: In function 'void update3(int, int, int, int)':
horses.cpp:97:41: warning: declaration of 'x' shadows a global declaration [-Wshadow]
97 | 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:104:29: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
104 | s[idx]=check(s[2*idx],s[2*idx+1]);
| ~~~~~~~^
horses.cpp:104:40: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
104 | s[idx]=check(s[2*idx],s[2*idx+1]);
| ~~~~~~~~~^
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:115:36: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
115 | return (query_ms2(0,n-1,1,0,s[1])*y[s[1]])%mod;
| ~~~^
horses.cpp:115:47: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
115 | return (query_ms2(0,n-1,1,0,s[1])*y[s[1]])%mod;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:123:33: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
123 | return (query_ms2(0,n-1,1,0,s[1])*y[s[1]])%mod;
| ~~~^
horses.cpp:123:44: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
123 | return (query_ms2(0,n-1,1,0,s[1])*y[s[1]])%mod;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:130:33: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
130 | return (query_ms2(0,n-1,1,0,s[1])*y[s[1]])%mod;
| ~~~^
horses.cpp:130:44: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
130 | return (query_ms2(0,n-1,1,0,s[1])*y[s[1]])%mod;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~