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