Problem | binomial |
---|---|
User | jeongwonho64 |
Submission Time | 2023-05-16 19:48:35 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
binomial.cpp: In function ‘__int128 nck(__int128, __int128)’:
binomial.cpp:92:5: error: ‘int128_t’ was not declared in this scope; did you mean ‘int32_t’?
92 | int128_t result = n;
| ^~~~~~~~
| int32_t
binomial.cpp:94:9: error: ‘result’ was not declared in this scope
94 | result *= (n-i+1);
| ^~~~~~
binomial.cpp:98:12: error: ‘result’ was not declared in this scope
98 | return result;
| ^~~~~~
binomial.cpp: In function ‘int32_t main()’:
binomial.cpp:103:54: error: invalid operands of types ‘__int128’ and ‘<unresolved overloaded function type>’ to binary ‘operator<<’
103 | cout << nck((__int128(n), __int128(k))%1000000007<< endl;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~