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_21797270_509.cpp: In function 'int main()':
0_0_21797270_509.cpp:17:22: error: 'scanf' was not declared in this scope
     scanf("%d",&cases);
                      ^
0_0_21797270_509.cpp:25:41: error: 'PI' was not declared in this scope
                 if(P[i].y>0) P[i].angle=PI/2.0;
                                         ^
0_0_21797270_509.cpp:26:34: error: 'PI' was not declared in this scope
                 else P[i].angle=-PI/2.0;
                                  ^
0_0_21797270_509.cpp:28:51: error: 'atan' was not declared in this scope
             else P[i].angle=atan(P[i].y*1.0/P[i].x);
                                                   ^
0_0_21797270_509.cpp:31:23: error: 'sort' was not declared in this scope
         sort(P,P+n,cmp);
                       ^
0_0_21797270_509.cpp:63:34: error: 'max' was not declared in this scope
             ans=max(ans,lsum*rsum);
                                  ^
0_0_21797270_509.cpp:65:9: error: 'cout' was not declared in this scope
         cout<<ans<<endl;
         ^
0_0_21797270_509.cpp:65:20: error: 'endl' was not declared in this scope
         cout<<ans<<endl;
                    ^


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 16:05:02, Gzip enabled