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_26789462_32197.cpp: In function 'int main()':
0_0_26789462_32197.cpp:7:29: error: 'scanf' was not declared in this scope
     while(scanf("%d%d",&n,&k)==2)
                             ^
0_0_26789462_32197.cpp:17:58: error: 'abs' was not declared in this scope
                 dp[i][j]=dp[i-1][0]+abs(a[i][j]-a[i-1][0]);
                                                          ^
0_0_26789462_32197.cpp:19:74: error: 'min' was not declared in this scope
                   dp[i][j]=min(dp[i][j],dp[i-1][x]+abs(a[i][j]-a[i-1][x]));
                                                                          ^
0_0_26789462_32197.cpp:23:51: error: 'min' was not declared in this scope
         for(int i=1;i<k;i++)ans=min(ans,dp[n-1][i]);
                                                   ^
0_0_26789462_32197.cpp:24:26: error: 'printf' was not declared in this scope
         printf("%d\n",ans);
                          ^


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-10-06 01:42:40, Gzip enabled