horses.cpp: In function 'long long int updateX(int, int)':
horses.cpp:31:23: warning: unused parameter 'pos' [-Wunused-parameter]
31 | long long updateX(int pos,int val)
| ~~~~^~~
horses.cpp:31:31: warning: unused parameter 'val' [-Wunused-parameter]
31 | long long updateX(int pos,int val)
| ~~~~^~~
horses.cpp: In function 'long long int updateY(int, int)':
horses.cpp:36:23: warning: unused parameter 'pos' [-Wunused-parameter]
36 | long long updateY(int pos,int val)
| ~~~~^~~
horses.cpp:36:31: warning: unused parameter 'val' [-Wunused-parameter]
36 | long long updateY(int pos,int val)
| ~~~~^~~
horses.cpp: In function 'long long int init(int, int*, int*)':
horses.cpp:28:12: warning: 'res' may be used uninitialized in this function [-Wmaybe-uninitialized]
28 | return res;
| ^~~