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_34384273_19568.cpp: In function 'double Max(double, double, double)':
0_0_34384273_19568.cpp:17:23: error: 'max' was not declared in this scope
     return max(max(a,b),c);
                       ^
0_0_34384273_19568.cpp:17:26: error: 'max' was not declared in this scope
     return max(max(a,b),c);
                          ^
0_0_34384273_19568.cpp:17:26: error: redeclaration of '<typeprefixerror>max'
0_0_34384273_19568.cpp:17:23: note: previous declaration '<typeprefixerror>max'
     return max(max(a,b),c);
                       ^
0_0_34384273_19568.cpp: In function 'double Min(double, double, double)':
0_0_34384273_19568.cpp:21:23: error: 'min' was not declared in this scope
     return min(min(a,b),c);
                       ^
0_0_34384273_19568.cpp:21:26: error: 'min' was not declared in this scope
     return min(min(a,b),c);
                          ^
0_0_34384273_19568.cpp:21:26: error: redeclaration of '<typeprefixerror>min'
0_0_34384273_19568.cpp:21:23: note: previous declaration '<typeprefixerror>min'
     return min(min(a,b),c);
                       ^
0_0_34384273_19568.cpp: In function 'int main()':
0_0_34384273_19568.cpp:27:25: error: 'scanf' was not declared in this scope
     while(scanf("%lf",&n)!=EOF)
                         ^
0_0_34384273_19568.cpp:27:28: error: 'EOF' was not declared in this scope
     while(scanf("%lf",&n)!=EOF)
                            ^
0_0_34384273_19568.cpp:57:40: error: 'printf' was not declared in this scope
         printf("%.3lf\n",100.0*ans/maxn);
                                        ^


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-25 14:44:54, Gzip enabled