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_39660214_10466.cpp: In function 'll C(ll, ll)':
0_0_39660214_10466.cpp:9:30: error: 'MOD' was not declared in this scope
    9 |     return fac[y] * inv[x] % MOD * inv[y - x] % MOD;
      |                              ^~~
0_0_39660214_10466.cpp: In function 'int main()':
0_0_39660214_10466.cpp:35:37: error: 'MOD' was not declared in this scope
   35 |         fac[i] = (fac[i - 1] * i) % MOD;
      |                                     ^~~
0_0_39660214_10466.cpp:36:18: error: 'qpow' was not declared in this scope; did you mean 'pow'?
   36 |         inv[i] = qpow(fac[i], MOD - 2);
      |                  ^~~~
      |                  pow


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-29 21:07:34, Gzip enabled