horses.cpp: In function 'long int update(int, int*, int*, int, int)':
horses.cpp:14:30: warning: unused parameter 'X' [-Wunused-parameter]
long update(int horses,int X[],int Y[],int pos,int N)
^
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:52:49: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
horses_cash[CASH] += update(horses_cash[HORSE],X,Y,i,N);
~~~~~~~~~~~~~~~~~^
horses.cpp:55:22: warning: statement has no effect [-Wunused-value]
horses_cash[HORSE];
~~~~~~~~~~~~~~~~~^
horses.cpp:59:25: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
return horses_cash[CASH];
~~~~~~~~~~~~~~~~^
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:73:49: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
horses_cash[CASH] += update(horses_cash[HORSE],actual_X,actual_Y,i,actual_N);
~~~~~~~~~~~~~~~~~^
horses.cpp:76:22: warning: statement has no effect [-Wunused-value]
horses_cash[HORSE];
~~~~~~~~~~~~~~~~~^
horses.cpp:80:25: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
return horses_cash[CASH];
~~~~~~~~~~~~~~~~^
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:94:49: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
horses_cash[CASH] += update(horses_cash[HORSE],actual_X,actual_Y,i,actual_N);
~~~~~~~~~~~~~~~~~^
horses.cpp:97:22: warning: statement has no effect [-Wunused-value]
horses_cash[HORSE];
~~~~~~~~~~~~~~~~~^
horses.cpp:101:25: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
return horses_cash[CASH];
~~~~~~~~~~~~~~~~^