Problem binomial
User chenweilian
Submission Time 2024-02-12 15:28:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

binomial.cpp:1:1: error: ‘MOD’ does not name a type
1 | MOD = 1000000007
| ^~~
binomial.cpp:8:5: error: expected unqualified-id before ‘for’
8 | for j in range(1, k+1):
| ^~~
binomial.cpp:11:13: error: ‘ans’ does not name a type
11 | ans /= j;
| ^~~
binomial.cpp:12:1: error: ‘ans’ does not name a type
12 | ans %= MOD
| ^~~