QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#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.
詳細信息
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