horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:38:9: error: 'dp' was not declared in this scope
38 | return dp[n-1][0];
| ^~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:41:17: warning: unused parameter 'pos' [-Wunused-parameter]
41 | int updateX(int pos, int val) {
| ~~~~^~~
horses.cpp:41:26: warning: unused parameter 'val' [-Wunused-parameter]
41 | int updateX(int pos, int val) {
| ~~~~^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:45:17: warning: unused parameter 'pos' [-Wunused-parameter]
45 | int updateY(int pos, int val) {
| ~~~~^~~
horses.cpp:45:26: warning: unused parameter 'val' [-Wunused-parameter]
45 | int updateY(int pos, int val) {
| ~~~~^~~