QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#260691 | #7743. Grand Finale | flower | Compile Error | / | / | C++20 | 2.4kb | 2023-11-22 14:15:36 | 2023-11-22 14:15:37 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In lambda function: answer.code:72:67: error: cannot bind non-const lvalue reference of type ‘int&’ to a value of type ‘short int’ 72 | chkmx(dp[i + 1][j - 1 + o1] , dp[i][j] + O1); | ~~~~~~~~~~~~~~~~~~~~^ answer.code:6:24: note: initializing argument 1 of ‘void chkmx(int&, int)’ 6 | inline void chkmx(int &a, int b) { | ~~~~~^ answer.code:75:63: error: cannot bind non-const lvalue reference of type ‘int&’ to a value of type ‘short int’ 75 | chkmx(dp[i + 2][j + o1], dp[i][j] - 1 + O1); | ~~~~~~~~~~~~~~~~^ answer.code:6:24: note: initializing argument 1 of ‘void chkmx(int&, int)’ 6 | inline void chkmx(int &a, int b) { | ~~~~~^