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_26161161_13622.cpp: In function 'int main()':
0_0_26161161_13622.cpp:17:9: error: 'i' was not declared in this scope
     for(i=0;i<2001;i++)for(j=0;j<1001;j++)dp[i][j]=Max;
         ^
0_0_26161161_13622.cpp:18:6: error: 'i' was not declared in this scope
  for(i=n-1;i>=0;i--)for(j=0;j<i;j++)if(a[j]>=a[j+1]){a[j]+=a[j+1];a[j+1]=a[j]-a[j+1];a[j]-=a[j+1];};
      ^
0_0_26161161_13622.cpp:19:10: error: 'i' was not declared in this scope
     for (i=1;i<=n;i++)dp[i][0]=0;dp[0][0]=0;
          ^
0_0_26161161_13622.cpp:21:8: error: 'i' was not declared in this scope
    for(i=2;i<=n;i++)for(j=1;j<=i/2;j++)dp[i][j]=f(dp[i-1][j],dp[i-2][j-1]+(a[i]-a[i-1])*(a[i]-a[i-1]));
        ^


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-12-02 03:41:30, Gzip enabled