0_0_25956089_2806.cpp: In function 'll qpow(ll, ll)':
0_0_25956089_2806.cpp:13:23: error: 'mod' was not declared in this scope
res=res*a%mod;
^
0_0_25956089_2806.cpp:14:15: error: 'mod' was not declared in this scope
a=a*a%mod;
^
0_0_25956089_2806.cpp: In function 'void init()':
0_0_25956089_2806.cpp:21:5: error: 'fas' was not declared in this scope
fas[1]=1;
^
0_0_25956089_2806.cpp:24:27: error: 'mod' was not declared in this scope
fas[i]=fas[i-1]*i%mod;
^
0_0_25956089_2806.cpp:28:9: error: 'inv' was not declared in this scope
inv[i]=qpow(fas[i],mod-2);
^
0_0_25956089_2806.cpp:28:28: error: 'mod' was not declared in this scope
inv[i]=qpow(fas[i],mod-2);
^
0_0_25956089_2806.cpp: In function 'll C(int, int)':
0_0_25956089_2806.cpp:41:12: error: 'fas' was not declared in this scope
return fas[n]*inv[n-m]%mod*inv[m]%mod;
^
0_0_25956089_2806.cpp:41:19: error: 'inv' was not declared in this scope
return fas[n]*inv[n-m]%mod*inv[m]%mod;
^
0_0_25956089_2806.cpp:41:28: error: 'mod' was not declared in this scope
return fas[n]*inv[n-m]%mod*inv[m]%mod;
^
0_0_25956089_2806.cpp: In function 'int main()':
0_0_25956089_2806.cpp:53:54: error: 'mod' was not declared in this scope
if(i&1) ans=(ans-C(m,i)*C(k-i*n-1+m,m-1)%mod+mod)%mod;
^
0_0_25956089_2806.cpp:54:51: error: 'mod' was not declared in this scope
else ans=(ans+C(m,i)*C(k-i*n-1+m,m-1)%mod)%mod;
^
|