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_20245642_12801.cpp:24:1: error: 'itn' does not name a type
 itn dp[2001][2001];
 ^
0_0_20245642_12801.cpp: In function 'int main()':
0_0_20245642_12801.cpp:33:13: error: 'dp' was not declared in this scope
      memset(dp,0x3f,sizeof(dp));
             ^
0_0_20245642_12801.cpp:38:37: error: 'val' was not declared in this scope
        dp[i][j] = min(dp[i-2][j-1]+(val[i]-val[i-1])*(val[i]-val[i-1]),dp[i-1][j]);
                                     ^
0_0_20245642_12801.cpp:41:25: error: 'ednl' was not declared in this scope
      cout << dp[n][k] <<ednl;
                         ^


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-11-01 12:31:21, Gzip enabled