QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#637842#7034. HoneycombZhaoZiLongCompile Error//C++203.4kb2024-10-13 14:13:082024-10-13 14:13:08

詳細信息

answer.code: In function ‘void Main()’:
answer.code:17:26: error: ‘gets’ was not declared in this scope; did you mean ‘getw’?
   17 |     scanf("%d%d",&r,&c); gets(g[0]);
      |                          ^~~~
      |                          getw
answer.code:17:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   17 |     scanf("%d%d",&r,&c); gets(g[0]);
      |     ~~~~~^~~~~~~~~~~~~~
answer.code: In function ‘int main()’:
answer.code:112:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  112 |     scanf("%d",&t);
      |     ~~~~~^~~~~~~~~