horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:17:13: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
17 | for(int i=n-1;i>=0;i--)
| ~^~
horses.cpp:27:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
27 | for(int i=0;i<sell.size()/2;i++)
| ~^~~~~~~~~~~~~~
horses.cpp:46:9: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
46 | return ans;
| ^~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:50:17: warning: unused parameter 'pos' [-Wunused-parameter]
50 | int updateX(int pos, int val) {
| ~~~~^~~
horses.cpp:50:26: warning: unused parameter 'val' [-Wunused-parameter]
50 | int updateX(int pos, int val) {
| ~~~~^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:54:17: warning: unused parameter 'pos' [-Wunused-parameter]
54 | int updateY(int pos, int val) {
| ~~~~^~~
horses.cpp:54:26: warning: unused parameter 'val' [-Wunused-parameter]
54 | int updateY(int pos, int val) {
| ~~~~^~~