Problem visitingsingapore
User Tracxr
Submission Time 2023-03-12 12:27:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

visitingsingapore.cpp: In function ‘int main()’:
visitingsingapore.cpp:38:71: error: ‘V’ was not declared in this scope
38 | dp[i][j] = max(dp[i][j], dp[p-1][k-1] + A + (i-q)*B + V[T[k]]);
| ^