0_0_36916992_27660.cpp:15:1: error: 'll' does not name a type
ll f[N],inv[N];
^
0_0_36916992_27660.cpp: In function 'int C(int, int)':
0_0_36916992_27660.cpp:28:12: error: 'f' was not declared in this scope
return f[a] * inv[b] % p * inv[a-b] % p;
^
0_0_36916992_27660.cpp:28:19: error: 'inv' was not declared in this scope
return f[a] * inv[b] % p * inv[a-b] % p;
^
0_0_36916992_27660.cpp: In function 'void init()':
0_0_36916992_27660.cpp:33:5: error: 'f' was not declared in this scope
f[0]=f[1]=inv[0]=1;
^
0_0_36916992_27660.cpp:33:15: error: 'inv' was not declared in this scope
f[0]=f[1]=inv[0]=1;
^
0_0_36916992_27660.cpp: In function 'void solve()':
0_0_36916992_27660.cpp:48:5: error: 'll' was not declared in this scope
ll ans = C(k+m-1, m-1);
^
0_0_36916992_27660.cpp:51:12: error: expected ';' before 'temp'
ll temp = C(k+m-1 - i*n, m-1) * C(m, i) % p;
^
0_0_36916992_27660.cpp:53:13: error: 'ans' was not declared in this scope
ans = (ans - temp + p) % p;
^
0_0_36916992_27660.cpp:53:26: error: 'temp' was not declared in this scope
ans = (ans - temp + p) % p;
^
0_0_36916992_27660.cpp:55:13: error: 'ans' was not declared in this scope
ans = (ans + temp) % p;
^
0_0_36916992_27660.cpp:55:26: error: 'temp' was not declared in this scope
ans = (ans + temp) % p;
^
0_0_36916992_27660.cpp:57:22: error: 'ans' was not declared in this scope
printf("%lld\n", ans);
^
|