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_38689398_31518.cpp: In function 'void init()':
0_0_38689398_31518.cpp:30:9: error: 'fac' was not declared in this scope
   30 |         fac[0] = 1;
      |         ^~~
0_0_38689398_31518.cpp:34:9: error: 'inv' was not declared in this scope; did you mean 'int'?
   34 |         inv[N - 1] = qpow(fac[N - 1], mod - 2);
      |         ^~~
      |         int
0_0_38689398_31518.cpp: In function 'long long int C(long long int, long long int)':
0_0_38689398_31518.cpp:43:24: error: 'fac' was not declared in this scope
   43 |                 return fac[m] * inv[m - n] % mod * inv[n] % mod;
      |                        ^~~
0_0_38689398_31518.cpp:43:33: error: 'inv' was not declared in this scope; did you mean 'int'?
   43 |                 return fac[m] * inv[m - n] % mod * inv[n] % mod;
      |                                 ^~~
      |                                 int


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-07-08 18:37:16, Gzip enabled