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_33713045_4678.cpp:15:9: error: 'N' was not declared in this scope
 int fac[N],inv[N],pinv[N],pw[N];
         ^
0_0_33713045_4678.cpp:15:16: error: 'N' was not declared in this scope
 int fac[N],inv[N],pinv[N],pw[N];
                ^
0_0_33713045_4678.cpp:15:24: error: 'N' was not declared in this scope
 int fac[N],inv[N],pinv[N],pw[N];
                        ^
0_0_33713045_4678.cpp:15:30: error: 'N' was not declared in this scope
 int fac[N],inv[N],pinv[N],pw[N];
                              ^
0_0_33713045_4678.cpp: In function 'int C(int, int)':
0_0_33713045_4678.cpp:16: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_33713045_4678.cpp:16: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_33713045_4678.cpp: In function 'void init()':
0_0_33713045_4678.cpp:19: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_33713045_4678.cpp:19: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_33713045_4678.cpp:20: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_33713045_4678.cpp:20: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_33713045_4678.cpp:21: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_33713045_4678.cpp:21: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_33713045_4678.cpp:22: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_33713045_4678.cpp:22: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_33713045_4678.cpp: In function 'int main()':
0_0_33713045_4678.cpp:37: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.000000(s) query 1, Server time : 2025-01-12 00:50:06, Gzip enabled