QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#44743 | #4561. Catfish Farm | ZhangYiDe | Compile Error | / | / | C++17 | 5.8kb | 2022-08-21 13:31:11 | 2022-08-21 13:31:13 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘long long int max_weights(int, int, std::vector<int>, std::vector<int>, std::vector<int>)’: answer.code:86:34: error: array of runtime bound cannot be captured by copy, only by reference 86 | option1_inctable[j] = [dp_inc[i-1][j] + total_sum]; | ^~~~~~ answer.code:86:40: error: expected ‘,’ before ‘[’ token 86 | option1_inctable[j] = [dp_inc[i-1][j] + total_sum]; | ^ | , answer.code:86:40: error: expected identifier before ‘[’ token answer.code: In lambda function: answer.code:86:61: error: expected ‘{’ before ‘;’ token 86 | option1_inctable[j] = [dp_inc[i-1][j] + total_sum]; | ^ answer.code: In function ‘long long int max_weights(int, int, std::vector<int>, std::vector<int>, std::vector<int>)’: answer.code:86:61: error: cannot convert ‘max_weights(int, int, std::vector<int>, std::vector<int>, std::vector<int>)::<lambda()>’ to ‘long long int’ in assignment