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);
^
|