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_30333930_12187.cpp:5:7: error: 'LL' does not name a type
 const LL MOD=1e6+3;
       ^
0_0_30333930_12187.cpp:6:7: error: 'LL' does not name a type
 const LL MAXN=1005;
       ^
0_0_30333930_12187.cpp:7:8: error: 'MAXN' was not declared in this scope
 ll fac[MAXN],facinv[MAXN];
        ^
0_0_30333930_12187.cpp:7:21: error: 'MAXN' was not declared in this scope
 ll fac[MAXN],facinv[MAXN];
                     ^
0_0_30333930_12187.cpp: In function 'long long int quickmul(int, int)':
0_0_30333930_12187.cpp:11:43: error: 'MOD' was not declared in this scope
  for(; b ; b >>=1 ,a =(long long) a * a % MOD)
                                           ^
0_0_30333930_12187.cpp: In function 'long long int C(int, int)':
0_0_30333930_12187.cpp:20:20: error: 'fac' was not declared in this scope
  return (long long)fac[n]*facinv[m]%MOD*facinv[n-m]%MOD;
                    ^
0_0_30333930_12187.cpp:20:27: error: 'facinv' was not declared in this scope
  return (long long)fac[n]*facinv[m]%MOD*facinv[n-m]%MOD;
                           ^
0_0_30333930_12187.cpp:20:37: error: 'MOD' was not declared in this scope
  return (long long)fac[n]*facinv[m]%MOD*facinv[n-m]%MOD;
                                     ^
0_0_30333930_12187.cpp: In function 'void init()':
0_0_30333930_12187.cpp:24:2: error: 'fac' was not declared in this scope
  fac[0]=1;
  ^
0_0_30333930_12187.cpp:25:17: error: 'MAXN' was not declared in this scope
  for(int i=1;i<=MAXN;i++)
                 ^
0_0_30333930_12187.cpp:26:32: error: 'MOD' was not declared in this scope
   fac[i]=(long long)fac[i-1]*i%MOD;
                                ^
0_0_30333930_12187.cpp:27:2: error: 'facinv' was not declared in this scope
  facinv[MAXN]=quickmul(fac[MAXN],MOD-2);
  ^
0_0_30333930_12187.cpp:27:9: error: 'MAXN' was not declared in this scope
  facinv[MAXN]=quickmul(fac[MAXN],MOD-2);
         ^
0_0_30333930_12187.cpp:27:34: error: 'MOD' was not declared in this scope
  facinv[MAXN]=quickmul(fac[MAXN],MOD-2);
                                  ^
0_0_30333930_12187.cpp: At global scope:
0_0_30333930_12187.cpp:32:9: error: 'MAXN' was not declared in this scope
 int num[MAXN];
         ^
0_0_30333930_12187.cpp: In function 'int main()':
0_0_30333930_12187.cpp:39:27: error: 'MOD' was not declared in this scope
         p2[i]=(p2[i-1]*2)%MOD;
                           ^
0_0_30333930_12187.cpp:42:16: error: 'num' was not declared in this scope
         memset(num,0,sizeof(num));
                ^
0_0_30333930_12187.cpp:65:63: error: 'MOD' was not declared in this scope
                             sum+=(C(num[j],k)*C(n-num[j],i-k)%MOD+MOD)%MOD*(1ll<<j)%MOD;
                                                               ^


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-11-25 22:32:13, Gzip enabled