horses.cpp: In function 'int acha()':
horses.cpp:11:47: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
11 | return ((long long) y[seg[1]] * multe[1]) % MOD;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
horses.cpp: In function 'void build(int, int, int)':
horses.cpp:37:31: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
37 | int md = mult(mult(multe[d], multd[e]), y[seg[d]]);
| ~~~~~~~^
horses.cpp:37:41: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
37 | int md = mult(mult(multe[d], multd[e]), y[seg[d]]);
| ~~~~~~~^
horses.cpp:42:39: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
42 | if(mult(multe[e], mult(multd[e], multe[d])) == MOD) ide[cur] = 1;
| ~~~~~~~^
horses.cpp:42:49: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
42 | if(mult(multe[e], mult(multd[e], multe[d])) == MOD) ide[cur] = 1;
| ~~~~~~~^
horses.cpp:42:24: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
42 | if(mult(multe[e], mult(multd[e], multe[d])) == MOD) ide[cur] = 1;
| ~~~~~~~^
horses.cpp:49:34: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
49 | int teste = (mult(multd[d], multe[d]), multd[e]);
| ~~~~~~~^
horses.cpp:49:44: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
49 | int teste = (mult(multd[d], multe[d]), multd[e]);
| ~~~~~~~^
horses.cpp:49:46: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
49 | int teste = (mult(multd[d], multe[d]), multd[e]);
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
horses.cpp:28:9: warning: unused variable 'ye' [-Wunused-variable]
28 | int ye = y[seg[e]], yd = y[seg[d]];
| ^~
horses.cpp:28:25: warning: unused variable 'yd' [-Wunused-variable]
28 | int ye = y[seg[e]], yd = y[seg[d]];
| ^~
horses.cpp: In function 'void update(int, int, int, int)':
horses.cpp:78:31: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
78 | int md = mult(mult(multe[d], multd[e]), y[seg[d]]);
| ~~~~~~~^
horses.cpp:78:41: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
78 | int md = mult(mult(multe[d], multd[e]), y[seg[d]]);
| ~~~~~~~^
horses.cpp:83:39: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
83 | if(mult(multe[e], mult(multd[e], multe[d])) == MOD) ide[cur] = 1;
| ~~~~~~~^
horses.cpp:83:49: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
83 | if(mult(multe[e], mult(multd[e], multe[d])) == MOD) ide[cur] = 1;
| ~~~~~~~^
horses.cpp:83:24: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
83 | if(mult(multe[e], mult(multd[e], multe[d])) == MOD) ide[cur] = 1;
| ~~~~~~~^
horses.cpp:90:34: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
90 | int teste = (mult(multd[d], multe[d]), multd[e]);
| ~~~~~~~^
horses.cpp:90:44: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
90 | int teste = (mult(multd[d], multe[d]), multd[e]);
| ~~~~~~~^
horses.cpp:90:46: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
90 | int teste = (mult(multd[d], multe[d]), multd[e]);
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~