horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:66:13: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
66 | build(1,0,n-1);
| ~^~
horses.cpp:70:13: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
70 | for(int i=n-1;i>=0;i--)
| ~^~
horses.cpp:86:20: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
86 | return (query(1,0,sell,0,n-1)*y[sell])%MOD;
| ^~~~
horses.cpp:86:28: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
86 | return (query(1,0,sell,0,n-1)*y[sell])%MOD;
| ~^~
horses.cpp:86:40: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
86 | return (query(1,0,sell,0,n-1)*y[sell])%MOD;
| ^
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:92:14: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
92 | update(1,0,n-1,pos);
| ~^~
horses.cpp:95:13: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
95 | for(int i=n-1;i>=0;i--)
| ~^~
horses.cpp:109:20: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
109 | return (query(1,0,sell,0,n-1)*y[sell])%MOD;
| ^~~~
horses.cpp:109:28: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
109 | return (query(1,0,sell,0,n-1)*y[sell])%MOD;
| ~^~
horses.cpp:109:40: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
109 | return (query(1,0,sell,0,n-1)*y[sell])%MOD;
| ^
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:118:13: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
118 | for(int i=n-1;i>=0;i--)
| ~^~
horses.cpp:132:20: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
132 | return (query(1,0,sell,0,n-1)*y[sell])%MOD;
| ^~~~
horses.cpp:132:28: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
132 | return (query(1,0,sell,0,n-1)*y[sell])%MOD;
| ~^~
horses.cpp:132:40: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
132 | return (query(1,0,sell,0,n-1)*y[sell])%MOD;
| ^