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_33986898_31034.cpp: In function 'll ksm(ll, ll)':
0_0_33986898_31034.cpp:7:64: error: 'mod' was not declared in this scope
 inline ll ksm(ll a,ll b){ll sum=1;while(b){if(b&1){sum=(sum*a)%mod;b--;}b/=2;a=a*a%mod;}return sum%mod;}
                                                                ^
0_0_33986898_31034.cpp:7:84: error: 'mod' was not declared in this scope
 inline ll ksm(ll a,ll b){ll sum=1;while(b){if(b&1){sum=(sum*a)%mod;b--;}b/=2;a=a*a%mod;}return sum%mod;}
                                                                                    ^
0_0_33986898_31034.cpp:7:100: error: 'mod' was not declared in this scope
 inline ll ksm(ll a,ll b){ll sum=1;while(b){if(b&1){sum=(sum*a)%mod;b--;}b/=2;a=a*a%mod;}return sum%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-26 00:25:37, Gzip enabled