Language: C

#include<stdio.h>

struct card{
    unsined short rank;
    unsined char mark;
    unsined char frg;
}
int main(){
    unsigned short num;
    unsigned short i, j, k;
    unsigned short rank;
    unsigned char mark;
    struct card card[52];
    for(i = 0;i < 4;i++){
        for(j = 0;j < 13;j++){
            card[i * 13j + j].rank = j + 1;
            switch(i){
            case 0:
                card[i * 13 + j].mark = 'S';
                break;
            case 1:
                card[i * 13 + j].mark = 'H';
                break;
            case 2:
                card[i * 13 + j].mark = 'C';
                break;
            case 3:
                card[i * 13 + j].mark = 'D';
                break;
            defoult:
            }
            card[i * 13 + j].frg = 0;
        }
    }
    scanf("%d", &num);
    for(i = 0;i < num;i++){
        scanf("%c %d", &mark, &rank);
        for(j = 0;j < 52;j++){
            if(card[j].mark == mark && card[j].rank == rank){
                card[j].frg = 1; 
            }
        }
    }
    for(i = 0;i < 52;i++){
        if(card[i] == 0){
            printf("%c %d\n", card[i].mark, card[i].rank);
        }
    }
    return 0;
}


Compiler output:
main.c:4:5: error: expected specifier-qualifier-list before 'unsined'
    4 |     unsined short rank;
      |     ^~~~~~~
main.c:8:1: error: expected ';', identifier or '(' before 'int'
    8 | int main(){
      | ^~~
main.c: In function 'main':
main.c:16:17: error: array subscript is not an integer
   16 |             card[i * 13j + j].rank = j + 1;
      |                 ^
main.c:19:33: error: 'struct card' has no member named 'mark'
   19 |                 card[i * 13 + j].mark = 'S';
      |                                 ^
main.c:22:33: error: 'struct card' has no member named 'mark'
   22 |                 card[i * 13 + j].mark = 'H';
      |                                 ^
main.c:25:33: error: 'struct card' has no member named 'mark'
   25 |                 card[i * 13 + j].mark = 'C';
      |                                 ^
main.c:28:33: error: 'struct card' has no member named 'mark'
   28 |                 card[i * 13 + j].mark = 'D';
      |                                 ^
main.c:32:29: error: 'struct card' has no member named 'frg'
   32 |             card[i * 13 + j].frg = 0;
      |                             ^
main.c:39:23: error: 'struct card' has no member named 'mark'
   39 |             if(card[j].mark == mark && card[j].rank == rank){
      |                       ^
main.c:39:47: error: 'struct card' has no member named 'rank'
   39 |             if(card[j].mark == mark && card[j].rank == rank){
      |                                               ^
main.c:40:24: error: 'struct card' has no member named 'frg'
   40 |                 card[j].frg = 1;
      |                        ^
main.c:45:20: error: invalid operands to binary == (have 'struct card' and 'int')
   45 |         if(card[i] == 0){
      |            ~~~~~~~ ^~
      |                |
      |                struct card
main.c:46:38: error: 'struct card' has no member named 'mark'
   46 |             printf("%c %d\n", card[i].mark, card[i].rank);
      |                                      ^
main.c:46:52: error: 'struct card' has no member named 'rank'
   46 |             printf("%c %d\n", card[i].mark, card[i].rank);
      |                                                    ^