QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#637988#7034. HoneycombGuanYunchangCompile Error//C++202.0kb2024-10-13 14:33:552024-10-13 14:33:55

Details

answer.code: In function ‘int main()’:
answer.code:63:9: error: ‘gets’ was not declared in this scope; did you mean ‘getw’?
   63 |         gets(s[0]);
      |         ^~~~
      |         getw
answer.code:54:16: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   54 |         freopen("2.in","r",stdin);
      |         ~~~~~~~^~~~~~~~~~~~~~~~~~
answer.code:56:6: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   56 | scanf("%d",&T);
      | ~~~~~^~~~~~~~~
answer.code:60:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   60 |         scanf("%d%d",&n,&m);
      |         ~~~~~^~~~~~~~~~~~~~