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_27679286_3119.cpp: In function 'void FFT(std::complex<double>*, int)':
0_0_27679286_3119.cpp:18:49: error: lvalue required as left operand of assignment
     complex<double> W=w[l/i*k];if(op<0) W.imag()*=-1;
                                                 ^
0_0_27679286_3119.cpp: In function 'void CDQ_FFT(int*, int*, int, int)':
0_0_27679286_3119.cpp:30:34: error: lvalue required as left operand of assignment
  for(int i=0;i<l;i++) w[i].real()=cos(Pi/l*i),w[i].imag()=sin(Pi/l*i);
                                  ^
0_0_27679286_3119.cpp:30:58: error: lvalue required as left operand of assignment
  for(int i=0;i<l;i++) w[i].real()=cos(Pi/l*i),w[i].imag()=sin(Pi/l*i);
                                                          ^
0_0_27679286_3119.cpp:31:70: error: lvalue required as left operand of assignment
  for(int i=0;i<l;i++) A[i].real()=A[i].imag()=B[i].real()=B[i].imag()=0;
                                                                      ^
0_0_27679286_3119.cpp:32:39: error: lvalue required as left operand of assignment
  for(int i=L;i<=mid;i++) A[i-L].real()=b[i];
                                       ^
0_0_27679286_3119.cpp:33:37: error: lvalue required as left operand of assignment
  for(int i=0;i<=R-L;i++) B[i].real()=a[i];
                                     ^


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 01:34:10, Gzip enabled