QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#379925 | #8568. Expected Diameter | ucup-team3289# | Compile Error | / | / | C++17 | 678b | 2024-04-06 19:58:32 | 2024-04-06 19:58:33 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘int main()’: answer.code:22:79: error: invalid operands of types ‘double’ and ‘const int’ to binary ‘operator%’ 22 | dp[i][j] = (dp[i][j] + dp[i - 1][j - 1] * p1 + dp[i - 1][j] * p2) % MOD; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~ | | | | double const int