Problem visitingsingapore
User bribritt
Submission Time 2023-08-11 15:29:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

visitingsingapore.cpp: In function ‘int32_t main()’:
visitingsingapore.cpp:14:3: error: expected ‘}’ before ‘else’
14 | else dp[i][j][1]=-121020101210;
| ^~~~
visitingsingapore.cpp:13:18: note: to match this ‘{’
13 | if(t[j]==s[i]) {dp[i][j][1]=max(dp[i-1][j-1][0]+2*a+(i+j-1)*b,dp[i-1][j-1][1])+v[s[i]]; ans=max(ans,dp[i][j][1]);
| ^