horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:25:13: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
25 | for(int i=n-1;i>=0;i--)
| ~^~
horses.cpp:35:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
35 | for(int i=0;i<sell.size()/2;i++)
| ~^~~~~~~~~~~~~~
horses.cpp:54:9: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
54 | return ans;
| ^~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:64:13: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
64 | for(int i=n-1;i>=0;i--)
| ~^~
horses.cpp:74:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
74 | for(int i=0;i<sell.size()/2;i++)
| ~^~~~~~~~~~~~~~
horses.cpp:93:9: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
93 | return ans;
| ^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:101:13: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
101 | for(int i=n-1;i>=0;i--)
| ~^~
horses.cpp:111:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
111 | for(int i=0;i<sell.size()/2;i++)
| ~^~~~~~~~~~~~~~
horses.cpp:130:9: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
130 | return ans;
| ^~~