0_0_25789611_14098.cpp: In function 'int main()': 0_0_25789611_14098.cpp:46:74: error: 'maxn' was not declared in this scope dp[tt][j] = maxn(dp[tt + 1][j - 1], dp[tt + 1][j], dp[tt + 1][j + 1]) + time[tt][j]; ^