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_30477394_14887.cpp: In function 'int solve(int)':
0_0_30477394_14887.cpp:573:29: error: 'ksm' was not declared in this scope
  inv[n+2]=ksm(fac[n+2],mod-2);
                             ^
0_0_30477394_14887.cpp: In function 'int main()':
0_0_30477394_14887.cpp:583:61: error: 'ksm' was not declared in this scope
   printf("%d\n",(solve(n-1)-solve(m)+mod+1ll*m*ksm(m+2,mod-2)%mod)*(n+1)%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-17 01:30:22, Gzip enabled