QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#537983 | #4565. Rarest Insects | egypt_ioi2024_02# | Compile Error | / | / | C++20 | 1.5kb | 2024-08-30 20:29:10 | 2024-08-30 20:29:10 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
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)’