Language: C


File Edit Options Buffers Tools C Help
    c[i].flag = NOT_EXIST;
    //?????????
    d[i].c = 'D';
    d[i].x = i+1;
    d[i].flag = NOT_EXIST;
  }
  /*
  for(i=0;i<13;i++){
    printf("s[%d].x = %d\n",i,s[i].x);
  }
  for(i=0;i<13;i++){
    printf("c[%d].x = %d\n",i,c[i].x);
  }
  */

  //?????°??\???
  scanf("%d",&n);

  //n???????????????
  Card a[n];

  //??????????????????????¨????
  for(i=0;i<n;i++){
    scanf("%c %d",&a[i].c,&a[i].x);

    //?????????????????´?????????NOT_EXIT??????EXIT?????????
    switch(a[i].c){
    case 'S':
      for(j=0;j<13;j++)
        if(a[i].x == s[j].x)
          s[j].flag = EXIST;
    case 'H':
      for(j=0;j<13;j++)
        if(a[i].x == h[j].x)
          h[j].flag = EXIST;
    case 'C':
      for(j=0;j<13;j++)
        if(a[i].x == c[j].x)
          c[j].flag = EXIST;
    case 'D':
      for(j=0;j<13;j++)
        if(a[i].x == d[j].x)
          d[j].flag = EXIST;
    }
  }

  for(i=0;i<13;i++){
    if(s[i].flag != EXIST){
      printf("%c %d\n",s[i].c, s[i].x);
    }
  }
  for(i=0;i<13;i++){
    if(h[i].flag != EXIST){
      printf("%c %d\n",h[i].c, h[i].x);
    }
  }
  for(i=0;i<13;i++){
    if(c[i].flag != EXIST){
      printf("%c %d\n",c[i].c, c[i].x);
    }
  }
  for(i=0;i<13;i++){
    if(d[i].flag != EXIST){
      printf("%c %d\n",d[i].c, d[i].x);
    }
-UUU:**--F1  a.c            29% L40    (C/l Abbrev) ----------------------------

Compiler output:
main.c:2:1: error: unknown type name 'File'
    2 | File Edit Options Buffers Tools C Help
      | ^~~~
main.c:2:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Options'
    2 | File Edit Options Buffers Tools C Help
      |           ^~~~~~~
main.c:2:11: error: unknown type name 'Options'
main.c:5:7: error: 'i' undeclared here (not in a function)
    5 |     d[i].c = 'D';
      |       ^
main.c:5:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    5 |     d[i].c = 'D';
      |         ^
main.c:6:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    6 |     d[i].x = i+1;
      |         ^
main.c:7:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    7 |     d[i].flag = NOT_EXIST;
      |         ^
main.c:8:3: error: expected identifier or '(' before '}' token
    8 |   }
      |   ^
main.c:19:9: error: expected declaration specifiers or '...' before string constant
   19 |   scanf("%d",&n);
      |         ^~~~
main.c:19:14: error: expected declaration specifiers or '...' before '&' token
   19 |   scanf("%d",&n);
      |              ^
main.c:22:3: error: unknown type name 'Card'
   22 |   Card a[n];
      |   ^~~~
main.c:22:10: error: 'n' undeclared here (not in a function)
   22 |   Card a[n];
      |          ^
main.c:25:3: error: expected identifier or '(' before 'for'
   25 |   for(i=0;i<n;i++){
      |   ^~~
main.c:25:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   25 |   for(i=0;i<n;i++){
      |            ^
main.c:25:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   25 |   for(i=0;i<n;i++){
      |                ^~
main.c:49:3: error: expected identifier or '(' before 'for'
   49 |   for(i=0;i<13;i++){
      |   ^~~
main.c:49:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   49 |   for(i=0;i<13;i++){
      |            ^
main.c:49:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   49 |   for(i=0;i<13;i++){
      |                 ^~
main.c:54:3: error: expected identifier or '(' before 'for'
   54 |   for(i=0;i<13;i++){
      |   ^~~
main.c:54:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   54 |   for(i=0;i<13;i++){
      |            ^
main.c:54:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   54 |   for(i=0;i<13;i++){
      |                 ^~
main.c:59:3: error: expected identifier or '(' before 'for'
   59 |   for(i=0;i<13;i++){
      |   ^~~
main.c:59:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   59 |   for(i=0;i<13;i++){
      |            ^
main.c:59:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   59 |   for(i=0;i<13;i++){
      |                 ^~
main.c:64:3: error: expected identifier or '(' before 'for'
   64 |   for(i=0;i<13;i++){
      |   ^~~
main.c:64:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   64 |   for(i=0;i<13;i++){
      |            ^
main.c:64:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   64 |   for(i=0;i<13;i++){
      |                 ^~