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_34695931_29188.cpp:1:7: error: 'MAXN' was not declared in this scope
 int A[MAXN], B[MAXN], C[MAXN], T, n;
       ^
0_0_34695931_29188.cpp:1:16: error: 'MAXN' was not declared in this scope
 int A[MAXN], B[MAXN], C[MAXN], T, n;
                ^
0_0_34695931_29188.cpp:1:25: error: 'MAXN' was not declared in this scope
 int A[MAXN], B[MAXN], C[MAXN], T, n;
                         ^
0_0_34695931_29188.cpp:2:1: error: 'LL' does not name a type
 LL fac[MAXN], inv[MAXN], pw[MAXN];
 ^
0_0_34695931_29188.cpp: In function 'void init()':
0_0_34695931_29188.cpp:5:15: error: 'fac' was not declared in this scope
  for (int i = fac[0] = 1; i <= n; i++)
               ^
0_0_34695931_29188.cpp:6:29: error: 'MOD' was not declared in this scope
   fac[i] = fac[i - 1] * i % MOD;
                             ^
0_0_34695931_29188.cpp:7:2: error: 'inv' was not declared in this scope
  inv[n] = modpow(fac[n], MOD - 2);
  ^
0_0_34695931_29188.cpp:7:18: error: 'fac' was not declared in this scope
  inv[n] = modpow(fac[n], MOD - 2);
                  ^
0_0_34695931_29188.cpp:7:26: error: 'MOD' was not declared in this scope
  inv[n] = modpow(fac[n], MOD - 2);
                          ^
0_0_34695931_29188.cpp:7:33: error: 'modpow' was not declared in this scope
  inv[n] = modpow(fac[n], MOD - 2);
                                 ^
0_0_34695931_29188.cpp: In function 'int main()':
0_0_34695931_29188.cpp:14:7: error: 'IO' has not been declared
  for (IO::read(T); T--;) {
       ^
0_0_34695931_29188.cpp:16:3: error: 'IO' has not been declared
   IO::read(n, a, b, c);
   ^
0_0_34695931_29188.cpp:17:3: error: 'LL' was not declared in this scope
   LL p = (LL)a * modpow(b, MOD - 2) % MOD;
   ^
0_0_34695931_29188.cpp:18:16: error: 'pw' was not declared in this scope
   for (int i = pw[0] = 1; i <= n; i++)
                ^
0_0_34695931_29188.cpp:19:25: error: 'MOD' was not declared in this scope
    pw[i] = pw[i - 1] * (MOD + 1 - p) % MOD;
                         ^
0_0_34695931_29188.cpp:19:35: error: 'p' was not declared in this scope
    pw[i] = pw[i - 1] * (MOD + 1 - p) % MOD;
                                   ^
0_0_34695931_29188.cpp:21:4: error: 'A' was not declared in this scope
    A[i] = pw[i] * fac[c - 1] % MOD * inv[i] % MOD * inv[c - 1- i] % MOD;
    ^
0_0_34695931_29188.cpp:21:11: error: 'pw' was not declared in this scope
    A[i] = pw[i] * fac[c - 1] % MOD * inv[i] % MOD * inv[c - 1- i] % MOD;
           ^
0_0_34695931_29188.cpp:21:19: error: 'fac' was not declared in this scope
    A[i] = pw[i] * fac[c - 1] % MOD * inv[i] % MOD * inv[c - 1- i] % MOD;
                   ^
0_0_34695931_29188.cpp:21:32: error: 'MOD' was not declared in this scope
    A[i] = pw[i] * fac[c - 1] % MOD * inv[i] % MOD * inv[c - 1- i] % MOD;
                                ^
0_0_34695931_29188.cpp:21:38: error: 'inv' was not declared in this scope
    A[i] = pw[i] * fac[c - 1] % MOD * inv[i] % MOD * inv[c - 1- i] % MOD;
                                      ^
0_0_34695931_29188.cpp:23:4: error: 'B' was not declared in this scope
    B[i] = fac[n - c] * inv[i] % MOD * inv[n - c - i] % MOD;
    ^
0_0_34695931_29188.cpp:23:11: error: 'fac' was not declared in this scope
    B[i] = fac[n - c] * inv[i] % MOD * inv[n - c - i] % MOD;
           ^
0_0_34695931_29188.cpp:23:24: error: 'inv' was not declared in this scope
    B[i] = fac[n - c] * inv[i] % MOD * inv[n - c - i] % MOD;
                        ^
0_0_34695931_29188.cpp:23:33: error: 'MOD' was not declared in this scope
    B[i] = fac[n - c] * inv[i] % MOD * inv[n - c - i] % MOD;
                                 ^
0_0_34695931_29188.cpp:24:3: error: 'NTT' has not been declared
   NTT::get_mul(A, B, C, c, n - c + 1, n);
   ^
0_0_34695931_29188.cpp:24:16: error: 'A' was not declared in this scope
   NTT::get_mul(A, B, C, c, n - c + 1, n);
                ^
0_0_34695931_29188.cpp:24:19: error: 'B' was not declared in this scope
   NTT::get_mul(A, B, C, c, n - c + 1, n);
                   ^
0_0_34695931_29188.cpp:24:22: error: 'C' was not declared in this scope
   NTT::get_mul(A, B, C, c, n - c + 1, n);
                      ^
0_0_34695931_29188.cpp:28:19: error: 'MOD' was not declared in this scope
    A[i] = i & 1 ? MOD - inv[i] : inv[i];
                   ^
0_0_34695931_29188.cpp:28:25: error: 'inv' was not declared in this scope
    A[i] = i & 1 ? MOD - inv[i] : inv[i];
                         ^
0_0_34695931_29188.cpp:29:18: error: 'fac' was not declared in this scope
    B[i] = C[i] * fac[i] % MOD;
                  ^
0_0_34695931_29188.cpp:31:19: error: 'reverse' was not declared in this scope
   reverse(B, B + n);
                   ^
0_0_34695931_29188.cpp:32:3: error: 'NTT' has not been declared
   NTT::get_mul(A, B, A, n, n, n);
   ^
0_0_34695931_29188.cpp:35:18: error: 'inv' was not declared in this scope
    A[i] = A[i] * inv[i] % MOD;
                  ^
0_0_34695931_29188.cpp:35:27: error: 'MOD' was not declared in this scope
    A[i] = A[i] * inv[i] % MOD;
                           ^
0_0_34695931_29188.cpp:38:4: error: 'IO' has not been declared
    IO::print(A[i] * p % MOD);
    ^
0_0_34695931_29188.cpp:38:21: error: 'p' was not declared in this scope
    IO::print(A[i] * p % MOD);
                     ^
0_0_34695931_29188.cpp:38:25: error: 'MOD' was not declared in this scope
    IO::print(A[i] * p % MOD);
                         ^
0_0_34695931_29188.cpp:40:2: error: 'IO' has not been declared
  IO::ioflush();
  ^


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-05-18 06:12:06, Gzip enabled