QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#653736 | #5434. Binary Substrings | ucup-team4944 | Compile Error | / | / | C++14 | 4.8kb | 2024-10-18 20:33:58 | 2024-10-18 20:34:05 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code:114:2: error: stray ‘#’ in program 114 | }#include <bits/stdc++.h> | ^ answer.code:114:3: error: ‘include’ does not name a type 114 | }#include <bits/stdc++.h> | ^~~~~~~ answer.code:118:11: error: redefinition of ‘const int N’ 118 | const int N = (1 << 19) + 5; | ^ answer.code:5:11: note: ‘const int N’ previously defined here 5 | const int N = (1 << 19) + 5; | ^ answer.code:120:5: error: redefinition of ‘int n’ 120 | int n, m, k; | ^ answer.code:7:5: note: ‘int n’ previously declared here 7 | int n, m, k; | ^ answer.code:120:8: error: redefinition of ‘int m’ 120 | int n, m, k; | ^ answer.code:7:8: note: ‘int m’ previously declared here 7 | int n, m, k; | ^ answer.code:120:11: error: redefinition of ‘int k’ 120 | int n, m, k; | ^ answer.code:7:11: note: ‘int k’ previously declared here 7 | int n, m, k; | ^ answer.code:121:5: error: redefinition of ‘int vis [524293][2]’ 121 | int vis[N][2], op[N]; | ^~~ answer.code:8:5: note: ‘int vis [524293][2]’ previously declared here 8 | int vis[N][2], op[N]; | ^~~ answer.code:121:16: error: redefinition of ‘int op [524293]’ 121 | int vis[N][2], op[N]; | ^~ answer.code:8:16: note: ‘int op [524293]’ previously declared here 8 | int vis[N][2], op[N]; | ^~ answer.code:122:5: error: redefinition of ‘int s [524293]’ 122 | int s[N], tp, a[N], f[N], sz[N]; | ^ answer.code:9:5: note: ‘int s [524293]’ previously declared here 9 | int s[N], tp, a[N], f[N], sz[N]; | ^ answer.code:122:11: error: redefinition of ‘int tp’ 122 | int s[N], tp, a[N], f[N], sz[N]; | ^~ answer.code:9:11: note: ‘int tp’ previously declared here 9 | int s[N], tp, a[N], f[N], sz[N]; | ^~ answer.code:122:15: error: redefinition of ‘int a [524293]’ 122 | int s[N], tp, a[N], f[N], sz[N]; | ^ answer.code:9:15: note: ‘int a [524293]’ previously declared here 9 | int s[N], tp, a[N], f[N], sz[N]; | ^ answer.code:122:21: error: redefinition of ‘int f [524293]’ 122 | int s[N], tp, a[N], f[N], sz[N]; | ^ answer.code:9:21: note: ‘int f [524293]’ previously declared here 9 | int s[N], tp, a[N], f[N], sz[N]; | ^ answer.code:122:27: error: redefinition of ‘int sz [524293]’ 122 | int s[N], tp, a[N], f[N], sz[N]; | ^~ answer.code:9:27: note: ‘int sz [524293]’ previously declared here 9 | int s[N], tp, a[N], f[N], sz[N]; | ^~ answer.code:123:5: error: redefinition of ‘int pre [524293]’ 123 | int pre[N], nxt[N]; | ^~~ answer.code:10:5: note: ‘int pre [524293]’ previously declared here 10 | int pre[N], nxt[N]; | ^~~ answer.code:123:13: error: redefinition of ‘int nxt [524293]’ 123 | int pre[N], nxt[N]; | ^~~ answer.code:10:13: note: ‘int nxt [524293]’ previously declared here 10 | int pre[N], nxt[N]; | ^~~ answer.code:124:5: error: redefinition of ‘int book [524293]’ 124 | int book[N]; | ^~~~ answer.code:11:5: note: ‘int book [524293]’ previously declared here 11 | int book[N]; | ^~~~ answer.code:126:5: error: redefinition of ‘int getf(int)’ 126 | int getf(int x) { return x == f[x] ? x : f[x] = getf(f[x]); } | ^~~~ answer.code:14:5: note: ‘int getf(int)’ previously defined here 14 | int getf(int x) { return x == f[x] ? x : f[x] = getf(f[x]); } | ^~~~ answer.code:128:6: error: redefinition of ‘void dfs(int)’ 128 | void dfs(int x) { | ^~~ answer.code:16:6: note: ‘void dfs(int)’ previously defined here 16 | void dfs(int x) { | ^~~ answer.code:139:5: error: redefinition of ‘int main()’ 139 | int main() | ^~~~ answer.code:27:5: note: ‘int main()’ previously defined here 27 | int main() | ^~~~ answer.code: In function ‘int main()’: answer.code:29:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 29 | scanf("%d", &n); | ~~~~~^~~~~~~~~~ answer.code: In function ‘int main()’: answer.code:141:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 141 | scanf("%d", &n); | ~~~~~^~~~~~~~~~