0_0_39257493_17050.cpp:5:1: error: expected ',' or ';' before 'const'
5 | const int N =10000005
| ^~~~~
0_0_39257493_17050.cpp: In function 'void init()':
0_0_39257493_17050.cpp:9:5: error: 'inv' was not declared in this scope; did you mean 'int'?
9 | inv[1]=1;
| ^~~
| int
0_0_39257493_17050.cpp:10:20: error: 'N' was not declared in this scope
10 | for(int i=2;i<=N-5;i++) inv[i]=1ll*(mod-mod/i)*inv[mod%i]%mod;
| ^
0_0_39257493_17050.cpp:11:5: error: 'Finv' was not declared in this scope
11 | Finv[0]=fac[0]=1;
| ^~~~
0_0_39257493_17050.cpp:11:13: error: 'fac' was not declared in this scope
11 | Finv[0]=fac[0]=1;
| ^~~
0_0_39257493_17050.cpp:12:20: error: 'N' was not declared in this scope
12 | for(int i=1;i<=N-5;i++) fac[i]=fac[i-1]*i%mod,Finv[i]=Finv[i-1]*inv[i]%mod;
| ^
0_0_39257493_17050.cpp: In function 'long long int C(int, int)':
0_0_39257493_17050.cpp:16:12: error: 'fac' was not declared in this scope
16 | return fac[n]*Finv[m]%mod*Finv[n-m]%mod;
| ^~~
0_0_39257493_17050.cpp:16:19: error: 'Finv' was not declared in this scope
16 | return fac[n]*Finv[m]%mod*Finv[n-m]%mod;
| ^~~~
0_0_39257493_17050.cpp: In function 'int main()':
0_0_39257493_17050.cpp:27:24: error: 'fac' was not declared in this scope
27 | if(k==0) ans=n*fac[n]%mod;
| ^~~
0_0_39257493_17050.cpp:29:47: error: 'fac' was not declared in this scope
29 | ans=(ans+(n-k-i)*C(i+k-1,i-1)%mod*fac[i+1]%mod*fac[n-i]%mod)%mod;
| ^~~
|