QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#556466 | #9252. Penguins in Refrigerator | ZhangYiDe | Compile Error | / | / | C++23 | 9.4kb | 2024-09-10 18:39:57 | 2024-09-10 18:39:57 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:280:20: error: ‘int index [1000010]’ redeclared as different kind of entity 280 | int bad[N], index[N]; | ^ In file included from /usr/include/string.h:432, from /usr/include/c++/13/cstring:42, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:121, from answer.code:1: /usr/include/strings.h:61:1: note: previous declaration ‘const char* index(const char*, int)’ 61 | index (const char *__s, int __c) __THROW | ^~~~~ answer.code: In function ‘void BaoJiaoPisu()’: answer.code:379:22: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript 379 | index[a[i].se] = i; | ^ answer.code:397:33: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript 397 | BIT.update(index[cur], 1); | ^ answer.code:418:40: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript 418 | ord.disable(1, n, index[cur], 1); | ^