horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:8:5: error: 'h' was not declared in this scope
8 | h *= x[i];
| ^
horses.cpp:6:16: warning: unused variable 'hrspr' [-Wunused-variable]
6 | int ans = 0, hrspr = 1;
| ^~~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:14:17: warning: unused parameter 'pos' [-Wunused-parameter]
14 | int updateX(int pos, int val){return 0;}
| ~~~~^~~
horses.cpp:14:26: warning: unused parameter 'val' [-Wunused-parameter]
14 | int updateX(int pos, int val){return 0;}
| ~~~~^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:15:17: warning: unused parameter 'pos' [-Wunused-parameter]
15 | int updateY(int pos, int val){return 0;}
| ~~~~^~~
horses.cpp:15:26: warning: unused parameter 'val' [-Wunused-parameter]
15 | int updateY(int pos, int val){return 0;}
| ~~~~^~~