QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#44898#4561. Catfish FarmMaMengQiCompile Error//C++141.8kb2022-08-22 11:26:592022-08-22 11:27:01

Details

answer.code: In function ‘long long int max_weights(int, int, std::vector<int>, std::vector<int>, std::vector<int>)’:
answer.code:26:17: error: request for member ‘clear’ in ‘summ.std::vector<long long int>::operator[](((std::vector<long long int>::size_type)i))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’}
   26 |         summ[i].clear();
      |                 ^~~~~