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_17303141_29017.cpp: In function 'int main()':
0_0_17303141_29017.cpp:16:6: error: 'dp' was not declared in this scope
      dp[i][j] = 1;
      ^
0_0_17303141_29017.cpp:20:32: error: 'str' was not declared in this scope
     while(t1 >= 0 && t2 < n && str[t1][j] == str[i][t2]) {
                                ^
0_0_17303141_29017.cpp:25:14: error: 'dp' was not declared in this scope
     if(t1 >= dp[i - 1][j + 1] + 1) dp[i][j] = dp[i - 1][j + 1] + 1;
              ^
0_0_17303141_29017.cpp:27:20: error: 'dp' was not declared in this scope
     ans = max(ans, dp[i][j]);
                    ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-07-01 11:05:23, Gzip enabled