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_38741588_9341.cpp: In function 'll qpow(ll, ll)':
0_0_38741588_9341.cpp:13:37: error: 'mod' was not declared in this scope; did you mean 'modf'?
   13 |                         ans=(ans*x)%mod;
      |                                     ^~~
      |                                     modf
0_0_38741588_9341.cpp:14:25: error: 'mod' was not declared in this scope; did you mean 'modf'?
   14 |                 x=(x*x)%mod;
      |                         ^~~
      |                         modf
0_0_38741588_9341.cpp: In function 'll C(ll, ll)':
0_0_38741588_9341.cpp:21:26: error: 'mod' was not declared in this scope; did you mean 'modf'?
   21 |     return fac[n]*inv[m]%mod*inv[n-m]%mod;
      |                          ^~~
      |                          modf
0_0_38741588_9341.cpp: In function 'void init()':
0_0_38741588_9341.cpp:27:29: error: 'mod' was not declared in this scope; did you mean 'modf'?
   27 |         fac[i]=(fac[i-1]*i)%mod;
      |                             ^~~
      |                             modf
0_0_38741588_9341.cpp:28:28: error: 'mod' was not declared in this scope; did you mean 'modf'?
   28 |     inv[N-1]=qpow(fac[N-1],mod-2);
      |                            ^~~
      |                            modf
0_0_38741588_9341.cpp: In function 'void solve()':
0_0_38741588_9341.cpp:37:24: error: 'mod' was not declared in this scope; did you mean 'modf'?
   37 |         ll invb=qpow(b,mod-2);
      |                        ^~~
      |                        modf


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-09-30 11:11:13, Gzip enabled