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_37838151_16054.cpp: In function 'll ksm(ll, ll)':
0_0_37838151_16054.cpp:14:75: error: 'mod' was not declared in this scope
 ll ksm(ll a, ll b) {ll ans = 1;while (b > 0) {if (b & 1) {ans = ans * a % mod;}a = a * a % mod;b >>= 1;}return ans;}
                                                                           ^
0_0_37838151_16054.cpp:14:92: error: 'mod' was not declared in this scope
 ll ksm(ll a, ll b) {ll ans = 1;while (b > 0) {if (b & 1) {ans = ans * a % mod;}a = a * a % mod;b >>= 1;}return ans;}
                                                                                            ^
0_0_37838151_16054.cpp: In function 'll Add(ll, ll)':
0_0_37838151_16054.cpp:15:40: error: 'mod' was not declared in this scope
 inline ll Add(ll x,ll y){x+=y;return(x<mod)?x:x-mod;}
                                        ^
0_0_37838151_16054.cpp: In function 'll Dec(ll, ll)':
0_0_37838151_16054.cpp:16:45: error: 'mod' was not declared in this scope
 inline ll Dec(ll x,ll y){x-=y;return(x<0)?x+mod:x;}
                                             ^
0_0_37838151_16054.cpp: In function 'll Mul(ll, ll)':
0_0_37838151_16054.cpp:17:37: error: 'mod' was not declared in this scope
 inline ll Mul(ll x,ll y){return(x*y%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 06:05:57, Gzip enabled