QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#500262#9161. Naval battlehyforces#Compile Error//C++205.9kb2024-08-01 06:51:112024-08-01 06:51:11

Details

answer.code: In member function ‘void Bucket::erase(int, int, int)’:
answer.code:119:21: error: no match for ‘operator[]’ (operand types are ‘std::multiset<std::pair<int, int> >’ and ‘int’)
  119 |                 glob[xi].erase({shells[xi].best(),xi<<3|bid});
      |                     ^
answer.code:121:21: error: no match for ‘operator[]’ (operand types are ‘std::multiset<std::pair<int, int> >’ and ‘int’)
  121 |                 glob[xi].insert({shells[xi].best(),xi<<3|bid});
      |                     ^