QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#782129#9799. Magical PaletteaYi_7Compile Error//C++17290b2024-11-25 18:59:042024-11-25 18:59:04

Judging History

你现在查看的是最新测评结果

  • [2024-11-25 18:59:04]
  • 评测
  • [2024-11-25 18:59:04]
  • 提交

answer

c  if(ps&1)
       {
          if(huan%2==0)
          {
             printf("WA\n"); 
          }
          else printf("AC\n");
       }
       else
       {
          if(huan%2==1)
          {
            printf("WA\n");
          }
          else printf("AC\n");
       }

Details

answer.code:1:1: error: ‘c’ does not name a type
    1 | c  if(ps&1)
      | ^
answer.code:9:8: error: expected unqualified-id before ‘else’
    9 |        else
      |        ^~~~