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_36176486_14762.cpp: In function 'void FFT::DFT(int*, int*)':
0_0_36176486_14762.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_36176486_14762.cpp:52:5: note: in expansion of macro 'For'
     For(i,0,n-1) p[R[i]]=a[i];
     ^
0_0_36176486_14762.cpp:53:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
     for (int d=1;d<n;d<<=1){
                    ^
0_0_36176486_14762.cpp:56:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
         for (int i=0;i<n;i+=(d<<1))
                        ^
0_0_36176486_14762.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_36176486_14762.cpp:66:1: note: in expansion of macro 'For'
 For(i,0,n-1) p[i]%=mo;
 ^
0_0_36176486_14762.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_36176486_14762.cpp:69:5: note: in expansion of macro 'For'
     For(i,0,n-1) a[i]=p[i]%mo;
     ^
0_0_36176486_14762.cpp: In function 'void FFT::IDFT(int*, int)':
0_0_36176486_14762.cpp:91:32: error: 'no' was not declared in this scope
     For(i,0,n-1) a[i]=p[i]*val%no;
                                ^
0_0_36176486_14762.cpp: In function 'std::vector<int> FFT::Minus(std::vector<int>, const std::vector<int>&)':
0_0_36176486_14762.cpp:110:13: error: 'a' was not declared in this scope
     int sza=a.size()-1,szb=b.size()-1;
             ^
0_0_36176486_14762.cpp:112:18: error: 'szb' was not declared in this scope
 poly ans(max(sza,szb)+1);
                  ^
0_0_36176486_14762.cpp: At global scope:
0_0_36176486_14762.cpp:120:24: error: 'consr' has not been declared
 poly Mul(const poly &a,consr poly &b){
                        ^
0_0_36176486_14762.cpp:120:35: error: expected unqualified-id before '&' token
 poly Mul(const poly &a,consr poly &b){
                                   ^
0_0_36176486_14762.cpp:120:35: error: expected ')' before '&' token
0_0_36176486_14762.cpp:120:36: error: expected initializer before 'b'
 poly Mul(const poly &a,consr poly &b){
                                    ^
0_0_36176486_14762.cpp:469:1: error: expected '}' at end of input
 }
 ^


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-23 04:47:06, Gzip enabled