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_28974597_7492.cpp:54:9: error: 'uint' was not declared in this scope
  vector<uint> mul(vector<uint> a,vector<uint> b, bool fg=0){
         ^
0_0_28974597_7492.cpp:54:13: error: template argument 1 is invalid
  vector<uint> mul(vector<uint> a,vector<uint> b, bool fg=0){
             ^
0_0_28974597_7492.cpp:54:13: error: template argument 2 is invalid
0_0_28974597_7492.cpp:54:26: error: 'uint' was not declared in this scope
  vector<uint> mul(vector<uint> a,vector<uint> b, bool fg=0){
                          ^
0_0_28974597_7492.cpp:54:30: error: template argument 1 is invalid
  vector<uint> mul(vector<uint> a,vector<uint> b, bool fg=0){
                              ^
0_0_28974597_7492.cpp:54:30: error: template argument 2 is invalid
0_0_28974597_7492.cpp:54:41: error: 'uint' was not declared in this scope
  vector<uint> mul(vector<uint> a,vector<uint> b, bool fg=0){
                                         ^
0_0_28974597_7492.cpp:54:45: error: template argument 1 is invalid
  vector<uint> mul(vector<uint> a,vector<uint> b, bool fg=0){
                                             ^
0_0_28974597_7492.cpp:54:45: error: template argument 2 is invalid
0_0_28974597_7492.cpp: In function 'int fft::mul(int, int, bool)':
0_0_28974597_7492.cpp:5:23: error: request for member 'size' in 'a', which is of non-class type 'int'
 #define SZ(x) ((int)x.size())
                       ^
0_0_28974597_7492.cpp:55:9: note: in expansion of macro 'SZ'
   int l=SZ(a)+SZ(b)-1,L=1;while(L<l)L<<=1;
         ^
0_0_28974597_7492.cpp:5:23: error: request for member 'size' in 'b', which is of non-class type 'int'
 #define SZ(x) ((int)x.size())
                       ^
0_0_28974597_7492.cpp:55:15: note: in expansion of macro 'SZ'
   int l=SZ(a)+SZ(b)-1,L=1;while(L<l)L<<=1;
               ^
0_0_28974597_7492.cpp:55:33: error: 'L' was not declared in this scope
   int l=SZ(a)+SZ(b)-1,L=1;while(L<l)L<<=1;
                                 ^
0_0_28974597_7492.cpp:57:13: error: 'L' was not declared in this scope
   A1.resize(L);B1.resize(L);A2.resize(L);B2.resize(L);
             ^
0_0_28974597_7492.cpp:5:23: error: request for member 'size' in 'a', which is of non-class type 'int'
 #define SZ(x) ((int)x.size())
                       ^
0_0_28974597_7492.cpp:3:34: note: in definition of macro 'ref'
 #define ref(i,x,y)for(int i=x;i<=y;++i)
                                  ^
0_0_28974597_7492.cpp:58:11: note: in expansion of macro 'SZ'
   ref(i,0,SZ(a)-1)A1[i]=a[i]%M1,A2[i]=a[i]%M2;
           ^
0_0_28974597_7492.cpp:58:28: error: invalid types 'int[int]' for array subscript
   ref(i,0,SZ(a)-1)A1[i]=a[i]%M1,A2[i]=a[i]%M2;
                            ^
0_0_28974597_7492.cpp:58:42: error: invalid types 'int[int]' for array subscript
   ref(i,0,SZ(a)-1)A1[i]=a[i]%M1,A2[i]=a[i]%M2;
                                          ^
0_0_28974597_7492.cpp:5:23: error: request for member 'size' in 'b', which is of non-class type 'int'
 #define SZ(x) ((int)x.size())
                       ^
0_0_28974597_7492.cpp:3:34: note: in definition of macro 'ref'
 #define ref(i,x,y)for(int i=x;i<=y;++i)
                                  ^
0_0_28974597_7492.cpp:59:11: note: in expansion of macro 'SZ'
   ref(i,0,SZ(b)-1)B1[i]=b[i]%M1,B2[i]=b[i]%M2;
           ^
0_0_28974597_7492.cpp:59:28: error: invalid types 'int[int]' for array subscript
   ref(i,0,SZ(b)-1)B1[i]=b[i]%M1,B2[i]=b[i]%M2;
                            ^
0_0_28974597_7492.cpp:59:42: error: invalid types 'int[int]' for array subscript
   ref(i,0,SZ(b)-1)B1[i]=b[i]%M1,B2[i]=b[i]%M2;
                                          ^
0_0_28974597_7492.cpp:64:10: error: 'uint' was not declared in this scope
   vector<uint> c;c.resize(l);
          ^
0_0_28974597_7492.cpp:64:14: error: template argument 1 is invalid
   vector<uint> c;c.resize(l);
              ^
0_0_28974597_7492.cpp:64:14: error: template argument 2 is invalid
0_0_28974597_7492.cpp:64:17: error: invalid type in declaration before ';' token
   vector<uint> c;c.resize(l);
                 ^
0_0_28974597_7492.cpp:64:20: error: request for member 'resize' in 'c', which is of non-class type 'int'
   vector<uint> c;c.resize(l);
                    ^
0_0_28974597_7492.cpp:65:18: error: invalid types 'int[int]' for array subscript
   ref(i,0,l-1)c[i]=(uint)Crt(M1,M2,A1[i],A2[i],M12);
                  ^
0_0_28974597_7492.cpp: At global scope:
0_0_28974597_7492.cpp:71:10: error: 'uint' does not name a type
 int T,n; uint x[N],val[N],Val[N];
          ^
0_0_28974597_7492.cpp: In function 'int main()':
0_0_28974597_7492.cpp:124:15: error: 'x' was not declared in this scope
   ref(i,0,N-1)x[i]=0;ref(i,1,n)x[read()]++;
               ^
0_0_28974597_7492.cpp:124:32: error: 'x' was not declared in this scope
   ref(i,0,N-1)x[i]=0;ref(i,1,n)x[read()]++;
                                ^
0_0_28974597_7492.cpp:125:15: error: 'val' was not declared in this scope
   ref(i,0,N-1)val[i]=0;
               ^
0_0_28974597_7492.cpp:127:16: error: 'val' was not declared in this scope
    ref(j,0,N-1)val[i*j%N]+=x[i]*x[j]*2;
                ^
0_0_28974597_7492.cpp:127:28: error: 'x' was not declared in this scope
    ref(j,0,N-1)val[i*j%N]+=x[i]*x[j]*2;
                            ^
0_0_28974597_7492.cpp:129:25: error: 'val' was not declared in this scope
    ref(j,0,N-1)if(mm[j])val[i*j%N]-=x[i]*x[j];
                         ^
0_0_28974597_7492.cpp:129:37: error: 'x' was not declared in this scope
    ref(j,0,N-1)if(mm[j])val[i*j%N]-=x[i]*x[j];
                                     ^
0_0_28974597_7492.cpp:130:10: error: 'uint' was not declared in this scope
   vector<uint> A;
          ^
0_0_28974597_7492.cpp:130:14: error: template argument 1 is invalid
   vector<uint> A;
              ^
0_0_28974597_7492.cpp:130:14: error: template argument 2 is invalid
0_0_28974597_7492.cpp:130:17: error: invalid type in declaration before ';' token
   vector<uint> A;
                 ^
0_0_28974597_7492.cpp:131:5: error: request for member 'resize' in 'A', which is of non-class type 'int'
   A.resize((N1-1)*(N2+N2));
     ^
0_0_28974597_7492.cpp:132:32: error: invalid types 'int[int]' for array subscript
   ref(i,0,N-1)if(!mm[i])A[id[i]]=x[i];
                                ^
0_0_28974597_7492.cpp:132:34: error: 'x' was not declared in this scope
   ref(i,0,N-1)if(!mm[i])A[id[i]]=x[i];
                                  ^
0_0_28974597_7492.cpp:133:10: error: the value of 'uint' is not usable in a constant expression
   vector<uint> B=fft::mul(A,A,1);
          ^
0_0_28974597_7492.cpp:130:10: note: 'uint' was not declared 'constexpr'
   vector<uint> A;
          ^
0_0_28974597_7492.cpp:133:14: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Alloc> class std::vector'
   vector<uint> B=fft::mul(A,A,1);
              ^
0_0_28974597_7492.cpp:133:14: error:   expected a type, got 'uint'
0_0_28974597_7492.cpp:133:14: error: template argument 2 is invalid
0_0_28974597_7492.cpp:133:17: error: invalid type in declaration before '=' token
   vector<uint> B=fft::mul(A,A,1);
                 ^
0_0_28974597_7492.cpp:5:23: error: request for member 'size' in 'B', which is of non-class type 'int'
 #define SZ(x) ((int)x.size())
                       ^
0_0_28974597_7492.cpp:3:34: note: in definition of macro 'ref'
 #define ref(i,x,y)for(int i=x;i<=y;++i)
                                  ^
0_0_28974597_7492.cpp:134:11: note: in expansion of macro 'SZ'
   ref(i,0,SZ(B)-1)if(B[i]){
           ^
0_0_28974597_7492.cpp:134:25: error: invalid types 'int[int]' for array subscript
   ref(i,0,SZ(B)-1)if(B[i]){
                         ^
0_0_28974597_7492.cpp:136:4: error: 'val' was not declared in this scope
    val[Id[u][v]]+=B[i];
    ^
0_0_28974597_7492.cpp:136:22: error: invalid types 'int[int]' for array subscript
    val[Id[u][v]]+=B[i];
                      ^
0_0_28974597_7492.cpp:138:15: error: 'Val' was not declared in this scope
   ref(i,0,N-1)Val[i]=0;
               ^
0_0_28974597_7492.cpp:139:31: error: 'Val' was not declared in this scope
   ref(i,1,N-1)ref(j,1,(N-1)/i)Val[i]+=val[i*j];
                               ^
0_0_28974597_7492.cpp:139:39: error: 'val' was not declared in this scope
   ref(i,1,N-1)ref(j,1,(N-1)/i)Val[i]+=val[i*j];
                                       ^
0_0_28974597_7492.cpp:140:8: error: expected ';' before 'ans'
   uint ans=0;
        ^
0_0_28974597_7492.cpp:144:9: error: expected ';' before 's'
    uint s=(uint)mu[x]*mu[y]*mu[z]*Val[a]*Val[b]*Val[c];
         ^
0_0_28974597_7492.cpp:145:24: error: 's' was not declared in this scope
    if(x!=y&&y!=z&&x!=z)s*=6;else if(x!=y||y!=z)s*=3;
                        ^
0_0_28974597_7492.cpp:145:48: error: 's' was not declared in this scope
    if(x!=y&&y!=z&&x!=z)s*=6;else if(x!=y||y!=z)s*=3;
                                                ^
0_0_28974597_7492.cpp:146:4: error: 'ans' was not declared in this scope
    ans+=s;
    ^
0_0_28974597_7492.cpp:146:9: error: 's' was not declared in this scope
    ans+=s;
         ^
0_0_28974597_7492.cpp:148:10: error: 'ans' was not declared in this scope
   cout<<(ans&((1<<30)-1))<<endl;
          ^


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-07-02 23:20:25, Gzip enabled