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_33775125_6170.cpp: In function 'void gao()':
0_0_33775125_6170.cpp:12:18: error: lvalue required as unary '&' operand
   #define X real()
                  ^
0_0_33775125_6170.cpp:73:32: note: in expansion of macro 'X'
           scanf("%lf%lf",&s[i].X,&s[i].Y);
                                ^
0_0_33775125_6170.cpp:13:18: error: lvalue required as unary '&' operand
   #define Y imag()
                  ^
0_0_33775125_6170.cpp:73:40: note: in expansion of macro 'Y'
           scanf("%lf%lf",&s[i].X,&s[i].Y);
                                        ^
0_0_33775125_6170.cpp:83:22: error: lvalue required as left operand of assignment
               s[i].X = -s[i].X;
                      ^
0_0_33775125_6170.cpp:85:23: error: lvalue required as left operand of assignment
               ts[i].X = -ts[i].X;
                       ^
0_0_33775125_6170.cpp: In function 'int main()':
0_0_33775125_6170.cpp:12:18: error: lvalue required as unary '&' operand
   #define X real()
                  ^
0_0_33775125_6170.cpp:116:36: note: in expansion of macro 'X'
              scanf("%lf%lf", &p[i].X, &p[i].Y);
                                    ^
0_0_33775125_6170.cpp:13:18: error: lvalue required as unary '&' operand
   #define Y imag()
                  ^
0_0_33775125_6170.cpp:116:45: note: in expansion of macro 'Y'
              scanf("%lf%lf", &p[i].X, &p[i].Y);
                                             ^


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-05-17 16:41:54, Gzip enabled