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_21656058_24804.cpp:3:8: error: 'maxn' does not name a type
 const  maxn = 5*1e3+10;
        ^
0_0_21656058_24804.cpp:4:10: error: 'maxn' was not declared in this scope
 short dp[maxn][maxn] , n , len;
          ^
0_0_21656058_24804.cpp:4:16: error: 'maxn' was not declared in this scope
 short dp[maxn][maxn] , n , len;
                ^
0_0_21656058_24804.cpp:5:8: error: 'maxn' was not declared in this scope
 char s[maxn];
        ^
0_0_21656058_24804.cpp: In function 'bool is_ok(int)':
0_0_21656058_24804.cpp:27:16: error: 'dp' was not declared in this scope
             if(dp[i][k+mid-1] - dp[j+1][k-1] <= n)
                ^
0_0_21656058_24804.cpp: In function 'int main()':
0_0_21656058_24804.cpp:48:22: error: 's' was not declared in this scope
         scanf(" %s", s);
                      ^
0_0_21656058_24804.cpp:53:13: error: 'dp' was not declared in this scope
             dp[i][i] = 0;
             ^
0_0_21656058_24804.cpp:62:17: error: 'dp' was not declared in this scope
                 dp[i][j] = dp[i+1][j-1] + abs(s[i]-s[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-03 09:51:39, Gzip enabled