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_36448042_14486.cpp:8:24: error: 'mod' was not declared in this scope
 ll power(ll x, int y = mod - 2) {
                        ^
0_0_36448042_14486.cpp: In function 'long long int power(long long int, int)':
0_0_36448042_14486.cpp:11:29: error: 'mod' was not declared in this scope
   if(y & 1) ans = x * ans % mod;
                             ^
0_0_36448042_14486.cpp:13:15: error: 'mod' was not declared in this scope
   x = x * x % mod;
               ^
0_0_36448042_14486.cpp: In function 'int main()':
0_0_36448042_14486.cpp:19:38: error: 'mod' was not declared in this scope
   cout << (n + 1) * power(2ll * n) % mod << endl;
                                      ^


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-25 11:48:14, Gzip enabled