QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#537983#4565. Rarest Insectsegypt_ioi2024_02#Compile Error//C++201.5kb2024-08-30 20:29:102024-08-30 20:29:10

Details

answer.code: In function ‘int min_cardinality(int)’:
answer.code:59:22: error: conflicting declaration ‘bool ok’
   59 |                 bool ok = 0;
      |                      ^~
answer.code:31:22: note: previous declaration as ‘bool ok [(m + 1)]’
   31 |                 bool ok[m + 1]{};
      |                      ^~
answer.code:61:28: error: invalid operands of types ‘bool [(m + 1)]’ and ‘bool’ to binary ‘operator|’
   61 |                         ok |= SZ(nxt[i]) > 0;
      |                         ~~~^~~~~~~~~~~~~~~~~
answer.code:61:28: note:   in evaluation of ‘operator|=(bool [(m + 1)], bool)’