QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#44789#4561. Catfish FarmMaMengQiCompile Error//C++176.8kb2022-08-21 16:43:272022-08-21 16:43:29

Details

answer.code: In function ‘long long int max_weights(int, int, std::vector<int>, std::vector<int>, std::vector<int>)’:
answer.code:173:11: error: redeclaration of ‘int j’
  173 |       int j = fish[i-1].size()-1;
      |           ^
answer.code:113:11: note: ‘int j’ previously declared here
  113 |       int j = 0;
      |           ^