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_36511347_3102.cpp: In function 'int main()':
0_0_36511347_3102.cpp:34:74: error: too few arguments to function 'll qpow(ll, ll, ll)'
         ll h1 = (r1 * r1 + d * d - r2 * r2) % mod * qpow((2 * d), mod - 2) % mod;
                                                                          ^
0_0_36511347_3102.cpp:9:4: note: declared here
 ll qpow(ll a, ll b, ll mod) {
    ^
0_0_36511347_3102.cpp:46:19: error: 'h' was not declared in this scope
             ans = h * inv(2 * r1, mod) % mod;
                   ^
0_0_36511347_3102.cpp:48:40: error: 'h' was not declared in this scope
             ans = (mod + 1 - (2 * r1 - h) * inv(2 * r1, mod)) % 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 23:13:26, Gzip enabled