Problem | binomial |
---|---|
User | Potato3218 |
Submission Time | 2023-03-12 09:50:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
binomial.cpp: In function ‘long long unsigned int nck(long long unsigned int, long long unsigned int)’:
binomial.cpp:17:10: error: invalid operands of types ‘long double’ and ‘long long unsigned int’ to binary ‘operator%’
17 | result %= MOD;
| ~~~~~~~^~~~~~
binomial.cpp:17:13: error: in evaluation of ‘operator%=(long double, long long unsigned int)’
17 | result %= MOD;
| ^~~
binomial.cpp:19:19: error: invalid operands of types ‘long double’ and ‘const long long unsigned int’ to binary ‘operator%’
19 | return result % MOD;
| ~~~~~~ ^ ~~~
| | |
| | const long long unsigned int
| long double