QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#44962#4561. Catfish FarmGuanYunchangCompile Error//C++17903b2022-08-22 12:00:282022-08-22 12:00:28

Details

answer.code: In function ‘ll max_weights(int, int, std::vector<int>, std::vector<int>, std::vector<int>)’:
answer.code:28:23: error: invalid types ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]’ for array subscript
   28 |             pl += w[0][i];
      |                       ^
answer.code:29:23: error: invalid types ‘__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]’ for array subscript
   29 |             pr -= w[1][i];
      |                       ^