QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#309386#8134. LCA Countingucup-team2819#Compile Error//C++142.7kb2024-01-20 16:59:522024-01-20 16:59:52

Details

answer.code: In function ‘int main()’:
answer.code:71:20: error: no match for ‘operator[]’ (operand types are ‘int [200005]’ and ‘std::set<node>::iterator’ {aka ‘std::_Rb_tree<node, node, std::_Identity<node>, std::less<node>, std::allocator<node> >::const_iterator’})
   71 |                 ist[s.begin()] = 0;
      |                    ^