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_29641222_27124.cpp: In function 'int main()':
0_0_29641222_27124.cpp:19:41: error: lvalue required as unary '&' operand
             scanf("%lf %lf", &a[i].real(), &a[i].imag());
                                         ^
0_0_29641222_27124.cpp:19:55: error: lvalue required as unary '&' operand
             scanf("%lf %lf", &a[i].real(), &a[i].imag());
                                                       ^
0_0_29641222_27124.cpp:20:45: error: lvalue required as unary '&' operand
         scanf("%lf %lf %lf %lf", &b[0].real(), &b[0].imag(), &b[1].real(), &b[1].imag());
                                             ^
0_0_29641222_27124.cpp:20:59: error: lvalue required as unary '&' operand
         scanf("%lf %lf %lf %lf", &b[0].real(), &b[0].imag(), &b[1].real(), &b[1].imag());
                                                           ^
0_0_29641222_27124.cpp:20:73: error: lvalue required as unary '&' operand
         scanf("%lf %lf %lf %lf", &b[0].real(), &b[0].imag(), &b[1].real(), &b[1].imag());
                                                                         ^
0_0_29641222_27124.cpp:20:87: error: lvalue required as unary '&' operand
         scanf("%lf %lf %lf %lf", &b[0].real(), &b[0].imag(), &b[1].real(), &b[1].imag());
                                                                                       ^


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-17 11:56:02, Gzip enabled