0_0_39829693_17776.cpp: In function 'int main()':
0_0_39829693_17776.cpp:38:83: error: 'mod_inverse' was not declared in this scope
38 | dp[i][j] = (dp[i][j] + (long long)dp[i][k-1] * w[k-1] % MOD * mod_inverse(total_weight, MOD) % MOD) % MOD;
| ^~~~~~~~~~~
0_0_39829693_17776.cpp:41:83: error: 'mod_inverse' was not declared in this scope
41 | dp[i][j] = (dp[i][j] + (long long)dp[k+1][j] * w[k-1] % MOD * mod_inverse(total_weight, MOD) % MOD) % MOD;
| ^~~~~~~~~~~
|