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_37815431_12002.cpp: In function 'void solve()':
0_0_37815431_12002.cpp:22:13: error: missing template arguments before 'a1'
     complex a1 = a[4];
             ^
0_0_37815431_12002.cpp:23:13: error: missing template arguments before 'a2'
     complex a2 = a[2];
             ^
0_0_37815431_12002.cpp:24:13: error: missing template arguments before 'b1'
     complex b1 = b[4];
             ^
0_0_37815431_12002.cpp:25:13: error: missing template arguments before 'b2'
     complex b2 = b[2];
             ^
0_0_37815431_12002.cpp:26:13: error: missing template arguments before 't'
     complex t = (a1*b2-b1*a2)/(a1-a2);
             ^
0_0_37815431_12002.cpp:27:13: error: missing template arguments before 'r'
     complex r = (b1-b2)/(a1-a2);
             ^
0_0_37815431_12002.cpp:28:13: error: missing template arguments before 'x'
     complex x = t/(complex(1.0,0.0)-r);
             ^
0_0_37815431_12002.cpp:29:44: error: request for member 'real' in 'x', which is of non-class type 'long long int'
     cout << fixed << setprecision(10) << x.real() << " " << x.imag() << endl;
                                            ^
0_0_37815431_12002.cpp:29:63: error: request for member 'imag' in 'x', which is of non-class type 'long long int'
     cout << fixed << setprecision(10) << x.real() << " " << x.imag() << 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-10-07 01:34:34, Gzip enabled