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_30870730_7435.cpp: In function 'int main()':
0_0_30870730_7435.cpp:14:8: error: 'cin' was not declared in this scope
  while(cin>>T){
        ^
0_0_30870730_7435.cpp:17:21: error: 'sort' was not declared in this scope
   sort(s+1,s+T+1,cmp); 
                     ^
0_0_30870730_7435.cpp:25:44: error: 'min' was not declared in this scope
     dp[i][i]=min(dp[i][i],dp[i-1][j]+s[i].c);
                                            ^
0_0_30870730_7435.cpp:31:24: error: 'min' was not declared in this scope
    ans=min(ans,dp[T][i]);
                        ^
0_0_30870730_7435.cpp:32:24: error: 'printf' was not declared in this scope
   printf("%I64d\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-12-05 00:06:37, Gzip enabled