QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#379925#8568. Expected Diameterucup-team3289#Compile Error//C++17678b2024-04-06 19:58:322024-04-06 19:58:33

詳細信息

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