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_39203284_275.cpp: In function 'int main()':
0_0_39203284_275.cpp:12:44: error: expected ';' before 'double'
   12 |         cin>>x1>>y1>>x2>>y2>>x3>>y3>>x4>>y4
      |                                            ^
      |                                            ;
   13 |                 double xs=min(x1,x2),ys=min(y1,y2),xb=max(x1,x2),yb=max(y1,y2);
      |                 ~~~~~~                      
0_0_39203284_275.cpp:15:29: error: 'xs' was not declared in this scope; did you mean 'xs2'?
   15 |             double res=min((xs-xb2)*(ys-yb2),(xs2-xb)*(ys2-yb));
      |                             ^~
      |                             xs2
0_0_39203284_275.cpp:15:38: error: 'ys' was not declared in this scope; did you mean 'ys2'?
   15 |             double res=min((xs-xb2)*(ys-yb2),(xs2-xb)*(ys2-yb));
      |                                      ^~
      |                                      ys2
0_0_39203284_275.cpp:15:51: error: 'xb' was not declared in this scope; did you mean 'xb2'?
   15 |             double res=min((xs-xb2)*(ys-yb2),(xs2-xb)*(ys2-yb));
      |                                                   ^~
      |                                                   xb2
0_0_39203284_275.cpp:15:60: error: 'yb' was not declared in this scope; did you mean 'yb2'?
   15 |             double res=min((xs-xb2)*(ys-yb2),(xs2-xb)*(ys2-yb));
      |                                                            ^~
      |                                                            yb2


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-07 10:03:07, Gzip enabled