horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:52:16: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
52 | return seg[1].maxval;
| ~~~~~~~^~~~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:57:25: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
57 | update(1,pos,0,x.size()-1);
| ~~~~~~~~^~
horses.cpp:58:16: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
58 | return seg[1].maxval;
| ~~~~~~~^~~~~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:63:25: warning: conversion from 'std::vector<int>::size_type' {aka 'long unsigned int'} to 'int' may change value [-Wconversion]
63 | update(1,pos,0,x.size()-1);
| ~~~~~~~~^~
horses.cpp:64:16: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
64 | return seg[1].maxval;
| ~~~~~~~^~~~~~