QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#856756#9807. Make Them BelieveZhangYiDeCompile Error//C89546b2025-01-14 16:01:142025-01-14 16:01:15

Details

answer.code: In function ‘main’:
answer.code:15:9: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
   15 |         for(int i=0;i<6;i++)
      |         ^~~
answer.code:15:9: note: use option ‘-std=c99’, ‘-std=gnu99’, ‘-std=c11’ or ‘-std=gnu11’ to compile your code
answer.code:7:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 |         scanf("%s %d",first,&score1);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:8:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    8 |         scanf("%s %d",second,&score2);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:17:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   17 |                 scanf("%s %d",cur,&t);
      |                 ^~~~~~~~~~~~~~~~~~~~~