QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#882504 | #8704. 排队 | ZhaoZiLong | Compile Error | / | / | C++17 | 3.6kb | 2025-02-05 08:39:42 | 2025-02-05 08:39:42 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:116:14: error: ‘int link [600114]’ redeclared as different kind of entity 116 | int link[maxn]; | ^ In file included from /usr/include/x86_64-linux-gnu/bits/sigstksz.h:24, from /usr/include/signal.h:328, from /usr/include/c++/14/csignal:42, from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:116, from answer.code:1: /usr/include/unistd.h:819:12: note: previous declaration ‘int link(const char*, const char*)’ 819 | extern int link (const char *__from, const char *__to) | ^~~~ answer.code: In function ‘int main()’: answer.code:136:21: warning: pointer to a function used in arithmetic [-Wpointer-arith] 136 | link[tot]=lst; | ^ answer.code:136:22: error: assignment of read-only location ‘*(link + ((sizetype)tot))’ 136 | link[tot]=lst; | ~~~~~~~~~^~~~ answer.code:147:29: warning: pointer to a function used in arithmetic [-Wpointer-arith] 147 | int w=del(link[x],x); | ^ answer.code:147:29: error: invalid conversion from ‘int (*)(const char*, const char*) noexcept’ to ‘int’ [-fpermissive] 147 | int w=del(link[x],x); | ~~~~~~^ | | | int (*)(const char*, const char*) noexcept answer.code:90:13: note: initializing argument 1 of ‘int del(int, int)’ 90 | int del(int u,int v){ | ~~~~^ answer.code:150:19: warning: pointer to a function used in arithmetic [-Wpointer-arith] 150 | link[x]=y; | ^ answer.code:150:20: error: assignment of read-only location ‘*(link + ((sizetype)x))’ 150 | link[x]=y; | ~~~~~~~^~