horses.cpp: In function 'void update_ms(int, int, int, int, ll)':
horses.cpp:12:43: warning: declaration of 'x' shadows a global declaration [-Wshadow]
12 | void update_ms(int l, int r, int idx, int x, ll val) {
| ~~~~^
horses.cpp:10:4: note: shadowed declaration is here
10 | ll x[500001],y[500001];
| ^
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 'll query_ms(int, int, int, int, int)':
horses.cpp:29:47: warning: declaration of 'y' shadows a global declaration [-Wshadow]
29 | 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:29:40: warning: declaration of 'x' shadows a global declaration [-Wshadow]
29 | 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:38:15: warning: conversion from 'll' {aka 'long long int'} to 'double' may change value [-Wconversion]
38 | if (ml*mr>1e9) return -1;
| ~~^~~
horses.cpp: In function 'll query_ms2(int, int, int, int, int)':
horses.cpp:43:48: warning: declaration of 'y' shadows a global declaration [-Wshadow]
43 | 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:43:41: warning: declaration of 'x' shadows a global declaration [-Wshadow]
43 | 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:66:29: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
66 | s[idx]=check(s[2*idx],s[2*idx+1]);
| ~~~~~~~^
horses.cpp:66:40: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
66 | s[idx]=check(s[2*idx],s[2*idx+1]);
| ~~~~~~~~~^
horses.cpp: In function 'void update2(int, int, int, int, int)':
horses.cpp:70:48: warning: declaration of 'y' shadows a global declaration [-Wshadow]
70 | 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:70:41: warning: declaration of 'x' shadows a global declaration [-Wshadow]
70 | 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:77:29: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
77 | s[idx]=check(s[2*idx],s[2*idx+1]);
| ~~~~~~~^
horses.cpp:77:40: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
77 | s[idx]=check(s[2*idx],s[2*idx+1]);
| ~~~~~~~~~^
horses.cpp: In function 'void update3(int, int, int, int)':
horses.cpp:81:41: warning: declaration of 'x' shadows a global declaration [-Wshadow]
81 | 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:88:29: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
88 | s[idx]=check(s[2*idx],s[2*idx+1]);
| ~~~~~~~^
horses.cpp:88:40: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
88 | s[idx]=check(s[2*idx],s[2*idx+1]);
| ~~~~~~~~~^
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:97:36: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
97 | return (query_ms2(0,n-1,1,0,s[1])*y[s[1]])%mod;
| ~~~^
horses.cpp:97:47: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
97 | return (query_ms2(0,n-1,1,0,s[1])*y[s[1]])%mod;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:105:33: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
105 | return (query_ms2(0,n-1,1,0,s[1])*y[s[1]])%mod;
| ~~~^
horses.cpp:105:44: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
105 | return (query_ms2(0,n-1,1,0,s[1])*y[s[1]])%mod;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:112:33: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
112 | return (query_ms2(0,n-1,1,0,s[1])*y[s[1]])%mod;
| ~~~^
horses.cpp:112:44: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
112 | return (query_ms2(0,n-1,1,0,s[1])*y[s[1]])%mod;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~