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_22818468_15814.cpp: In function 'int main()':
0_0_22818468_15814.cpp:12:13: error: 'dp' was not declared in this scope
             dp[i][0] = 0;
             ^
0_0_22818468_15814.cpp:14:28: error: 'INF' was not declared in this scope
                 dp[i][j] = INF;
                            ^
0_0_22818468_15814.cpp:19:17: error: 'dp' was not declared in this scope
                 dp[i][j] = min(dp[i - 1][j], dp[i - 2][j - 1] + (a[i] - a[i - 1]) * (a[i] - a[i - 1]));
                 ^
0_0_22818468_15814.cpp:22:24: error: 'dp' was not declared in this scope
         printf("%d\n", dp[n][k]);
                        ^


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 18:44:32, Gzip enabled