horses.cpp:7:15: error: array bound is not an integer constant before ']' token
7 | int memo[MAX_N];
| ^
horses.cpp: In function 'int init(int, int*, int*)':
horses.cpp:17:9: warning: conversion from 'long long int' to 'int' may change value [-Wconversion]
17 | return max_profit;
| ^~~~~~~~~~
horses.cpp: In function 'int updateX(int, int)':
horses.cpp:20:17: warning: unused parameter 'pos' [-Wunused-parameter]
20 | int updateX(int pos, int val) {
| ~~~~^~~
horses.cpp:20:26: warning: unused parameter 'val' [-Wunused-parameter]
20 | int updateX(int pos, int val) {
| ~~~~^~~
horses.cpp: In function 'int updateY(int, int)':
horses.cpp:24:17: warning: unused parameter 'pos' [-Wunused-parameter]
24 | int updateY(int pos, int val) {
| ~~~~^~~
horses.cpp:24:26: warning: unused parameter 'val' [-Wunused-parameter]
24 | int updateY(int pos, int val) {
| ~~~~^~~