QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#44734#4561. Catfish FarmGuanYunchangCompile Error//C++175.6kb2022-08-21 12:48:292022-08-21 12:48:30

详细

answer.code: In function ‘long long int max_weights(int, int, std::vector<int>, std::vector<int>, std::vector<int>)’:
answer.code:58:36: error: ‘max_k’ was not declared in this scope
   58 |               if (dp_inc[i-2][k] > max_k) max_k = dp_inc[i-2][k];
      |                                    ^~~~~
answer.code:59:36: error: ‘max_k’ was not declared in this scope
   59 |               if (dp_dec[i-2][k] > max_k) max_k = dp_dec[i-2][k];
      |                                    ^~~~~