QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#402851 | #8320. 种树 | jxy2012 | Compile Error | / | / | C++23 | 1.9kb | 2024-05-01 16:39:39 | 2024-05-01 16:39:40 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:21:15: error: ‘N’ was not declared in this scope 21 | vector<int> G[N]; | ^ answer.code:22:9: error: ‘N’ was not declared in this scope 22 | int ans[N << 1], top; | ^ answer.code: In function ‘void dfs(int, int)’: answer.code:24:19: error: ‘G’ was not declared in this scope 24 | for (auto v : G[u]) { | ^ answer.code:26:9: error: ‘ans’ was not declared in this scope; did you mean ‘abs’? 26 | ans[++top] = 0; | ^~~ | abs answer.code:30:9: error: ‘ans’ was not declared in this scope; did you mean ‘abs’? 30 | ans[++top] = 1; | ^~~ | abs answer.code: In function ‘__int128 unsigned encode(int, const int*)’: answer.code:39:9: error: ‘G’ was not declared in this scope 39 | G[i].clear(); | ^ answer.code:42:9: error: ‘G’ was not declared in this scope 42 | G[p[i]].push_back(i); | ^ answer.code:48:13: error: ‘ans’ was not declared in this scope; did you mean ‘abs’? 48 | if (ans[i] == 1) { | ^~~ | abs answer.code: At global scope: answer.code:57:9: error: ‘N’ was not declared in this scope 57 | int dfn[N << 1]; | ^ answer.code: In function ‘void decode(int, __int128 unsigned, int*)’: answer.code:68:13: error: ‘dfn’ was not declared in this scope; did you mean ‘dfs’? 68 | dfn[i] = 1; | ^~~ | dfs answer.code:71:13: error: ‘dfn’ was not declared in this scope; did you mean ‘dfs’? 71 | dfn[i] = 0; | ^~~ | dfs answer.code:77:14: error: ‘dfn’ was not declared in this scope; did you mean ‘dfs’? 77 | if (!dfn[i]) { | ^~~ | dfs grader_encoder.cpp: In function ‘__int128 unsigned {anonymous}::read()’: grader_encoder.cpp:7:45: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | #define gc() ((buff == buf + 100000 ? (fread(buf,1,100000,stdin),buff = buf) : 0),*(buff++)) | ~~~~~^~~~~~~~~~~~~~~~~~~~ grader_encoder.cpp:12:17: note: in expansion of macro ‘gc’ 12 | int c = gc(); | ^~ grader_encoder.cpp:7:45: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | #define gc() ((buff == buf + 100000 ? (fread(buf,1,100000,stdin),buff = buf) : 0),*(buff++)) | ~~~~~^~~~~~~~~~~~~~~~~~~~ grader_encoder.cpp:13:39: note: in expansion of macro ‘gc’ 13 | while(c < '0' || c > '9') c = gc(); | ^~ grader_encoder.cpp:7:45: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | #define gc() ((buff == buf + 100000 ? (fread(buf,1,100000,stdin),buff = buf) : 0),*(buff++)) | ~~~~~^~~~~~~~~~~~~~~~~~~~ grader_encoder.cpp:14:62: note: in expansion of macro ‘gc’ 14 | while(c >= '0' && c <= '9') x = x * 10 + c - '0',c = gc(); | ^~