0_0_36176496_28963.cpp: In function 'void FFT::DFT(int*, int*)':
0_0_36176496_28963.cpp:14:50: error: cast from 'int*' to 'int' loses precision [-fpermissive]
#define For(i,j,k) for (int i=(int)(j);i<=(int)(k);i++)
^
0_0_36176496_28963.cpp:52:5: note: in expansion of macro 'For'
For(i,0,n-1) p[R[i]]=a[i];
^
0_0_36176496_28963.cpp:53:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for (int d=1;d<n;d<<=1){
^
0_0_36176496_28963.cpp:56:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for (int i=0;i<n;i+=(d<<1))
^
0_0_36176496_28963.cpp:14:50: error: cast from 'int*' to 'int' loses precision [-fpermissive]
#define For(i,j,k) for (int i=(int)(j);i<=(int)(k);i++)
^
0_0_36176496_28963.cpp:66:1: note: in expansion of macro 'For'
For(i,0,n-1) p[i]%=mo;
^
0_0_36176496_28963.cpp:14:50: error: cast from 'int*' to 'int' loses precision [-fpermissive]
#define For(i,j,k) for (int i=(int)(j);i<=(int)(k);i++)
^
0_0_36176496_28963.cpp:69:5: note: in expansion of macro 'For'
For(i,0,n-1) a[i]=p[i]%mo;
^
0_0_36176496_28963.cpp: In function 'std::vector<int> FFT::Minus(std::vector<int>, const std::vector<int>&)':
0_0_36176496_28963.cpp:110:13: error: 'a' was not declared in this scope
int sza=a.size()-1,szb=b.size()-1;
^
0_0_36176496_28963.cpp:112:18: error: 'szb' was not declared in this scope
poly ans(max(sza,szb)+1);
^
0_0_36176496_28963.cpp: In function 'std::vector<int> FFT::Mul(const std::vector<int>&, const std::vector<int>&)':
0_0_36176496_28963.cpp:133:8: error: invalid conversion from 'int' to 'int*' [-fpermissive]
DFT(A,L); DFT(B,L);
^
0_0_36176496_28963.cpp:51:6: note: initializing argument 2 of 'void FFT::DFT(int*, int*)'
void DFT(int *a,int *n){
^
0_0_36176496_28963.cpp:133:18: error: invalid conversion from 'int' to 'int*' [-fpermissive]
DFT(A,L); DFT(B,L);
^
0_0_36176496_28963.cpp:51:6: note: initializing argument 2 of 'void FFT::DFT(int*, int*)'
void DFT(int *a,int *n){
^
0_0_36176496_28963.cpp: In function 'void FFT::Getinv(int*, int*, int)':
0_0_36176496_28963.cpp:147:1: error: expected ',' or ';' before 'Getinv'
Getinv(a,b,nn);
^
0_0_36176496_28963.cpp:151:8: error: invalid conversion from 'int' to 'int*' [-fpermissive]
DFT(A,L); DFT(B,L);
^
0_0_36176496_28963.cpp:51:6: note: initializing argument 2 of 'void FFT::DFT(int*, int*)'
void DFT(int *a,int *n){
^
0_0_36176496_28963.cpp:151:18: error: invalid conversion from 'int' to 'int*' [-fpermissive]
DFT(A,L); DFT(B,L);
^
0_0_36176496_28963.cpp:51:6: note: initializing argument 2 of 'void FFT::DFT(int*, int*)'
void DFT(int *a,int *n){
^
0_0_36176496_28963.cpp: In function 'std::vector<int> FFT::getinv(std::vector<int>, int)':
0_0_36176496_28963.cpp:163:5: error: expected unqualified-id before 'int'
int sz=a.size();
^
0_0_36176496_28963.cpp:164:26: error: 'sz' was not declared in this scope
For(i,0,n-1) b[i]=(i<sz?a[i]:0);
^
0_0_36176496_28963.cpp:173:1: error: expected primary-expression before '}' token
}
^
0_0_36176496_28963.cpp:173:1: error: expected ';' before '}' token
0_0_36176496_28963.cpp: At global scope:
0_0_36176496_28963.cpp:197:13: error: 'mt' was not declared in this scope
int Cipolla(mt x){
^
0_0_36176496_28963.cpp:197:18: error: expected ',' or ';' before '{' token
int Cipolla(mt x){
^
0_0_36176496_28963.cpp:469:1: error: expected '}' at end of input
}
^
|