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_29966351_28688.cpp: In function 'bool Miller_Rabbin(long long int, long long int)':
0_0_29966351_28688.cpp:40:24: error: 'pow_mod' was not declared in this scope
  ll t = pow_mod(a, d, n);    //a^dÈ¡Ò»´ÎÓàÅÐ¶Ï 
                        ^
0_0_29966351_28688.cpp:46:22: error: 'add_mod' was not declared in this scope
   t = add_mod(t, t, n);    // ¿ì³Ë 
                      ^
0_0_29966351_28688.cpp: In function 'int main()':
0_0_29966351_28688.cpp:98:49: error: 'add_mod' was not declared in this scope
    else ans = add_mod(ans, q_pow(i, n - 2, n), n);
                                                 ^


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