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_31580958_10181.cpp: In function 'long long int qkpow(long long int, long long int)':
0_0_31580958_10181.cpp:37:10: error: 'mod' was not declared in this scope
  t=(t*t)%mod;
          ^
0_0_31580958_10181.cpp: In function 'int main()':
0_0_31580958_10181.cpp:51:20: error: 'mod' was not declared in this scope
   cout<<((((1+n)*n%mod)*qkpow(2,mod-2)-(solve(n)*n%mod)*qkpow(2,mod-2))%mod+mod)%mod;<<'\n';
                    ^
0_0_31580958_10181.cpp:51:86: error: expected primary-expression before '<<' token
   cout<<((((1+n)*n%mod)*qkpow(2,mod-2)-(solve(n)*n%mod)*qkpow(2,mod-2))%mod+mod)%mod;<<'\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-16 12:29:15, Gzip enabled