QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#785567#3876. Attack on Alpha-Zetucup-team4645Compile Error//C++202.2kb2024-11-26 18:17:102024-11-26 18:17:11

详细

answer.code: In function ‘int main()’:
answer.code:51:42: error: ‘gets’ was not declared in this scope; did you mean ‘getw’?
   51 |         for (int i = 1; i <= h + 1; i++) gets(a[i] + 1);
      |                                          ^~~~
      |                                          getw
answer.code:50:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   50 |         scanf("%d %d\n", &h, &w);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~
answer.code:64:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   64 |         scanf("%d", &q);
      |         ~~~~~^~~~~~~~~~
answer.code:67:18: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   67 |             scanf("%d %d", &x, &y);
      |             ~~~~~^~~~~~~~~~~~~~~~~