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_14952764_11027.cpp: In function 'void input()':
0_0_14952764_11027.cpp:16:46: error: 'b1' was not declared in this scope
     scanf("%I64d%I64d%I64d%I64d%I64d%I64d", &b1, &q, &a1, &d, &n, &m);
                                              ^
0_0_14952764_11027.cpp:16:51: error: 'q' was not declared in this scope
     scanf("%I64d%I64d%I64d%I64d%I64d%I64d", &b1, &q, &a1, &d, &n, &m);
                                                   ^
0_0_14952764_11027.cpp:16:55: error: 'a1' was not declared in this scope
     scanf("%I64d%I64d%I64d%I64d%I64d%I64d", &b1, &q, &a1, &d, &n, &m);
                                                       ^
0_0_14952764_11027.cpp:16:60: error: 'd' was not declared in this scope
     scanf("%I64d%I64d%I64d%I64d%I64d%I64d", &b1, &q, &a1, &d, &n, &m);
                                                            ^
0_0_14952764_11027.cpp:16:64: error: 'n' was not declared in this scope
     scanf("%I64d%I64d%I64d%I64d%I64d%I64d", &b1, &q, &a1, &d, &n, &m);
                                                                ^
0_0_14952764_11027.cpp:16:68: error: 'm' was not declared in this scope
     scanf("%I64d%I64d%I64d%I64d%I64d%I64d", &b1, &q, &a1, &d, &n, &m);
                                                                    ^
0_0_14952764_11027.cpp: In function 'void solve()':
0_0_14952764_11027.cpp:21:9: error: 'n' was not declared in this scope
     if(!n && !m)
         ^
0_0_14952764_11027.cpp:21:15: error: 'm' was not declared in this scope
     if(!n && !m)
               ^
0_0_14952764_11027.cpp:26:9: error: 'n' was not declared in this scope
     if(!n)
         ^
0_0_14952764_11027.cpp:28:27: error: 'b1' was not declared in this scope
         printf("%I64d\n", b1*QuickMod(q, m - 1)%MOD);
                           ^
0_0_14952764_11027.cpp:28:39: error: 'q' was not declared in this scope
         printf("%I64d\n", b1*QuickMod(q, m - 1)%MOD);
                                       ^
0_0_14952764_11027.cpp:28:42: error: 'm' was not declared in this scope
         printf("%I64d\n", b1*QuickMod(q, m - 1)%MOD);
                                          ^
0_0_14952764_11027.cpp:28:47: error: 'QuickMod' was not declared in this scope
         printf("%I64d\n", b1*QuickMod(q, m - 1)%MOD);
                                               ^
0_0_14952764_11027.cpp:28:49: error: 'MOD' was not declared in this scope
         printf("%I64d\n", b1*QuickMod(q, m - 1)%MOD);
                                                 ^
0_0_14952764_11027.cpp:31:9: error: 'm' was not declared in this scope
     if(!m)
         ^
0_0_14952764_11027.cpp:33:28: error: 'a1' was not declared in this scope
         printf("%I64d\n", (a1 + (n - 1)*d%MOD)%MOD);
                            ^
0_0_14952764_11027.cpp:33:34: error: 'n' was not declared in this scope
         printf("%I64d\n", (a1 + (n - 1)*d%MOD)%MOD);
                                  ^
0_0_14952764_11027.cpp:33:41: error: 'd' was not declared in this scope
         printf("%I64d\n", (a1 + (n - 1)*d%MOD)%MOD);
                                         ^
0_0_14952764_11027.cpp:33:43: error: 'MOD' was not declared in this scope
         printf("%I64d\n", (a1 + (n - 1)*d%MOD)%MOD);
                                           ^
0_0_14952764_11027.cpp:36:5: error: 'temp' was not declared in this scope
     temp[0] = 1;
     ^
0_0_14952764_11027.cpp:37:5: error: 'f' was not declared in this scope
     f[0] = (QuickMod(q, m) - 1 + MOD)%MOD*GetInv(q - 1)%MOD;
     ^
0_0_14952764_11027.cpp:37:22: error: 'q' was not declared in this scope
     f[0] = (QuickMod(q, m) - 1 + MOD)%MOD*GetInv(q - 1)%MOD;
                      ^
0_0_14952764_11027.cpp:37:25: error: 'm' was not declared in this scope
     f[0] = (QuickMod(q, m) - 1 + MOD)%MOD*GetInv(q - 1)%MOD;
                         ^
0_0_14952764_11027.cpp:37:26: error: 'QuickMod' was not declared in this scope
     f[0] = (QuickMod(q, m) - 1 + MOD)%MOD*GetInv(q - 1)%MOD;
                          ^
0_0_14952764_11027.cpp:37:34: error: 'MOD' was not declared in this scope
     f[0] = (QuickMod(q, m) - 1 + MOD)%MOD*GetInv(q - 1)%MOD;
                                  ^
0_0_14952764_11027.cpp:37:55: error: 'GetInv' was not declared in this scope
     f[0] = (QuickMod(q, m) - 1 + MOD)%MOD*GetInv(q - 1)%MOD;
                                                       ^
0_0_14952764_11027.cpp:38:24: error: 'n' was not declared in this scope
     for(int i = 1; i < n; i++)
                        ^
0_0_14952764_11027.cpp:40:47: error: 'inv' was not declared in this scope
         temp[i] = temp[i - 1]*(m - 1 + i)%MOD*inv[i]%MOD;
                                               ^
0_0_14952764_11027.cpp:43:23: error: 'n' was not declared in this scope
     long long ans = f[n - 1]*b1%MOD;
                       ^
0_0_14952764_11027.cpp:43:30: error: 'b1' was not declared in this scope
     long long ans = f[n - 1]*b1%MOD;
                              ^
0_0_14952764_11027.cpp:45:31: error: 'a1' was not declared in this scope
         ans = (ans + temp[i]*(a1 + (n - 1 - i)*d%MOD)%MOD)%MOD;
                               ^
0_0_14952764_11027.cpp:45:48: error: 'd' was not declared in this scope
         ans = (ans + temp[i]*(a1 + (n - 1 - i)*d%MOD)%MOD)%MOD;
                                                ^
0_0_14952764_11027.cpp: In function 'int main()':
0_0_14952764_11027.cpp:51:13: error: 'initial' was not declared in this scope
     initial();
             ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-08 11:12:07, Gzip enabled