QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#213092 | #5418. Color the Tree | Monsterstar | Compile Error | / | / | C++17 | 6.7kb | 2023-10-14 11:41:38 | 2023-10-14 11:41:38 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:177:5: error: stray ‘#’ in program 177 | } #include <bits/stdc++.h> | ^ answer.code:177:6: error: ‘include’ does not name a type 177 | } #include <bits/stdc++.h> | ^~~~~~~ answer.code:189:11: error: redefinition of ‘const long long int N’ 189 | const int N = 1e5 + 10, M = 2 * N; | ^ answer.code:13:11: note: ‘const long long int N’ previously defined here 13 | const int N = 1e5 + 10, M = 2 * N; | ^ answer.code:189:25: error: redefinition of ‘const long long int M’ 189 | const int N = 1e5 + 10, M = 2 * N; | ^ answer.code:13:25: note: ‘const long long int M’ previously defined here 13 | const int N = 1e5 + 10, M = 2 * N; | ^ answer.code:190:10: error: redefinition of ‘const LL INF’ 190 | const LL INF = 1e9; | ^~~ answer.code:14:10: note: ‘const LL INF’ previously defined here 14 | const LL INF = 1e9; | ^~~ answer.code:192:8: error: redefinition of ‘struct node’ 192 | struct node{ | ^~~~ answer.code:16:8: note: previous definition of ‘struct node’ 16 | struct node{ | ^~~~ answer.code:194:2: error: conflicting declaration ‘int e [200020]’ 194 | }e[M]; | ^ answer.code:18:2: note: previous declaration as ‘node e [200020]’ 18 | }e[M]; | ^ answer.code:196:5: error: redefinition of ‘long long int g [100010]’ 196 | int g[N]; | ^ answer.code:20:5: note: ‘long long int g [100010]’ previously declared here 20 | int g[N]; | ^ answer.code:197:13: error: redefinition of ‘std::vector<long long int> vec [100010]’ 197 | vector<int> vec[N]; | ^~~ answer.code:21:13: note: ‘std::vector<long long int> vec [100010]’ previously declared here 21 | vector<int> vec[N]; | ^~~ answer.code:198:5: error: redefinition of ‘long long int h [100010]’ 198 | int h[N],idx,n; | ^ answer.code:22:5: note: ‘long long int h [100010]’ previously declared here 22 | int h[N],idx,n; | ^ answer.code:198:10: error: redefinition of ‘long long int idx’ 198 | int h[N],idx,n; | ^~~ answer.code:22:10: note: ‘long long int idx’ previously declared here 22 | int h[N],idx,n; | ^~~ answer.code:198:14: error: redefinition of ‘long long int n’ 198 | int h[N],idx,n; | ^ answer.code:22:14: note: ‘long long int n’ previously declared here 22 | int h[N],idx,n; | ^ answer.code:199:5: error: redefinition of ‘long long int st [100010][30]’ 199 | int st[N][30],deep[N],f[N][30]; | ^~ answer.code:23:5: note: ‘long long int st [100010][30]’ previously declared here 23 | int st[N][30],deep[N],f[N][30]; | ^~ answer.code:199:15: error: redefinition of ‘long long int deep [100010]’ 199 | int st[N][30],deep[N],f[N][30]; | ^~~~ answer.code:23:15: note: ‘long long int deep [100010]’ previously declared here 23 | int st[N][30],deep[N],f[N][30]; | ^~~~ answer.code:199:23: error: redefinition of ‘long long int f [100010][30]’ 199 | int st[N][30],deep[N],f[N][30]; | ^ answer.code:23:23: note: ‘long long int f [100010][30]’ previously declared here 23 | int st[N][30],deep[N],f[N][30]; | ^ answer.code:200:5: error: redefinition of ‘long long int ver’ 200 | int ver; | ^~~ answer.code:24:5: note: ‘long long int ver’ previously declared here 24 | int ver; | ^~~ answer.code:201:13: error: redefinition of ‘void add(long long int, long long int)’ 201 | inline void add(int a,int b){ | ^~~ answer.code:25:13: note: ‘void add(long long int, long long int)’ previously defined here 25 | inline void add(int a,int b){ | ^~~ answer.code:207:6: error: redefinition of ‘void init()’ 207 | void init(){ | ^~~~ answer.code:31:6: note: ‘void init()’ previously defined here 31 | void init(){ | ^~~~ answer.code:224:6: error: redefinition of ‘void dfs(long long int, long long int)’ 224 | void dfs(int u,int fa){ | ^~~ answer.code:48:6: note: ‘void dfs(long long int, long long int)’ previously defined here 48 | void dfs(int u,int fa){ | ^~~ answer.code:240:5: error: redefinition of ‘long long int sta [100010]’ 240 | int sta[N],top; | ^~~ answer.code:64:5: note: ‘long long int sta [100010]’ previously declared here 64 | int sta[N],top; | ^~~ answer.code:240:12: error: redefinition of ‘long long int top’ 240 | int sta[N],top; | ^~~ answer.code:64:12: note: ‘long long int top’ previously declared here 64 | int sta[N],top; | ^~~ answer.code:242:4: error: redefinition of ‘LL check(long long int, long long int)’ 242 | LL check(int l,int r){ | ^~~~~ answer.code:66:4: note: ‘LL check(long long int, long long int)’ pr...