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_25956089_2806.cpp: In function 'll qpow(ll, ll)':
0_0_25956089_2806.cpp:13:23: error: 'mod' was not declared in this scope
             res=res*a%mod;
                       ^
0_0_25956089_2806.cpp:14:15: error: 'mod' was not declared in this scope
         a=a*a%mod;
               ^
0_0_25956089_2806.cpp: In function 'void init()':
0_0_25956089_2806.cpp:21:5: error: 'fas' was not declared in this scope
     fas[1]=1;
     ^
0_0_25956089_2806.cpp:24:27: error: 'mod' was not declared in this scope
         fas[i]=fas[i-1]*i%mod;
                           ^
0_0_25956089_2806.cpp:28:9: error: 'inv' was not declared in this scope
         inv[i]=qpow(fas[i],mod-2);
         ^
0_0_25956089_2806.cpp:28:28: error: 'mod' was not declared in this scope
         inv[i]=qpow(fas[i],mod-2);
                            ^
0_0_25956089_2806.cpp: In function 'll C(int, int)':
0_0_25956089_2806.cpp:41:12: error: 'fas' was not declared in this scope
     return fas[n]*inv[n-m]%mod*inv[m]%mod;
            ^
0_0_25956089_2806.cpp:41:19: error: 'inv' was not declared in this scope
     return fas[n]*inv[n-m]%mod*inv[m]%mod;
                   ^
0_0_25956089_2806.cpp:41:28: error: 'mod' was not declared in this scope
     return fas[n]*inv[n-m]%mod*inv[m]%mod;
                            ^
0_0_25956089_2806.cpp: In function 'int main()':
0_0_25956089_2806.cpp:53:54: error: 'mod' was not declared in this scope
             if(i&1) ans=(ans-C(m,i)*C(k-i*n-1+m,m-1)%mod+mod)%mod;
                                                      ^
0_0_25956089_2806.cpp:54:51: error: 'mod' was not declared in this scope
             else ans=(ans+C(m,i)*C(k-i*n-1+m,m-1)%mod)%mod;
                                                   ^


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-25 00:30:21, Gzip enabled