QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#45074#4561. Catfish FarmHuangHanShengCompile Error//C++171.5kb2022-08-22 13:16:362022-08-22 13:16:37

详细

answer.code: In function ‘long long int max_weights(int, int, std::vector<int>, std::vector<int>, std::vector<int>)’:
answer.code:49:12: error: ‘x’ was not declared in this scope
   49 |         if(x[i]&1) v1 += w[i];
      |            ^
answer.code:49:26: error: ‘w’ was not declared in this scope
   49 |         if(x[i]&1) v1 += w[i];
      |                          ^
answer.code:50:20: error: ‘w’ was not declared in this scope
   50 |         else v2 += w[i];
      |                    ^