QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#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.
Details
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) { | ~~~~~^