QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#74535#4376. Dragon slayerZhaoZiLongCompile Error//C++111.9kb2023-02-02 11:33:382023-02-02 11:33:40

详细

answer.code: In function ‘void Operate()’:
answer.code:82:37: error: ‘node1’ was not declared in this scope
   82 |                                 cut[node1][node2].set(i);
      |                                     ^~~~~
answer.code:82:44: error: ‘node2’ was not declared in this scope
   82 |                                 cut[node1][node2].set(i);
      |                                            ^~~~~
answer.code:65:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   65 |         scanf("%d%d%d",&n,&m,&k);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~
answer.code:66:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   66 |         scanf("%d%d%d%d",&sx,&sy,&ex,&ey);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:71:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   71 |                 scanf("%d%d%d%d",&r1,&c1,&r2,&c2);
      |                 ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code: In function ‘int main()’:
answer.code:115:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  115 |         scanf("%d",&t);
      |         ~~~~~^~~~~~~~~