horses.cpp: In function 'void init(int, int*, int*)':
horses.cpp:29:13: error: return-statement with a value, in function returning 'void' [-fpermissive]
29 | return ans;
| ^~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:32:18: warning: unused parameter 'pos' [-Wunused-parameter]
32 | int updateX(int pos,int val)
| ~~~~^~~
horses.cpp:32:26: warning: unused parameter 'val' [-Wunused-parameter]
32 | int updateX(int pos,int val)
| ~~~~^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:36:18: warning: unused parameter 'pos' [-Wunused-parameter]
36 | int updateY(int pos,int val)
| ~~~~^~~
horses.cpp:36:26: warning: unused parameter 'val' [-Wunused-parameter]
36 | int updateY(int pos,int val)
| ~~~~^~~