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);
^
|