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_38665165_11635.cpp:3:7: error: 'll' does not name a type
    3 | const ll mod=1e9+7;
      |       ^~
0_0_38665165_11635.cpp: In function 'll ksm(ll, ll)':
0_0_38665165_11635.cpp:13:23: error: 'mod' was not declared in this scope; did you mean 'modf'?
   13 |             rec=((rec%mod)*(a%mod))%mod;
      |                       ^~~
      |                       modf
0_0_38665165_11635.cpp:14:15: error: 'mod' was not declared in this scope; did you mean 'modf'?
   14 |         a=((a%mod)*(a%mod))%mod;
      |               ^~~
      |               modf
0_0_38665165_11635.cpp:17:16: error: 'mod' was not declared in this scope; did you mean 'modf'?
   17 |     return rec%mod;
      |                ^~~
      |                modf
0_0_38665165_11635.cpp: In function 'int main()':
0_0_38665165_11635.cpp:52:41: error: 'mod' was not declared in this scope; did you mean 'modf'?
   52 |                 printf("%lld\n",f*ksm(n,mod-2)%mod);
      |                                         ^~~
      |                                         modf


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-28 00:53:06, Gzip enabled