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_20965625_27399.cpp: In function 'int dcmp(double, double)':
0_0_20965625_27399.cpp:5:16: error: 'abs' was not declared in this scope
     if (abs(a-b)<EPS) return 0;
                ^
0_0_20965625_27399.cpp: At global scope:
0_0_20965625_27399.cpp:23:1: error: 'priority_queue' does not name a type
 priority_queue<Dat>que;
 ^
0_0_20965625_27399.cpp: In function 'int main()':
0_0_20965625_27399.cpp:30:26: error: 'scanf' was not declared in this scope
     while (~scanf("%d",&n)){
                          ^
0_0_20965625_27399.cpp:31:17: error: 'que' was not declared in this scope
         while (!que.empty()) que.pop();
                 ^
0_0_20965625_27399.cpp:36:23: error: 'sort' was not declared in this scope
         sort(a,a+n,cmp);
                       ^
0_0_20965625_27399.cpp:40:13: error: 'que' was not declared in this scope
             que.push(a[i]);
             ^
0_0_20965625_27399.cpp:61:29: error: 'printf' was not declared in this scope
         printf("%0.2f\n",sum);
                             ^


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-06-17 20:44:35, Gzip enabled