QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#292531#7120. Socceralch07Compile Error//C++149.0kb2023-12-28 07:04:182024-04-28 08:10:16

Details

answer.code: In function ‘int biggest_stadium(int, std::vector<std::vector<int> >)’:
answer.code:282:31: error: no match for ‘operator[]’ (operand types are ‘std::vector<std::pair<int, int> > [4500000]’ and ‘__gnu_cxx::__alloc_traits<std::allocator<rectangle>, rectangle>::value_type’ {aka ‘rectangle’})
  282 | transitioncount += transitions[rlist[i]].size();
      |                               ^