QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#103504#2827. AutobiographyZhaoZiLongCompile Error//C++1.1kb2023-05-06 13:20:182023-05-06 13:20:20

Details

answer.code: In function ‘int main()’:
answer.code:47:17: error: ‘gets’ was not declared in this scope; did you mean ‘getw’?
   47 |                 gets(c+1);
      |                 ^~~~
      |                 getw
answer.code:51:30: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   51 |                         scanf("%d%d",&a,&b);
      |                         ~~~~~^~~~~~~~~~~~~~