horses.cpp: In function 'void build(int, int, int)':
horses.cpp:47:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
47 | int mid = L + R >> 1;
| ~~^~~
horses.cpp: In function 'void update(int, int, int, int)':
horses.cpp:62:14: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
62 | int mid = L + R >> 1;
| ~~^~~
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:73:15: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
73 | build(1, 0, n-1);
| ~^~
horses.cpp:74:17: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
74 | return tree[1].mxmul;
| ~~~~~~~~^~~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:80:16: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
80 | update(1, 0, n-1, pos);
| ~^~
horses.cpp:81:17: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
81 | return tree[1].mxmul;
| ~~~~~~~~^~~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:87:16: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
87 | update(1, 0, n-1, pos);
| ~^~
horses.cpp:88:17: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
88 | return tree[1].mxmul;
| ~~~~~~~~^~~~~