QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#787245 | #6421. Degree of Spanning Tree | MaMengQi | Compile Error | / | / | C++20 | 1.9kb | 2024-11-27 10:32:54 | 2024-11-27 10:33:04 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘void solve()’: answer.code:79:37: error: expected ‘;’ before ‘swap’ 79 | if(u==fu) swap(u, v) swap(fu, fv); | ^~~~~ | ; answer.code:41:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 41 | scanf("%d%d", &n, &m), k=n>>1, tot=0; | ~~~~~^~~~~~~~~~~~~~~~ answer.code:44:32: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 44 | int u, v; scanf("%d%d", &u, &v); | ~~~~~^~~~~~~~~~~~~~~~ answer.code: In function ‘int main()’: answer.code:96:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 96 | scanf("%d", &T); | ~~~~~^~~~~~~~~~