horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:27:13: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
27 | for(int i=n-1;i>=0;i--)
| ~^~
horses.cpp:29:27: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
29 | if(sell.empty() || !mod && y[sell[sell.size()-1]]*curr < y[i])
horses.cpp:43:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
43 | for(int i=0;i<sell.size()/2;i++)
| ~^~~~~~~~~~~~~~
horses.cpp:64:9: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
64 | return ans;
| ^~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:75:13: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
75 | for(int i=n-1;i>=0;i--)
| ~^~
horses.cpp:77:27: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
77 | if(sell.empty() || !mod && y[sell[sell.size()-1]]*curr < y[i])
horses.cpp:91:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
91 | for(int i=0;i<sell.size()/2;i++)
| ~^~~~~~~~~~~~~~
horses.cpp:112:9: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
112 | return ans;
| ^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:121:13: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
121 | for(int i=n-1;i>=0;i--)
| ~^~
horses.cpp:123:27: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
123 | if(sell.empty() || !mod && y[sell[sell.size()-1]]*curr < y[i])
horses.cpp:137:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
137 | for(int i=0;i<sell.size()/2;i++)
| ~^~~~~~~~~~~~~~
horses.cpp:158:9: warning: conversion from 'll' {aka 'long long int'} to 'int' may change value [-Wconversion]
158 | return ans;
| ^~~