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_33529245_1017.cpp:3:27: error: 'll' has not been declared
 inline int FastExp(int a, ll b) {
                           ^
0_0_33529245_1017.cpp: In function 'int FastExp(int, int)':
0_0_33529245_1017.cpp:5:39: error: 'll' was not declared in this scope
     for (b %= P - 1; b; b >>= 1, a = (ll)a * a % P)
                                       ^
0_0_33529245_1017.cpp:5:42: error: expected ')' before 'a'
     for (b %= P - 1; b; b >>= 1, a = (ll)a * a % P)
                                          ^
0_0_33529245_1017.cpp:5:51: error: expected ';' before ')' token
     for (b %= P - 1; b; b >>= 1, a = (ll)a * a % P)
                                                   ^
0_0_33529245_1017.cpp: In function 'void Solve()':
0_0_33529245_1017.cpp:11:5: error: 'll' was not declared in this scope
     ll Ans = 0;
     ^
0_0_33529245_1017.cpp:12:32: error: 'k' was not declared in this scope
     int t = FastExp(FastExp(A, k), c),
                                ^
0_0_33529245_1017.cpp:12:36: error: 'c' was not declared in this scope
     int t = FastExp(FastExp(A, k), c),
                                    ^
0_0_33529245_1017.cpp:14:42: error: expected ')' before 't'
     for (int i = 0; i <= k; ++i, t = (ll)t * q % P)
                                          ^
0_0_33529245_1017.cpp:14:46: error: 'q' was not declared in this scope
     for (int i = 0; i <= k; ++i, t = (ll)t * q % P)
                                              ^
0_0_33529245_1017.cpp:17:9: error: 'else' without a previous 'if'
         else
         ^
0_0_33529245_1017.cpp:18:13: error: 'Ans' was not declared in this scope
             Ans += ((i & 1) ? -1 : 1) * (ll)C(k, i) * (FastExp(t, n + 1) - 1) % P * FastExp(t - 1, P - 2) % P;
             ^
0_0_33529245_1017.cpp:18:22: error: 'i' was not declared in this scope
             Ans += ((i & 1) ? -1 : 1) * (ll)C(k, i) * (FastExp(t, n + 1) - 1) % P * FastExp(t - 1, P - 2) % P;
                      ^
0_0_33529245_1017.cpp:21:25: error: 'printf' was not declared in this scope
     printf("%lld\n", Ans);
                         ^


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-07-09 07:24:37, Gzip enabled