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_29887408_25048.cpp:27:6: error: 'N' was not declared in this scope
 ll f[N],inv[N];
      ^
0_0_29887408_25048.cpp:27:13: error: 'N' was not declared in this scope
 ll f[N],inv[N];
             ^
0_0_29887408_25048.cpp: In function 'int init(int)':
0_0_29887408_25048.cpp:30:5: error: 'f' was not declared in this scope
     f[0] = 1;
     ^
0_0_29887408_25048.cpp:32:5: error: 'inv' was not declared in this scope
     inv[n-1] = powm(f[n-1],n-2,n);
     ^
0_0_29887408_25048.cpp: In function 'll Lucas(ll, ll, ll)':
0_0_29887408_25048.cpp:41:21: error: 'f' was not declared in this scope
         ans = ans * f[a] % p * inv[b] % p * inv[a-b] % p;
                     ^
0_0_29887408_25048.cpp:41:32: error: 'inv' was not declared in this scope
         ans = ans * f[a] % p * inv[b] % p * inv[a-b] % p;
                                ^
0_0_29887408_25048.cpp: At global scope:
0_0_29887408_25048.cpp:87:6: error: 'N' was not declared in this scope
 ll p[N],a[N];
      ^
0_0_29887408_25048.cpp:87:11: error: 'N' was not declared in this scope
 ll p[N],a[N];
           ^
0_0_29887408_25048.cpp: In function 'int main()':
0_0_29887408_25048.cpp:95:13: error: 'i' was not declared in this scope
         for(i = 0;i <= k-1;i++){
             ^
0_0_29887408_25048.cpp:96:26: error: 'p' was not declared in this scope
             scanf("%lld",p[i]);
                          ^
0_0_29887408_25048.cpp:98:13: error: 'a' was not declared in this scope
             a[i] = Lucas(n,m,p[i]);
             ^
0_0_29887408_25048.cpp:100:33: error: 'a' was not declared in this scope
         printf("%lld\n",China(k,a,p));
                                 ^
0_0_29887408_25048.cpp:100:35: error: 'p' was not declared in this scope
         printf("%lld\n",China(k,a,p));
                                   ^


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 20:03:17, Gzip enabled