0_0_38677691_19932.cpp: In function 'long long int ksm(long long int, long long int)':
0_0_38677691_19932.cpp:7:57: error: 'mod' was not declared in this scope; did you mean 'modf'?
7 | long long ksm(long long b,long long p){long long r=1;b%=mod;while(p){if(p&1)r=(r*b)%mod;p>>=1;b=(b*b)%mod;}return r;}
| ^~~
| modf
0_0_38677691_19932.cpp: In function 'void init(int)':
0_0_38677691_19932.cpp:14:35: error: 'mod' was not declared in this scope; did you mean 'modf'?
14 | fac[i]=fac[i-1]*i%mod;
| ^~~
| modf
0_0_38677691_19932.cpp:16:27: error: 'mod' was not declared in this scope; did you mean 'modf'?
16 | inv[n]=ksm(fac[n],mod-2);
| ^~~
| modf
0_0_38677691_19932.cpp: In function 'long long int C(int, int)':
0_0_38677691_19932.cpp:25:30: error: 'mod' was not declared in this scope; did you mean 'modf'?
25 | return fac[n]*inv[m]%mod*inv[n-m]%mod;
| ^~~
| modf
0_0_38677691_19932.cpp: In function 'void solve()':
0_0_38677691_19932.cpp:48:64: error: 'mod' was not declared in this scope; did you mean 'modf'?
48 | ans=(ans+C(t,4)*((C(t1-4,2)+C(t2-4,2))%mod))%mod;
| ^~~
| modf
|