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_20342046_22875.cpp:67:8: error: 'MAXN' was not declared in this scope
 LL fac[MAXN + 10], inv[MAXN + 10], facinv[MAXN + 10];
        ^
0_0_20342046_22875.cpp:67:24: error: 'MAXN' was not declared in this scope
 LL fac[MAXN + 10], inv[MAXN + 10], facinv[MAXN + 10];
                        ^
0_0_20342046_22875.cpp:67:43: error: 'MAXN' was not declared in this scope
 LL fac[MAXN + 10], inv[MAXN + 10], facinv[MAXN + 10];
                                           ^
0_0_20342046_22875.cpp: In function 'void init()':
0_0_20342046_22875.cpp:69:5: error: 'fac' was not declared in this scope
     fac[0] = fac[1] = inv[1] = inv[0] = facinv[0] = facinv[1] = 1;
     ^
0_0_20342046_22875.cpp:69:23: error: 'inv' was not declared in this scope
     fac[0] = fac[1] = inv[1] = inv[0] = facinv[0] = facinv[1] = 1;
                       ^
0_0_20342046_22875.cpp:69:41: error: 'facinv' was not declared in this scope
     fac[0] = fac[1] = inv[1] = inv[0] = facinv[0] = facinv[1] = 1;
                                         ^
0_0_20342046_22875.cpp:70:24: error: 'MAXN' was not declared in this scope
     for(int i = 2; i < MAXN; ++i){
                        ^
0_0_20342046_22875.cpp: In function 'int main()':
0_0_20342046_22875.cpp:88:31: error: 'facinv' was not declared in this scope
             x1[i] = po[n-i] * facinv[i] % MOD;
                               ^
0_0_20342046_22875.cpp:89:37: error: 'fac' was not declared in this scope
             x2[i] = a[i] * (i > 0 ? fac[i - 1] : 0) % MOD;
                                     ^
0_0_20342046_22875.cpp:98:86: error: 'facinv' was not declared in this scope
         for(int i = 1; i <= n; i++)dp[i] = (dp[i - 1] + x1[n - i] * invpo[i] % MOD * facinv[i - 1] % MOD) % 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-26 16:00:38, Gzip enabled