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_28903269_15317.cpp: In function 'void init()':
0_0_28903269_15317.cpp:24:15: error: 'C' was not declared in this scope
  For(i,0,M-1) C[i][0]=1;
               ^
0_0_28903269_15317.cpp:26:3: error: 'C' was not declared in this scope
   C[i][j]=(C[i-1][j]+C[i-1][j-1])%mo;
   ^
0_0_28903269_15317.cpp:27:15: error: 'all' was not declared in this scope
  For(i,1,N-1) all[i]=i*(i-1)/2;
               ^
0_0_28903269_15317.cpp:28:23: error: 'all' was not declared in this scope
  For(i,1,N-1) For(j,0,all[i])
                       ^
0_0_28903269_15317.cpp:10:49: note: in definition of macro 'For'
 #define For(i,j,k) for (int i=(int)(j);i<=(int)(k);i++)
                                                 ^
0_0_28903269_15317.cpp:29:3: error: 'g' was not declared in this scope
   g[i][j]=G[i][j]=C[j][all];
   ^
0_0_28903269_15317.cpp:29:11: error: 'G' was not declared in this scope
   g[i][j]=G[i][j]=C[j][all];
           ^
0_0_28903269_15317.cpp:29:19: error: 'C' was not declared in this scope
   g[i][j]=G[i][j]=C[j][all];
                   ^
0_0_28903269_15317.cpp:31:12: error: 'val' was not declared in this scope
   For(s1,0,val[i]) For(s2,0,val[j])
            ^
0_0_28903269_15317.cpp:10:49: note: in definition of macro 'For'
 #define For(i,j,k) for (int i=(int)(j);i<=(int)(k);i++)
                                                 ^
0_0_28903269_15317.cpp:32:4: error: 'g' was not declared in this scope
    g[i+j][s1+s2]=(g[i+j][s1+s2]+mo-1ll*g[i][s1]*G[j][s2]%mo*C[i+j-1][i-1]%mo)%mo;
    ^
0_0_28903269_15317.cpp:32:49: error: 'G' was not declared in this scope
    g[i+j][s1+s2]=(g[i+j][s1+s2]+mo-1ll*g[i][s1]*G[j][s2]%mo*C[i+j-1][i-1]%mo)%mo;
                                                 ^
0_0_28903269_15317.cpp:32:61: error: 'C' was not declared in this scope
    g[i+j][s1+s2]=(g[i+j][s1+s2]+mo-1ll*g[i][s1]*G[j][s2]%mo*C[i+j-1][i-1]%mo)%mo;
                                                             ^
0_0_28903269_15317.cpp:34:12: error: 'val' was not declared in this scope
   For(s1,0,val[i]) For(s2,0,val[j])
            ^
0_0_28903269_15317.cpp:10:49: note: in definition of macro 'For'
 #define For(i,j,k) for (int i=(int)(j);i<=(int)(k);i++)
                                                 ^
0_0_28903269_15317.cpp:35:4: error: 'h' was not declared in this scope
    h[i+j][s1+s2]=(h[i+j][s1+s2]+1ll*g[i][s1]*g[j][s2]%mo*i*j)%mo;
    ^
0_0_28903269_15317.cpp:35:37: error: 'g' was not declared in this scope
    h[i+j][s1+s2]=(h[i+j][s1+s2]+1ll*g[i][s1]*g[j][s2]%mo*i*j)%mo;
                                     ^
0_0_28903269_15317.cpp: In function 'void solve()':
0_0_28903269_15317.cpp:38:9: error: 'tr' was not declared in this scope
  memset(tr,0,sizeof(tr));
         ^
0_0_28903269_15317.cpp:39:14: error: 'n' was not declared in this scope
  scanf("%d",&n);
              ^
0_0_28903269_15317.cpp:40:25: error: 'p' was not declared in this scope
  For(i,1,n) scanf("%d",&p[i]);
                         ^
0_0_28903269_15317.cpp:42:15: error: 'cnt' was not declared in this scope
   scanf("%d",&cnt[i]);
               ^
0_0_28903269_15317.cpp:50:9: error: 'f' was not declared in this scope
  memset(f,0,sizeof(f));
         ^
0_0_28903269_15317.cpp:51:8: error: 'val' was not declared in this scope
  Rep(T,val[n]-1,0){
        ^
0_0_28903269_15317.cpp:11:37: note: in definition of macro 'Rep'
 #define Rep(i,j,k) for (int i=(int)(j);i>=(int)(k);i--)
                                     ^
0_0_28903269_15317.cpp:52:10: error: 'a' was not declared in this scope
   memset(a,0,sizeof(a));
          ^
0_0_28903269_15317.cpp:54:8: error: 'h' was not declared in this scope
   cnt1=h[n][T];
        ^
0_0_28903269_15317.cpp:55:9: error: 'G' was not declared in this scope
   cnt2=(G[n][T]+mo-g[n][T])%mo;
         ^
0_0_28903269_15317.cpp:55:20: error: 'g' was not declared in this scope
   cnt2=(G[n][T]+mo-g[n][T])%mo;
                    ^
0_0_28903269_15317.cpp:59:13: error: 'p' was not declared in this scope
   p1=1ll*p1*p[i]%mo;
             ^
0_0_28903269_15317.cpp:59:15: error: 'i' was not declared in this scope
   p1=1ll*p1*p[i]%mo;
               ^
0_0_28903269_15317.cpp:66:9: error: 'gauss' was not declared in this scope
   gauss();
         ^


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-12-02 11:38:07, Gzip enabled