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_30295835_30336.cpp:2:17: error: 'cnt' does not name a type
                 cnt=abs(x1-x2)*abs(y1-y2);
                 ^
0_0_30295835_30336.cpp:3:17: error: 'ans' does not name a type
                 ans=max(ans,cnt);
                 ^
0_0_30295835_30336.cpp:4:17: error: 'cnt' does not name a type
                 cnt=abs(X[a]-X[b])*abs(Y[a]-Y[b]);
                 ^
0_0_30295835_30336.cpp:5:17: error: 'ans' does not name a type
                 ans=max(ans,cnt);
                 ^
0_0_30295835_30336.cpp:6:17: error: expected unqualified-id before 'continue'
                 continue;
                 ^
0_0_30295835_30336.cpp:7:13: error: expected declaration before '}' token
             }
             ^


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-07-01 13:29:09, Gzip enabled