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_30104514_28557.cpp: In function 'int cal(int, int)':
0_0_30104514_28557.cpp:18:30: error: 'memset' was not declared in this scope
     memset(f, inf , sizeof(f));
                              ^
0_0_30104514_28557.cpp:20:33: error: 'max' was not declared in this scope
     int V = max(s1[num], s2[num]) +  data * x[num] - y[num];
                                 ^
0_0_30104514_28557.cpp:25:49: error: 'min' was not declared in this scope
             f[j] = min(f[j], f[j - S[i]] + P[i] );
                                                 ^
0_0_30104514_28557.cpp:30:28: error: 'min' was not declared in this scope
         ret = min(ret, f[i]);
                            ^
0_0_30104514_28557.cpp: In function 'int judge(int)':
0_0_30104514_28557.cpp:44:5: error: 'cout' was not declared in this scope
     cout << 1 <<'\n';
     ^
0_0_30104514_28557.cpp: In function 'int main()':
0_0_30104514_28557.cpp:51:30: error: 'scanf' was not declared in this scope
     while(scanf("%d %d",&n,&s) != EOF && n)
                              ^
0_0_30104514_28557.cpp:51:35: error: 'EOF' was not declared in this scope
     while(scanf("%d %d",&n,&s) != EOF && n)
                                   ^
0_0_30104514_28557.cpp:67:9: error: 'cout' was not declared in this scope
         cout << r << '\n';
         ^


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-26 06:47:30, Gzip enabled