F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_40000574_14635.cpp:11:5: error: expected unqualified-id before '=' token
   11 | int =dp[M][M];
      |     ^
0_0_40000574_14635.cpp: In function 'void solve()':
0_0_40000574_14635.cpp:30:31: error: 'dp' was not declared in this scope; did you mean 'mp'?
   30 |         for (int i=0;i<=x;i++)dp[i][0]=0;
      |                               ^~
      |                               mp
0_0_40000574_14635.cpp:31:31: error: 'dp' was not declared in this scope; did you mean 'mp'?
   31 |         for (int i=0;i<=y;i++)dp[0][i]=0;
      |                               ^~
      |                               mp
0_0_40000574_14635.cpp:36:40: error: 'dp' was not declared in this scope; did you mean 'mp'?
   36 |                         if (a[i]==b[j])dp[i][j]=dp[i-1][j-1]+mp[b[i]];
      |                                        ^~
      |                                        mp
0_0_40000574_14635.cpp:37:30: error: 'dp' was not declared in this scope; did you mean 'mp'?
   37 |                         else dp[i][j]=max(dp[i-1][j],dp[i][j-1]);
      |                              ^~
      |                              mp
0_0_40000574_14635.cpp:40:16: error: 'dp' was not declared in this scope; did you mean 'mp'?
   40 |         cout <<dp[x][y]<<"\n";
      |                ^~
      |                mp


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-04-15 16:55:59, Gzip enabled