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_33713053_24719.cpp:6:10: error: redefinition of 'const ll mod'
 const ll mod=2e6+6;
          ^
0_0_33713053_24719.cpp:5:10: note: 'const ll mod' previously defined here
 const ll mod=998244353;
          ^
0_0_33713053_24719.cpp:16:9: error: 'N' was not declared in this scope
 int fac[N],inv[N],pinv[N],pw[N];
         ^
0_0_33713053_24719.cpp:16:16: error: 'N' was not declared in this scope
 int fac[N],inv[N],pinv[N],pw[N];
                ^
0_0_33713053_24719.cpp:16:24: error: 'N' was not declared in this scope
 int fac[N],inv[N],pinv[N],pw[N];
                        ^
0_0_33713053_24719.cpp:16:30: error: 'N' was not declared in this scope
 int fac[N],inv[N],pinv[N],pw[N];
                              ^
0_0_33713053_24719.cpp: In function 'int C(int, int)':
0_0_33713053_24719.cpp:17:36: error: 'fac' was not declared in this scope
 int C(int x,int y){return x>=y?mul(fac[x],pinv[x-y],pinv[y]):0;}
                                    ^
0_0_33713053_24719.cpp:17:43: error: 'pinv' was not declared in this scope
 int C(int x,int y){return x>=y?mul(fac[x],pinv[x-y],pinv[y]):0;}
                                           ^
0_0_33713053_24719.cpp: In function 'void init()':
0_0_33713053_24719.cpp:20:2: error: 'pw' was not declared in this scope
  pw[0]=1; for(int i=1;i<N;i++) pw[i]=mul(pw[i-1],2);
  ^
0_0_33713053_24719.cpp:20:25: error: 'N' was not declared in this scope
  pw[0]=1; for(int i=1;i<N;i++) pw[i]=mul(pw[i-1],2);
                         ^
0_0_33713053_24719.cpp:21:2: error: 'fac' was not declared in this scope
  fac[0]=1; for(int i=1;i<N;i++) fac[i]=mul(fac[i-1],i);
  ^
0_0_33713053_24719.cpp:21:26: error: 'N' was not declared in this scope
  fac[0]=1; for(int i=1;i<N;i++) fac[i]=mul(fac[i-1],i);
                          ^
0_0_33713053_24719.cpp:22:2: error: 'inv' was not declared in this scope
  inv[0]=inv[1]=1; for(int i=2;i<N;i++) inv[i]=mul(mod-mod/i,inv[mod%i]);
  ^
0_0_33713053_24719.cpp:22:33: error: 'N' was not declared in this scope
  inv[0]=inv[1]=1; for(int i=2;i<N;i++) inv[i]=mul(mod-mod/i,inv[mod%i]);
                                 ^
0_0_33713053_24719.cpp:23:2: error: 'pinv' was not declared in this scope
  pinv[0]=1; for(int i=1;i<N;i++) pinv[i]=mul(pinv[i-1],inv[i]);
  ^
0_0_33713053_24719.cpp:23:27: error: 'N' was not declared in this scope
  pinv[0]=1; for(int i=1;i<N;i++) pinv[i]=mul(pinv[i-1],inv[i]);
                           ^
0_0_33713053_24719.cpp: In function 'int main()':
0_0_33713053_24719.cpp:38:36: error: 'pw' was not declared in this scope
      printf("%d\n",add(mul(ans,Inv(pw[a[1]-m])),a[1]-m));
                                    ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-01-12 00:56:41, Gzip enabled