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_35777357_32295.cpp: In function 'void fft(complex_*, int)':
0_0_35777357_32295.cpp:22:17: error: missing template arguments before 'Wn'
         complex Wn( cos(Pi/mid) , type*sin(Pi/mid) ); //单位根 
                 ^
0_0_35777357_32295.cpp:25:21: error: missing template arguments before 'w'
             complex w(1,0);//幂 
                     ^
0_0_35777357_32295.cpp:26:35: error: 'w' was not declared in this scope
             for(int k=0;k<mid;k++,w=w*Wn)//枚举左半部分 
                                   ^
0_0_35777357_32295.cpp:26:39: error: 'Wn' was not declared in this scope
             for(int k=0;k<mid;k++,w=w*Wn)//枚举左半部分 
                                       ^
0_0_35777357_32295.cpp:28:26: error: missing template arguments before 'x'
                  complex x=A[j+k],y=w*A[j+mid+k];//蝴蝶效应 
                          ^
0_0_35777357_32295.cpp:29:24: error: 'x' was not declared in this scope
                 A[j+k]=x+y;
                        ^
0_0_35777357_32295.cpp:29:26: error: 'y' was not declared in this scope
                 A[j+k]=x+y;
                          ^
0_0_35777357_32295.cpp: In function 'int main()':
0_0_35777357_32295.cpp:54:10: error: 'ans' was not declared in this scope
   memset(ans,0,sizeof(ans));
          ^
0_0_35777357_32295.cpp:55:40: error: 'struct complex_' has no member named 'real'
   for(int i=0;i<=m;i++)ans[i]=int(a[i].real()/n+0.5);
                                        ^


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-26 03:40:44, Gzip enabled