QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#787245#6421. Degree of Spanning TreeMaMengQiCompile Error//C++201.9kb2024-11-27 10:32:542024-11-27 10:33:04

詳細信息

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);
      |         ~~~~~^~~~~~~~~~