QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#230163 | #6558. Allergen Testing | ucup-team1565# | Compile Error | / | / | C++20 | 2.5kb | 2023-10-28 17:47:00 | 2023-10-28 17:47:00 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In function ‘int dfs(int, int, int, std::pair<int, int>)’: answer.code:64:14: error: ‘toRem’ was not declared in this scope 64 | if (toRem[i]) { | ^~~~~ answer.code:65:24: error: ‘cur’ was not declared in this scope 65 | if (dfs(a, cur, tar, e[i].nd)) | ^~~ answer.code:73:16: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 73 | int32_t main() { | ^~ answer.code:73:16: note: remove parentheses to default-initialize a variable 73 | int32_t main() { | ^~ | -- answer.code:73:16: note: or replace parentheses with braces to value-initialize a variable answer.code:73:19: error: a function-definition is not allowed here before ‘{’ token 73 | int32_t main() { | ^ answer.code:106:5: error: expected ‘}’ at end of input 106 | } | ^ answer.code:54:49: note: to match this ‘{’ 54 | int dfs(int u, int par, int tar, pii lastToRem) { | ^ answer.code:106:5: warning: control reaches end of non-void function [-Wreturn-type] 106 | } | ^