| Problem | chickensoup |
|---|---|
| User | maximushartanto |
| Submission Time | 2025-12-04 09:54:59 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
chickensoup.cpp: In function ‘constexpr i64 bc(i64, i64)’:
chickensoup.cpp:46:29: error: call to non-‘constexpr’ function ‘std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) const [with _Tp = long long int; _Alloc = std::allocator<long long int>; std::vector<_Tp, _Alloc>::const_reference = const long long int&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]’
46 | return modded(modded(fact[n] * ifact[r]) * ifact[n - r]);
| ^
chickensoup.cpp:14:21: note: in definition of macro ‘modded’
14 | #define modded(x) ((x) % MOD)
| ^
chickensoup.cpp:46:16: note: in expansion of macro ‘modded’
46 | return modded(modded(fact[n] * ifact[r]) * ifact[n - r]);
| ^~~~~~