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_31091401_14898.cpp: In function 'll M2(ll)':
0_0_31091401_14898.cpp:35:14: error: 'M' was not declared in this scope
  return x >= M ? x - M : x;
              ^
0_0_31091401_14898.cpp: In function 'll M1(ll)':
0_0_31091401_14898.cpp:39:21: error: 'M' was not declared in this scope
  return x < 0 ? x + M : x;
                     ^
0_0_31091401_14898.cpp: In function 'void NTT(ll*, ll, ll)':
0_0_31091401_14898.cpp:60:20: error: 'M' was not declared in this scope
   wi = MO.pow(PR, (M - 1) / (i << 1));
                    ^
0_0_31091401_14898.cpp:75:24: error: 'M' was not declared in this scope
   ll inv = MO.pow(len, M - 2);
                        ^
0_0_31091401_14898.cpp: In function 'void INV(ll*, ll*, ll)':
0_0_31091401_14898.cpp:85:23: error: 'M' was not declared in this scope
   b[0] = MO.pow(a[0], M - 2);
                       ^
0_0_31091401_14898.cpp:94:31: error: 'M' was not declared in this scope
   b[i] = 1LL * b[i] * M2(2 + (M - 1LL * tmp[i] * b[i] % M)) % M;
                               ^
0_0_31091401_14898.cpp: In function 'void LN(ll*, ll*, ll)':
0_0_31091401_14898.cpp:104:31: error: 'M' was not declared in this scope
   b[i - 1] = 1LL * a[i] * i % M;
                               ^
0_0_31091401_14898.cpp:110:32: error: 'M' was not declared in this scope
   d1[i] = 1LL * d1[i] * b[i] % M;
                                ^
0_0_31091401_14898.cpp:114:38: error: 'M' was not declared in this scope
   b[i] = 1LL * d1[i - 1] * MO.pow(i, M - 2) % M;
                                      ^
0_0_31091401_14898.cpp: In function 'int main()':
0_0_31091401_14898.cpp:122:35: error: 'M' was not declared in this scope
   fac[i] = 1LL * fac[i - 1] * i % M;
                                   ^
0_0_31091401_14898.cpp:123:34: error: 'M' was not declared in this scope
  inv[N - 1] = MO.pow(fac[N - 1], M - 2);
                                  ^


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-02-17 08:51:28, Gzip enabled