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_37842929_8695.cpp:4:18: error: 'e6' was not declared in this scope
 const int maxn = e6 + 9, P = 998244353, G = 3;
                  ^
0_0_37842929_8695.cpp:5:13: error: size of array 'fac' is not an integral constant-expression
 int fac[maxn], a[maxn], b[maxn], cnt = 0;//阶乘 
             ^
0_0_37842929_8695.cpp:5:22: error: size of array 'a' is not an integral constant-expression
 int fac[maxn], a[maxn], b[maxn], cnt = 0;//阶乘 
                      ^
0_0_37842929_8695.cpp:5:31: error: size of array 'b' is not an integral constant-expression
 int fac[maxn], a[maxn], b[maxn], cnt = 0;//阶乘 
                               ^
0_0_37842929_8695.cpp: In function 'long long int qmi(long long int, long long int)':
0_0_37842929_8695.cpp:11:28: error: 'P' was not declared in this scope
   if(b & 1)res = res * a % P;
                            ^
0_0_37842929_8695.cpp:12:15: error: 'P' was not declared in this scope
   a = a * a % P, b>>= 1;
               ^
0_0_37842929_8695.cpp: In function 'long long int inv(long long int)':
0_0_37842929_8695.cpp:16:30: error: 'P' was not declared in this scope
 int inv(int x){return qmi(x, P - 2);}
                              ^
0_0_37842929_8695.cpp: In function 'long long int C(long long int, long long int)':
0_0_37842929_8695.cpp:20:32: error: 'P' was not declared in this scope
  return fac[n] * inv(fac[m]) % P * inv(fac[n - m]) % P;
                                ^
0_0_37842929_8695.cpp: In function 'long long int f(long long int, long long int)':
0_0_37842929_8695.cpp:22:65: error: 'P' was not declared in this scope
 int f(int n,int m){return (C(n - m - 1, m - 1) + C(n - m, m)) % P;}
                                                                 ^
0_0_37842929_8695.cpp: At global scope:
0_0_37842929_8695.cpp:23:17: error: invalid type in declaration before ';' token
 bitset<maxn> vis;
                 ^
0_0_37842929_8695.cpp: In function 'long long int dfs(long long int)':
0_0_37842929_8695.cpp:26:10: error: invalid types 'int[long long int]' for array subscript
  if(vis[x])return 0;
          ^
0_0_37842929_8695.cpp:27:7: error: invalid types 'int[long long int]' for array subscript
  vis[x] = 1;
       ^
0_0_37842929_8695.cpp: In function 'void NTT::ntt(NTT::LL*, long long int, long long int)':
0_0_37842929_8695.cpp:59:15: error: 'G' was not declared in this scope
   LL gn=power(G,(P-1)/k,P);
               ^
0_0_37842929_8695.cpp:59:18: error: 'P' was not declared in this scope
   LL gn=power(G,(P-1)/k,P);
                  ^
0_0_37842929_8695.cpp:71:18: error: 'P' was not declared in this scope
  LL invn=power(n,P-2,P);
                  ^
0_0_37842929_8695.cpp: In function 'NTT::Poly NTT::mul(NTT::Poly, NTT::Poly)':
0_0_37842929_8695.cpp:77:15: error: size of array 'A' is not an integral constant-expression
  static LL A[N],B[N],C[N];
               ^
0_0_37842929_8695.cpp:77:20: error: size of array 'B' is not an integral constant-expression
  static LL A[N],B[N],C[N];
                    ^
0_0_37842929_8695.cpp:77:25: error: size of array 'C' is not an integral constant-expression
  static LL A[N],B[N],C[N];
                         ^
0_0_37842929_8695.cpp:88:40: error: 'P' was not declared in this scope
  for(int i=0;i<lim;i++) C[i]=A[i]*B[i]%P;
                                        ^
0_0_37842929_8695.cpp: In function 'void solve()':
0_0_37842929_8695.cpp:106:15: error: request for member 'reset' in 'vis', which is of non-class type 'int'
  cnt = 0, vis.reset();
               ^
0_0_37842929_8695.cpp:109:38: error: invalid types 'int[long long int]' for array subscript
  for(int i = 1;i <= N; ++ i)if(!vis[i])b[++ cnt] = dfs(i);
                                      ^
0_0_37842929_8695.cpp: In function 'void init()':
0_0_37842929_8695.cpp:130:61: error: 'P' was not declared in this scope
  for(int i = 1;i <= 5e5 + 1; ++ i)fac[i] = i * fac[i - 1] % P;
                                                             ^


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-03 18:17:36, Gzip enabled