criyle/codenet-compile-errors huggingface dataset:
Language: C

#include<stdio.h>
#include<iostream>
using namespace std;
struct Y
{
char s;
int b;
int t=0;
};
int main(){
int i,j,n,ad;
Y d,f[52];
for(i=0;i<4;i++){
	for(j=0;j<13;j++){
		ad=i*13+j;
		if(i==0)
			f[ad].s='S';
		else if(i==1)
			f[ad].s='H';
		else if(i==2)
			f[ad].s='C';
		else
			f[ad].s='D';
		f[ad].b=j+1;
	}
}
scanf("%d",&n);
for(i=0;i<n;i++){

	scanf( "%c" ,&d.s ) ;

	scanf("%c %d",&d.s,&d.b);

	for(j=0;j<52;j++){
		if(d.b==f[j].b&&d.s==f[j].s){
			f[j].t=1;
		}
	}
}
for(i=0;i<52;i++){	
	if(f[i].t==0){
		printf("%c %d\n",f[i].s,f[i].b);
	}
}
return 0;
}

Compiler output:
main.c:2:9: fatal error: iostream: No such file or directory
    2 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>
#include <string.h>

tyedef struct{
  int H;
  int S;
  int D;
  int C;
}CARD;

int main(void){

  int num;
  char str[2];
  int number;
  CARD card[13];

  scanf("%d",&num);

  for(int i=0; i<num; i++){
     scanf("%s %d",str,&number);
     
     if(strcmp(str,"H") == 0)
        card[number - 1].H = 1;
     else if(strcmp(str,"S") == 0)
        card[number - 1].S = 1;
     else if(strcmp(str,"D") = 0)
        card[number - 1].D = 1;
     else if(strcmp(str,"C") == 0)
        card[number - 1].C = 1;

     memset(str,0,sizeof(str));
     memset(number,0,sizeof(number));
  }
  
  for(int i=0; i<13; i++){
     if(card[i].H == 0)
        printf("H %d\n",i + 1);
     if(card[i].S == 0)
        printf("S %d\n",i + 1);
     if(card[i].D == 0)
        printf("D %d\n",i + 1);
     if(card[i].C == 0)
        printf("C %d\n",i + 1);
  }

  return 0;
}

Compiler output:
main.c:4:7: error: expected ';' before 'struct'
    4 | tyedef struct{
      |       ^~~~~~~
      |       ;
main.c: In function 'main':
main.c:16:7: error: expected ';' before 'card'
   16 |   CARD card[13];
      |       ^~~~~
      |       ;
main.c:24:9: error: 'card' undeclared (first use in this function)
   24 |         card[number - 1].H = 1;
      |         ^~~~
main.c:24:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:27:30: error: lvalue required as left operand of assignment
   27 |      else if(strcmp(str,"D") = 0)
      |                              ^
main.c:33:13: error: passing argument 1 of 'memset' makes pointer from integer without a cast [-Wint-conversion]
   33 |      memset(number,0,sizeof(number));
      |             ^~~~~~
      |             |
      |             int
In file included from main.c:2:
/usr/include/string.h:61:28: note: expected 'void *' but argument is of type 'int'
   61 | extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
      |                      ~~~~~~^~~
Language: C

#include <stdio.h>
#include <string.h>

typedef struct{
  int H;
  int S;
  int D;
  int C;
}CARD;

int main(void){

  int num;
  char str[2];
  int number;
  CARD card[13];

  scanf("%d",&num);

  for(int i=0; i<num; i++){
     scanf("%s %d",str,&number);
     
     if(strcmp(str,"H") == 0)
        card[number - 1].H = 1;
     else if(strcmp(str,"S") == 0)
        card[number - 1].S = 1;
     else if(strcmp(str,"D") = 0)
        card[number - 1].D = 1;
     else if(strcmp(str,"C") == 0)
        card[number - 1].C = 1;

     memset(str,0,sizeof(str));
     memset(number,0,sizeof(number));
  }
  
  for(int i=0; i<13; i++){
     if(card[i].H == 0)
        printf("H %d\n",i + 1);
     if(card[i].S == 0)
        printf("S %d\n",i + 1);
     if(card[i].D == 0)
        printf("D %d\n",i + 1);
     if(card[i].C == 0)
        printf("C %d\n",i + 1);
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:27:30: error: lvalue required as left operand of assignment
   27 |      else if(strcmp(str,"D") = 0)
      |                              ^
main.c:33:13: error: passing argument 1 of 'memset' makes pointer from integer without a cast [-Wint-conversion]
   33 |      memset(number,0,sizeof(number));
      |             ^~~~~~
      |             |
      |             int
In file included from main.c:2:
/usr/include/string.h:61:28: note: expected 'void *' but argument is of type 'int'
   61 | extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
      |                      ~~~~~~^~~
Language: C

#include <stdio.h>
#include <string.h>

typedef struct{
  int H;
  int S;
  int D;
  int C;
}CARD;

int main(void){

  int num;
  int c;
  int number;
  CARD card[13];

  scanf("%d",&num);

  for(int i=0; i<num; i++){
     scanf("%c %d",c,&number);
     
     if(c == 'H')
        card[number - 1].H = 1;
     else if(c == 'S') == 0)
        card[number - 1].S = 1;
     else if(c == 'D') == 0)
        card[number - 1].D = 1;
     else if(c == 'C') == 0)
        card[number - 1].C = 1;

     memset(str,0,sizeof(c));
     memset(number,0,sizeof(number));
  }
  
  for(int i=0; i<13; i++){
     if(card[i].H == 0)
        printf("H %d\n",i + 1);
     if(card[i].S == 0)
        printf("S %d\n",i + 1);
     if(card[i].D == 0)
        printf("D %d\n",i + 1);
     if(card[i].C == 0)
        printf("C %d\n",i + 1);
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:25:24: error: expected expression before '==' token
   25 |      else if(c == 'S') == 0)
      |                        ^~
main.c:25:28: error: expected statement before ')' token
   25 |      else if(c == 'S') == 0)
      |                            ^
main.c:27:6: error: 'else' without a previous 'if'
   27 |      else if(c == 'D') == 0)
      |      ^~~~
main.c:27:24: error: expected expression before '==' token
   27 |      else if(c == 'D') == 0)
      |                        ^~
main.c:27:28: error: expected statement before ')' token
   27 |      else if(c == 'D') == 0)
      |                            ^
main.c:29:6: error: 'else' without a previous 'if'
   29 |      else if(c == 'C') == 0)
      |      ^~~~
main.c:29:24: error: expected expression before '==' token
   29 |      else if(c == 'C') == 0)
      |                        ^~
main.c:29:28: error: expected statement before ')' token
   29 |      else if(c == 'C') == 0)
      |                            ^
main.c:32:13: error: 'str' undeclared (first use in this function)
   32 |      memset(str,0,sizeof(c));
      |             ^~~
main.c:32:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:33:13: error: passing argument 1 of 'memset' makes pointer from integer without a cast [-Wint-conversion]
   33 |      memset(number,0,sizeof(number));
      |             ^~~~~~
      |             |
      |             int
In file included from main.c:2:
/usr/include/string.h:61:28: note: expected 'void *' but argument is of type 'int'
   61 | extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
      |                      ~~~~~~^~~
Language: C

#include <stdio.h>
#include <string.h>

typedef struct{
  int H;
  int S;
  int D;
  int C;
}CARD;

int main(void){

  int num;
  int c;
  int number;
  CARD card[13];

  scanf("%d",&num);

  for(int i=0; i<num; i++){
     scanf("%c %d",c,&number);
     
     if(c == 'H')
        card[number - 1].H = 1;
     else if(c == 'S')
        card[number - 1].S = 1;
     else if(c == 'D')
        card[number - 1].D = 1;
     else if(c == 'C')
        card[number - 1].C = 1;

     memset(str,0,sizeof(c));
     memset(number,0,sizeof(number));
  }
  
  for(int i=0; i<13; i++){
     if(card[i].H == 0)
        printf("H %d\n",i + 1);
     if(card[i].S == 0)
        printf("S %d\n",i + 1);
     if(card[i].D == 0)
        printf("D %d\n",i + 1);
     if(card[i].C == 0)
        printf("C %d\n",i + 1);
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:32:13: error: 'str' undeclared (first use in this function)
   32 |      memset(str,0,sizeof(c));
      |             ^~~
main.c:32:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:33:13: error: passing argument 1 of 'memset' makes pointer from integer without a cast [-Wint-conversion]
   33 |      memset(number,0,sizeof(number));
      |             ^~~~~~
      |             |
      |             int
In file included from main.c:2:
/usr/include/string.h:61:28: note: expected 'void *' but argument is of type 'int'
   61 | extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
      |                      ~~~~~~^~~
Language: C

#include <stdio.h>
#include <string.h>

typedef struct{
  int H;
  int S;
  int D;
  int C;
}CARD;

int main(void){

  int num;
  int c;
  int number;
  CARD card[13];

  scanf("%d",&num);
  getc(c);

  while(num > 0){
     scanf("%c %d",c,&number);
     
     if(c == 'H')
        card[number - 1].H = 1;
     else if(c == 'S')
        card[number - 1].S = 1;
     else if(c == 'D')
        card[number - 1].D = 1;
     else if(c == 'C')
        card[number - 1].C = 1;

     memset(c,0,sizeof(c));
     memset(number,0,sizeof(number));
     numm--;
  }
  
  for(int i=0; i<13; i++){
     if(card[i].H == 0)
        printf("H %d\n",i + 1);
     if(card[i].S == 0)
        printf("S %d\n",i + 1);
     if(card[i].D == 0)
        printf("D %d\n",i + 1);
     if(card[i].C == 0)
        printf("C %d\n",i + 1);
  }

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:8: error: passing argument 1 of 'getc' makes pointer from integer without a cast [-Wint-conversion]
   19 |   getc(c);
      |        ^
      |        |
      |        int
In file included from main.c:1:
/usr/include/stdio.h:576:24: note: expected 'FILE *' but argument is of type 'int'
  576 | extern int getc (FILE *__stream) __nonnull ((1));
      |                  ~~~~~~^~~~~~~~
main.c:33:13: error: passing argument 1 of 'memset' makes pointer from integer without a cast [-Wint-conversion]
   33 |      memset(c,0,sizeof(c));
      |             ^
      |             |
      |             int
In file included from main.c:2:
/usr/include/string.h:61:28: note: expected 'void *' but argument is of type 'int'
   61 | extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
      |                      ~~~~~~^~~
main.c:34:13: error: passing argument 1 of 'memset' makes pointer from integer without a cast [-Wint-conversion]
   34 |      memset(number,0,sizeof(number));
      |             ^~~~~~
      |             |
      |             int
/usr/include/string.h:61:28: note: expected 'void *' but argument is of type 'int'
   61 | extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
      |                      ~~~~~~^~~
main.c:35:6: error: 'numm' undeclared (first use in this function); did you mean 'num'?
   35 |      numm--;
      |      ^~~~
      |      num
main.c:35:6: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void){
  int t[4][13];
  int n,i,j,f;
  char c;
 

  for(i=0;i<4;i++){
    for(j=0;j<13;j++){
      t[i][j]=0;
    }
  }
 scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf(" %c %d",&c,&f);
    if(c=='S'){
      t[0][f-1]=1;
    } else if(c=='H'){
      t[1][f-1]=1;
    } else if(c=='C'){
      t[2][f-1]=1;
      } else if(c=='D'){
      t[3][f-1]=1;
      }
  }
  printf("%d\n\n",t[0][0]);

  for(i=0;i<4;i++){
    for(j=0;j<13;j++){
      if(t[i][j]==0){
	if(i==0){
	  printf("S %d\n",j+1);
	}
	else if(i==1){
	  printf("H %d\n",j+1);
	}
	else if(i==2){
	  printf("C %d\n",j+1);
	}
	else{
	  printf("D %d\n",j+1);
	}
      }
    }
  }
}
  return 0;
}

Compiler output:
main.c:48:3: error: expected identifier or '(' before 'return'
   48 |   return 0;
      |   ^~~~~~
main.c:49:1: error: expected identifier or '(' before '}' token
   49 | }
      | ^
Language: C

#include <stdio.h>
#include<string.h>
 int charToNum[128];

int main()
{
bool oks[4][14];
charToNum['S']=0;
charToNum['H']=1;
charToNum['C']=2;
charToNum['D']=3;
memset(oks,false,sizeof(oks));
int n;
scanf("%d\n",&n);
while(n--){
	int m;
	char c;
	scanf("%c %d\n",&c,&m);
	oks[charToNum[c]][m]=true;
}
char ts[4]={'S','H','C','D'};
for(int i=0;i<4;i++){
	for(int j=1;j<=13;j++){
		if(oks[i][j]==false){
			printf("%c %d\n",ts[i],j);
		}
	}
}
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: unknown type name 'bool'
    7 | bool oks[4][14];
      | ^~~~
main.c:3:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    2 | #include<string.h>
  +++ |+#include <stdbool.h>
    3 |  int charToNum[128];
main.c:12:12: error: 'false' undeclared (first use in this function)
   12 | memset(oks,false,sizeof(oks));
      |            ^~~~~
main.c:12:12: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:12:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:30: error: 'true' undeclared (first use in this function)
   19 |         oks[charToNum[c]][m]=true;
      |                              ^~~~
main.c:19:30: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C

#include <stdio.h>

int main() {
  int cards[4][13];
  int leaves = 0;
  char typeio;
  int number;
  int type;
  /*cards??????????????????*/
  for ( int i = 0; i <= 3; i++ ){
    for ( int j = 1; j <= 13; j++ ){
      cards[i][j] = false;
    }
  }
  /*????????????????????????????????°?????????*/
  scanf("%d\n", &number );
  /*????????????????????????????????????????????????????´????true???*/
  for ( int n = number; 0 < n ; n--){
    scanf("%c %d", &typeio, &number );
    if ( typeio == 'S' ) type = 0;
    if ( typeio == 'H' ) type = 1;
    if ( typeio == 'C' ) type = 2;
    if ( typeio == 'D' ) type = 3;
    cards[type][number] = true;
  }
  /*??????????????????????????????????????????*/
  for ( int i = 0; i <= 3; i++ ){
    for ( int j = 1; j <= 13; j++ ){
      if ( cards[i][j] == false ){
        if ( i == 0 ) typeio = 'S';
        if ( i == 1 ) typeio = 'H';
        if ( i == 2 ) typeio = 'C';
        if ( i == 3 ) typeio = 'D';
        printf( "%c %d\n", typeio, j);
      }
    }
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:21: error: 'false' undeclared (first use in this function)
   12 |       cards[i][j] = false;
      |                     ^~~~~
main.c:2:1: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:12:21: note: each undeclared identifier is reported only once for each function it appears in
   12 |       cards[i][j] = false;
      |                     ^~~~~
main.c:24:27: error: 'true' undeclared (first use in this function)
   24 |     cards[type][number] = true;
      |                           ^~~~
main.c:24:27: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C

#include <stdio.h>
??
int main(void)
{
????????int a[4][13];
????????int c, b, ab;
????????char d;
??????????????????
????????for(c = 0; c < 13; c++){
????????????????a[0][c] = c + 1;
????????????????a[1][c] = c + 1;
????????????????a[2][c] = c + 1;
????????????????a[3][c] = c + 1;
????????}
??????????
??????????????????
??????????????????
??????????
??????????
????????scanf("%d", &b);
??????????
????????for(c = 0; c < b; c++){
????????????????scanf("%s %d", &d, &ab);
????????????????if(d == 'S'){
????????????????????????a[0][ab-1] = 0;
????????????????}
????????????????if(d == 'H'){
????????????????????????a[1][ab-1] = 0;
????????????????}
????????????????if(d == 'C'){
????????????????????????a[2][ab-1] = 0;
????????????????}
????????????????if(d == 'D'){
????????????????????????a[3][ab-1] = 0;
????????????????}
????????}
??????????
????????for(c = 0; c < 13; c++){
????????????????if(a[0][c] != 0){
????????????????????????printf("S %d\n", a[0][c]);
????????????????}
????????}
????????for(c = 0; c < 13; c++){
????????????????if(a[1][c] != 0){
????????????????????????printf("H %d\n", a[1][c]);
????????????????}
????????}
????????for(c = 0; c < 13; c++){
????????????????if(a[2][c] != 0){
????????????????????????printf("C %d\n", a[2][c]);
????????????????}
????????}
????????for(c = 0; c < 13; c++){
????????????????if(a[3][c] != 0){
????????????????????????printf("D %d\n", a[3][c]);
????????????????}
????????}
??????????
??????????
??????????
??????????
??????????
??????????
????????return (0);
}

Compiler output:
main.c:2:1: error: expected identifier or '(' before '?' token
    2 | ??
      | ^
Language: C

include<stdio.h>
main()
{
    int i, j, n, count[4][13];
    int l;
    scanf("%d", &n);
    for(i = 0; i < n; i++){
        scanf("%c ", &l);
        switch(l){
        case 'S':
            scanf("%d", &l);
            count[0][l - 1] = 1;
            break;
        case 'H':
            scanf("%d", &l);
            count[1][l - 1] = 1;
            break;
        case 'C':
            scanf("%d", &l);
            count[2][l - 1] = 1;
            break;
        case 'D':
            scanf("%d", &l);
            count[3][l - 1] = 1;
            break;
        }
    }
    for(j = 0; j < 4; j++){
        switch(j){
        case 0:
            l = 'S';
            break;
        case 1:
            l = 'H';
            break;
        case 2:
            l = 'C';
            break;
        case 3:
            l = 'D';
            break;
        }
        for(i = 0; i < 13; i++){
            if(!count[j][i]){
                printf("%c %d\n", l, i + 1);
            }
????????????}
    }
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

#include<stdio.h>
main()
{
    int i, j, n, count[4][13];
    int l;
    scanf("%d", &n);
    for(i = 0; i < n; i++){
        scanf("%c ", &l);
        switch(l){
        case 'S':
            scanf("%d", &l);
            count[0][l - 1] = 1;
            break;
        case 'H':
            scanf("%d", &l);
            count[1][l - 1] = 1;
            break;
        case 'C':
            scanf("%d", &l);
            count[2][l - 1] = 1;
            break;
        case 'D':
            scanf("%d", &l);
            count[3][l - 1] = 1;
            break;
        }
    }
    for(j = 0; j < 4; j++){
        switch(j){
        case 0:
            l = 'S';
            break;
        case 1:
            l = 'H';
            break;
        case 2:
            l = 'C';
            break;
        case 3:
            l = 'D';
            break;
        }
        for(i = 0; i < 13; i++){
            if(!count[j][i]){
                printf("%c %d\n", l, i + 1);
            }
????????????}
    }
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:47:1: error: expected expression before '?' token
   47 | ????????????}
      | ^
Language: C

#include<stdio.h>
main()
{
    int i, j, k, l, n, count[4][13] = {0};
    scanf("%d", &n);
    for(i = 0; i < n; i++){
        scanf("%*c%c %d", &l, &k);
        switch(l){
        case 'S':
            count[0][k - 1] = 1;
            break;
        case 'H':
            count[1][k - 1] = 1;
            break;
        case 'C':
            count[2][k - 1] = 1;
            break;
        case 'D':
            count[3][k - 1] = 1;
            break;
        }
    }
    for(j = 0; j < 4; j++){
        switch(j){
        case 0:
            l = 'S';
            break;
        case 1:
            l = 'H';
            break;
        case 2:
            l = 'C';
            break;
        case 3:
            l = 'D';
            break;
        }
        for(i = 0; i < 13; i++){
            if(!count[j][i]){
                printf("%c %d", l, i + 1);
????????????????????????if(!(i == 12 && j == 3)){
                    putchar('\n');
                }
            }
        }
    }
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:41:1: error: expected expression before '?' token
   41 | ????????????????????????if(!(i == 12 && j == 3)){
      | ^
Language: C

#include<stdio.h>
main()
{
    int i, j, k, l, n, count[4][13] = {0};
    scanf("%d", &n);
    for(i = 0; i < n; i++){
        scanf("%*c%c %d", &l, &k);
        switch(l){
        case 'S':
            count[0][k - 1] = 1;
            break;
        case 'H':
            count[1][k - 1] = 1;
            break;
        case 'C':
            count[2][k - 1] = 1;
            break;
        case 'D':
            count[3][k - 1] = 1;
            break;
        }
    }
    for(j = 0; j < 4; j++){
        switch(j){
        case 0:
            l = 'S';
            break;
        case 1:
            l = 'H';
            break;
        case 2:
            l = 'C';
            break;
        case 3:
            l = 'D';
            break;
        }
        for(i = 0; i < 13; i++){
            if(!count[j][i]){
                printf("%c %d", l, i + 1);
????????????????????????if(!(i == 12 && j == 3){
                putchar('\n');
                }
            }
        }
    }
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:41:1: error: expected expression before '?' token
   41 | ????????????????????????if(!(i == 12 && j == 3){
      | ^
main.c:47:1: error: expected declaration or statement at end of input
   47 | }
      | ^
Language: C

#include<stdio.h>
main()
{
    int i, j, k, l, n, count[4][13] = {0};
    scanf("%d", &n);
    for(i = 0; i < n; i++){
        scanf("%*c%c %d", &l, &k);
        switch(l){
        case 'S':
            count[0][k - 1] = 1;
            break;
        case 'H':
            count[1][k - 1] = 1;
            break;
        case 'C':
            count[2][k - 1] = 1;
            break;
        case 'D':
            count[3][k - 1] = 1;
            break;
        }
    }
    for(j = 0; j < 4; j++){
        switch(j){
        case 0:
            l = 'S';
            break;
        case 1:
            l = 'H';
            break;
        case 2:
            l = 'C';
            break;
        case 3:
            l = 'D';
            break;
        }
        for(i = 0; i < 13; i++){
            if(!count[j][i]){
                printf("%c %d", l, i + 1);
????????????????????????if((i != 12 || j != 3){
                putchar('\n');
                }
            }
        }
    }
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:41:1: error: expected expression before '?' token
   41 | ????????????????????????if((i != 12 || j != 3){
      | ^
main.c:47:1: error: expected declaration or statement at end of input
   47 | }
      | ^
Language: C

#include <stdio.h>

int main(void){
    int n, m,  i, j;
    int cards[][12] = {{}, {}, {}, {}};
    char c[4] = {'S', 'H', 'C', 'D'};

    scanf("%d", n);
    for(i = 0; i < n; i++)[
        scanf("%c %d", &c, &m);
        switch(c){
            case 'S':
                 cards[0][m - 1] = 1;
                 break;
            case 'H':
                 cards[1][m - 1] = 1;
                 break;
            case 'C':
                 cards[2][m - 1] = 1;
                 break;
            case 'D':
                 cards[3][m - 1] = 1;
                 break;
        }
    }
    for(i = 0; i < 4; i++){
        for(j = 0; j < 12; j++){
            if(!cards[i][j])
                printf("%c %d\n", c[i], j + 1);
        }
    }
    return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:9:27: error: expected expression before '[' token
    9 |     for(i = 0; i < n; i++)[
      |                           ^
main.c:24:10: error: expected ';' before '}' token
   24 |         }
      |          ^
      |          ;
   25 |     }
      |     ~     
main.c: At top level:
main.c:26:5: error: expected identifier or '(' before 'for'
   26 |     for(i = 0; i < 4; i++){
      |     ^~~
main.c:26:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   26 |     for(i = 0; i < 4; i++){
      |                  ^
main.c:26:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   26 |     for(i = 0; i < 4; i++){
      |                        ^~
main.c:32:5: error: expected identifier or '(' before 'return'
   32 |     return 0;
      |     ^~~~~~
main.c:33:1: error: expected identifier or '(' before '}' token
   33 | }
      | ^
Language: C

#include <stdio.h>

int main(void){
    int n, m,  i, j;
    int cards[][12] = {{}, {}, {}, {}};
    char c[4] = {'S', 'H', 'C', 'D'};

    scanf("%d", n);
    for(i = 0; i < n; i++){
        scanf("%c %d", &c, &m);
        switch(c){
            case 'S':
                 cards[0][m - 1] = 1;
                 break;
            case 'H':
                 cards[1][m - 1] = 1;
                 break;
            case 'C':
                 cards[2][m - 1] = 1;
                 break;
            case 'D':
                 cards[3][m - 1] = 1;
                 break;
        }
    }
    for(i = 0; i < 4; i++){
        for(j = 0; j < 12; j++){
            if(!cards[i][j])
                printf("%c %d\n", c[i], j + 1);
        }
    }
    return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:11:16: error: switch quantity not an integer
   11 |         switch(c){
      |                ^
Language: C

#include <stdio.h>

int main(){
   int s, 
   int p[4][13]={0};
   int i, m, n;
   char k;
   int c;

   scanf("%d", &s);
   for(i=0;i<=s-1;i++){
      scanf("%s %d", &k, &c);
      switch(k){
         case 'S':
            p[0][c-1] = 1;
            break;
         case 'H':
            p[1][c-1] = 1;
            break;
         case 'C':
            p[2][c-1] = 1;
            break;
         case 'D':
            p[3][c-1] = 1;
            break;
       }
   }

   for(m=0;m<=3;m++){
      for(n=0;n<=12;n++){
         if(p[m][n] == 0){
         switch(m){
            case 0:
               printf("S %d\n", n+1);
               break;
            case 1:
               printf("H %d\n", n+1);
               break;
            case 2:
               printf("C %d\n", n+1);
               break;
            case 3:
               printf("D %d\n", n+1);
               break;
            }
            }
      }
   }

   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:4: error: expected identifier or '(' before 'int'
    5 |    int p[4][13]={0};
      |    ^~~
main.c:15:13: error: 'p' undeclared (first use in this function)
   15 |             p[0][c-1] = 1;
      |             ^
main.c:15:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void) {
	int a[52] = {0};
	char b[4] = {'S','H','C','D'};
	int d, n;
	char c;
	int e, f;

	scanf("%d", &n);
	printf(" ")
	for (f = 0; f < n; f++)
	{
		scanf("%c %d", &c, &d);
		for (e = 0; b[e] != c; e++)
		{
			d += 13;
		}
		a[d - 1] = 1;
	}

	for (f = 0; f < 4; f++)
	{
		for (e = 0; e < 13; e++) 
		{
			if (a[f * 13 + e] == 0) 
			{
				printf("%c %d\n", b[f], e + 1);
			}
		}
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:20: error: expected ';' before 'for'
   10 |         printf(" ")
      |                    ^
      |                    ;
   11 |         for (f = 0; f < n; f++)
      |         ~~~
Language: C

#include <stdio.h>
int main(void){
int n, no, a, i, j;		
char m;int x[4][13] ={{0}};?????
scanf(???%d???,&n);	
??while(n > 0){		
Scanf(??? %c???,&m);???scanf(???%d",&no);
??if(m == 'S')a = 0;
if(m == 'H')a = 1;
if(m == 'C')a = 2;
if(m == 'D')a = 3;??
x[a][no - 1] = 1;
n--;
}??
for(i = 0; i < 4; i++){		
for(j = 0; j < 13; j++){
if(x[i][j] == 0){
??if(i == 0)m = 'S???;
if(i == 1)m = 'H???;
if(i == 2)m = 'C???;
if(i == 3)m = 'D???;??
printf("%c %d\n", m, j + 1);}
}
}
??return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:28: error: expected expression before '?' token
    4 | char m;int x[4][13] ={{0}};?????
      |                            ^
main.c:5:19: error: expected ':' before ';' token
    5 | scanf(???%d???,&n);
      |                   ^
      |                   :
main.c:6:1: error: expected expression before '?' token
    6 | ??while(n > 0){
      | ^
main.c:7:35: warning: missing terminating " character
    7 | Scanf(??? %c???,&m);???scanf(???%d",&no);
      |                                   ^
main.c:7:35: error: missing terminating " character
    7 | Scanf(??? %c???,&m);???scanf(???%d",&no);
      |                                   ^~~~~~~
main.c:18:17: warning: missing terminating ' character
   18 | ??if(i == 0)m = 'S???;
      |                 ^
main.c:18:17: error: missing terminating ' character
   18 | ??if(i == 0)m = 'S???;
      |                 ^~~~~~
main.c:19:15: warning: missing terminating ' character
   19 | if(i == 1)m = 'H???;
      |               ^
main.c:19:15: error: missing terminating ' character
   19 | if(i == 1)m = 'H???;
      |               ^~~~~~
main.c:20:15: warning: missing terminating ' character
   20 | if(i == 2)m = 'C???;
      |               ^
main.c:20:15: error: missing terminating ' character
   20 | if(i == 2)m = 'C???;
      |               ^~~~~~
main.c:21:15: warning: missing terminating ' character
   21 | if(i == 3)m = 'D???;??
      |               ^
main.c:21:15: error: missing terminating ' character
   21 | if(i == 3)m = 'D???;??
      |               ^~~~~~~~
main.c:26:1: error: expected declaration or statement at end of input
   26 | }
      | ^
Language: C

#include <stdio.h>
int main(void){
int n, no, a, i, j;		
char m;int x[4][13] ={{0}};?????
scanf(???%d???,&n);	
??while(n > 0){		
Scanf(??? %c???,&m);???scanf(???%d",&no);
??if(m == 'S')a = 0;
if(m == 'H')a = 1;
if(m == 'C')a = 2;
if(m == 'D')a = 3;??
x[a][no - 1] = 1;
n--;
}??
for(i = 0; i < 4; i++){		
for(j = 0; j < 13; j++){
if(x[i][j] == 0){
??if(i == 0)m = 'S???;
if(i == 1)m = 'H???;
if(i == 2)m = 'C???;
if(i == 3)m = 'D???;??
printf("%c %d\n", m, j + 1);}
}
}
}
??return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:28: error: expected expression before '?' token
    4 | char m;int x[4][13] ={{0}};?????
      |                            ^
main.c:5:19: error: expected ':' before ';' token
    5 | scanf(???%d???,&n);
      |                   ^
      |                   :
main.c:6:1: error: expected expression before '?' token
    6 | ??while(n > 0){
      | ^
main.c:7:35: warning: missing terminating " character
    7 | Scanf(??? %c???,&m);???scanf(???%d",&no);
      |                                   ^
main.c:7:35: error: missing terminating " character
    7 | Scanf(??? %c???,&m);???scanf(???%d",&no);
      |                                   ^~~~~~~
main.c:18:17: warning: missing terminating ' character
   18 | ??if(i == 0)m = 'S???;
      |                 ^
main.c:18:17: error: missing terminating ' character
   18 | ??if(i == 0)m = 'S???;
      |                 ^~~~~~
main.c:19:15: warning: missing terminating ' character
   19 | if(i == 1)m = 'H???;
      |               ^
main.c:19:15: error: missing terminating ' character
   19 | if(i == 1)m = 'H???;
      |               ^~~~~~
main.c:20:15: warning: missing terminating ' character
   20 | if(i == 2)m = 'C???;
      |               ^
main.c:20:15: error: missing terminating ' character
   20 | if(i == 2)m = 'C???;
      |               ^~~~~~
main.c:21:15: warning: missing terminating ' character
   21 | if(i == 3)m = 'D???;??
      |               ^
main.c:21:15: error: missing terminating ' character
   21 | if(i == 3)m = 'D???;??
      |               ^~~~~~~~
Language: C

#include <stdio.h>
int main(void)
{
int n, no, a, i, j;
char m;
int x[4][13] ={{0}};
??
scanf("%d",&n);
??
while(n > 0){
scanf(" %c",&m);
scanf("%d",&no);
??
if(m == 'S')
a = 0;
if(m == 'H')
a = 1;
if(m == 'C')
a = 2;
if(m == 'D')
a = 3;
??
x[a][no - 1] = 1;
n--;
}
??
for(i = 0; i < 4; i++){
for(j = 0; j < 13; j++){
if(x[i][j] == 0){
??
if(i == 0)
m = 'S';
if(i == 1)
m = 'H';
if(i == 2)
m = 'C';
if(i == 3)
m = 'D';
??
printf("%c %d\n", m, j + 1);
}
}
}
??
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected expression before '?' token
    7 | ??
      | ^
main.c:9:1: error: expected expression before '?' token
    9 | ??
      | ^
Language: C

#include <stdio.h>
int main(void)
{
int n, no, a, i, j;
char m;
int x[4][13] ={{0}};
??
scanf("%d",&n);
??
while(n > 0){
scanf("%c",&m);
scanf("%d",&no);
??
if(m == 'S')
a = 0;
if(m == 'H')
a = 1;
if(m == 'C')
a = 2;
if(m == 'D')
a = 3;
??
x[a][no - 1] = 1;
n--;
}
??
for(i = 0; i < 4; i++){
for(j = 0; j < 13; j++){
if(x[i][j] == 0){
??
if(i == 0)
m = 'S';
if(i == 1)
m = 'H';
if(i == 2)
m = 'C';
if(i == 3)
m = 'D';
??
printf("%c %d\n", m, j + 1);
}
}
}
??
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:1: error: expected expression before '?' token
    7 | ??
      | ^
main.c:9:1: error: expected expression before '?' token
    9 | ??
      | ^
Language: C

#include <stdio.h>
int main(void){
	int n,i,j,b;
	char c;
	int a[4][13];
	scanf("%d",&n);
	for(i=0;i<4;i++){
		for(j=0;j<13;j++){
			a[i][j]=0;
		}
	}
	for(i=0;i<n;i+;){
		scanf("%c %d",&c,&b);
		if(c=='S'){
			a[0][b]=1;
		}else if(c=='H'){
			a[1][b]=1;
		}else if(c=='C'){
			a[2][b]=1;
		}else{
			a[3][c]=1;
		}
	}
	
	char mark[]={'S','H','C','D'};
	for(i=0;i<4;i++){
		for(j=0;j<13;j++){
			if(a[i][j]==0)printf("%c %d\n",mark[i],j);
		}
	}
}

Compiler output:
main.c: In function 'main':
main.c:12:23: error: expected expression before ';' token
   12 |         for(i=0;i<n;i+;){
      |                       ^
Language: C

#include <stdio.h>
int main(){
    int n,i,j,k,num;
    char mark;
    bool cards[3][12];
    for(i=0;i<4;i++){
        for(j=0;j<13;j++){
            cards[i][j]=0;
        }    
    }
    
    scanf("%d",&n);
    for(k=0;k<n;k++){
            scanf("%c %d",&mark,&num);
            if(mark=='S') cards[0][num]=1;
            if(mark=='H') cards[1][num]=1;
            if(mark=='C') cards[2][num]=1;
            if(mark=='D') cards[3][num]=1;
    }
    
    for(i=0;i<4;i++){
        for(j=0;j<13;j++){
            if(cards[i][j]) continue;
            if(i==0) mark='S';
            if(i==1) mark='H';
            if(i==2) mark='C';
            if(i==3) mark='D';
            printf("%c %d",mark,num);
        }
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:5: error: unknown type name 'bool'
    5 |     bool cards[3][12];
      |     ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | int main(){
Language: C

#include <stdio.h>
int main(){
    int n,i,j,k,num;
    char mark;
    int cards[4][14];
    for(i=0;i<4;i++){
        for(j=1;j<=13;j++){
            cards[i][j]=0;
        }    
    }
    
    scanf("%d",&n);
    for(k=0;k<n;k++){
            scanf("%c %d",&mark,&num);
            if(mark=='S') cards[0][num]=1;
            if(mark=='H') cards[1][num]=1;
            if(mark=='C') cards[2][num]=1;
            if(mark=='D') cards[3][num]=1;
    }
    
    for(i=0;i<4;i++){
        for(j=1;j<=13;j++){
            if(cards[i][j]) continue;
            if(i==0) mark='S';
            if(i==1) mark='H';
            if(i==2) mark='C';
            if(i==3) mark='D';
            printf("%c %d\n",mark,j);
        }
    }
    return 0;


Compiler output:
main.c: In function 'main':
main.c:31:5: error: expected declaration or statement at end of input
   31 |     return 0;
      |     ^~~~~~
Language: C

        scanf("%c %d",&c,&i);



Compiler output:
main.c:1:15: error: expected declaration specifiers or '...' before string constant
    1 |         scanf("%c %d",&c,&i);
      |               ^~~~~~~
main.c:1:23: error: expected declaration specifiers or '...' before '&' token
    1 |         scanf("%c %d",&c,&i);
      |                       ^
main.c:1:26: error: expected declaration specifiers or '...' before '&' token
    1 |         scanf("%c %d",&c,&i);
      |                          ^
Language: C

        scanf("%c %d",&c,&i);
#include<stdio.h>

int main(void)
{
    int num;
    int a[4][13]={0};
    char c;
    int i,j;

    scanf("%d",&num);
	fflush(stdin);

    do{
        scanf("%c %d",&c,&i);

        switch(c){
            case 'S':
                a[0][i-1]=i;
                break;
            case 'H':
                a[1][i-1]=i;
                break;
            case 'C':
                a[2][i-1]=i;
                break;
            case 'D':
                a[3][i-1]=i;
                break;
        }
    fflush(stdin);
    }while(--num > 0);

    for(i=0;i<4;i++){
        for(j=0;j<13;j++){
            if(a[i][j]!=j+1){
                if(i==0)
                    printf("S %d\n",j+1);
                else if(i==1)
                    printf("H %d\n",j+1);
                else if(i==2)
                    printf("C %d\n",j+1);
                else if(i==3)
                    printf("D %d\n",j+1);
            }
        }
    }

    return 0;

}


Compiler output:
main.c:1:15: error: expected declaration specifiers or '...' before string constant
    1 |         scanf("%c %d",&c,&i);
      |               ^~~~~~~
main.c:1:23: error: expected declaration specifiers or '...' before '&' token
    1 |         scanf("%c %d",&c,&i);
      |                       ^
main.c:1:26: error: expected declaration specifiers or '...' before '&' token
    1 |         scanf("%c %d",&c,&i);
      |                          ^
Language: C

#include<stdio.h>

int main(void)
{
    int num;
    int a[4][13]={0};
    char c;    
    int i,j;

    scanf("%d",&num);
    printf("\n");
    do{
        scanf("%c %d",&c,&i);

        switch(c){
            case 'S':
                a[0][i-1]=i;
                break;
            case 'H':
                a[1][i-1]=i;
                break;
            case 'C':
                a[2][i-1]=i;
                break;
            case 'D':
                a[3][i-1]=i;
                break;
        }
        pritnf("\n");
    }while(--num > 0);


    for(i=0;i<4;i++){
        for(j=0;j<13;j++){
            if(a[i][j]!=j+1){
                if(i==0)
                    printf("S %d\n",j+1);
                else if(i==1)
                    printf("H %d\n",j+1);
                else if(i==2)
                    printf("C %d\n",j+1);
                else if(i==3)
                    printf("D %d\n",j+1);
            }
        }
    }

    return 0;

}


Compiler output:
main.c: In function 'main':
main.c:29:9: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   29 |         pritnf("\n");
      |         ^~~~~~
      |         printf
Language: C

#include<stdio.h>

int main(void)
{
    int num;
    int a[4][13]={0};
    char c;    
    int i,j,k;

    scanf("%d",&num);
    for(k=0;k<num;k++){
        scanf("%c %d",&c,&in);

        switch(c){
            case 'S':
                a[0][i-1]=i;
                break;
            case 'H':
                a[1][i-1]=i;
                break;
            case 'C':
                a[2][i-1]=i;
                break;
            case 'D':
                a[3][i-1]=i;
                break;
        }
    }


    for(i=0;i<4;i++){
        for(j=0;j<13;j++){
            if(a[i][j]!=j+1){
                if(i==0)
                    printf("S %d\n",j+1);
                else if(i==1)
                    printf("H %d\n",j+1);
                else if(i==2)
                    printf("C %d\n",j+1);
                else if(i==3)
                    printf("D %d\n",j+1);
            }
        }
    }

    return 0;

}   


Compiler output:
main.c: In function 'main':
main.c:12:27: error: 'in' undeclared (first use in this function); did you mean 'i'?
   12 |         scanf("%c %d",&c,&in);
      |                           ^~
      |                           i
main.c:12:27: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void){
        int n,i,j,x,f;
        char h
        scanf("%d",&n);
        int c[4][n];
        for(i=0;i<n;i++){
         scanf("%c",&h);
         scanf("%d",&x);
         if(h=='S'){
          c[0][x-1]=1;
         }
         if(h=='H'){
          c[1][x-1]=1;
         }
         if(h=='C'){
          c[2][x-1]=1;
         }
         if(h=='D'){
          c[3][x-1]=1;
         }
        }
        for(i=0;i>=13;j++){
          if(c[0][i]!=1)
          printf("%d %d/n",a[i]); 
         }
        }
        printf("%d",a[0]);

        
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    5 |         scanf("%d",&n);
      |         ^~~~~
main.c:8:22: error: 'h' undeclared (first use in this function)
    8 |          scanf("%c",&h);
      |                      ^
main.c:8:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:25:28: error: 'a' undeclared (first use in this function)
   25 |           printf("%d %d/n",a[i]);
      |                            ^
main.c: At top level:
main.c:28:16: error: expected declaration specifiers or '...' before string constant
   28 |         printf("%d",a[0]);
      |                ^~~~
main.c:28:21: error: unknown type name 'a'
   28 |         printf("%d",a[0]);
      |                     ^
main.c:31:9: error: expected identifier or '(' before 'return'
   31 |         return 0;
      |         ^~~~~~
main.c:32:1: error: expected identifier or '(' before '}' token
   32 | }
      | ^
Language: C

#include<stdio.h>
int main(void){
        int n,i,j,x,f;
        char h
        scanf("%d",&n);
        int c[4][n];
        for(i=0;i<n;i++){
         scanf("%c",&h);
         scanf("%d",&x);
         if(h=='S'){
          c[0][x-1]=1;
         }
         if(h=='H'){
          c[1][x-1]=1;
         }
         if(h=='C'){
          c[2][x-1]=1;
         }
         if(h=='D'){
          c[3][x-1]=1;
         }
        }
        for(i=0;i>=13;j++){
          if(c[0][i]!=1){
          printf("S %d/n",a[i]); 
         }
        }
        for(i=0;i>=13;j++){
          if(c[1][i]!=1){
          printf("H %d/n",a[i]); 
         }
        }
        for(i=0;i>=13;j++){
          if(c[2][i]!=1){
          printf("C %d/n",a[i]); 
         }
        }
        for(i=0;i>=13;j++){
          if(c[3][i]!=1){
          printf("D %d/n",a[i]); 
         }
        }
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    5 |         scanf("%d",&n);
      |         ^~~~~
main.c:8:22: error: 'h' undeclared (first use in this function)
    8 |          scanf("%c",&h);
      |                      ^
main.c:8:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:25:27: error: 'a' undeclared (first use in this function)
   25 |           printf("S %d/n",a[i]);
      |                           ^
Language: C

#include <stdio.h>

int main() {
  int n;
  char suits[52];
  int ranks[52];
  int i, j;

  int cards[4][14] = {{}};

  scanf("%d ", &n);
  for(i = 0; i < n; ++i) {
    scanf("%c %d ", &suits[i], &ranks[i]);

    if(suits[i] == 'S') {
      cards[0][ranks[i]] = 1;
    } else if(suits[i] == 'H') {
      cards[1][ranks[i]] = 1;
    } else if(suits[i] == 'C') {
      cards[2][ranks[i]] = 1;
    } else if(suits[s] == 'D') {
      cards[3][ranks[i]] = 1;
    }
  }

  for(i = 0; i < 4; ++i) {
    for(j = 1; j <= 13; ++j) {
      if(cards[i][j] == 0) {
	if(i == 0) printf("S ");
	else if(i == 1) printf("H ");
	else if(i == 2) printf("C ");
	else if(i == 3) printf("D ");
	printf("%d\n", j);
      }
    }
  }

  return 0;
}



Compiler output:
main.c: In function 'main':
main.c:21:21: error: 's' undeclared (first use in this function)
   21 |     } else if(suits[s] == 'D') {
      |                     ^
main.c:21:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int card[4][14];

int main(void)
{
    int n, m, i, j;
    char s;

    scanf("%n", &n);
    for (i = 0; i < n; i++) {
        scanf("%c %d", &s, &m);
         switch (s) {
         case 'S': card[0][m] = 1; break;
         case 'H': card[1][m] = 1; break;
         case 'C': card[2][m] = 1; break;
         case 'D': card[3][m] = 1; break;
         }
    }
    for (i = 0; i < 4; i++) {
        for (j = 1;  j < 14; j++) {
            if (card[i][j] == 0) {
            switch (i) {
            case 0: printf("S "); break;
            case 0: printf("H "); break;
            case 0: printf("C "); break;
            case 0: printf("D "); break;
            }
            printf("%d", j);
         }
    }
}










Compiler output:
main.c: In function 'main':
main.c:25:13: error: duplicate case value
   25 |             case 0: printf("H "); break;
      |             ^~~~
main.c:24:13: note: previously used here
   24 |             case 0: printf("S "); break;
      |             ^~~~
main.c:26:13: error: duplicate case value
   26 |             case 0: printf("C "); break;
      |             ^~~~
main.c:24:13: note: previously used here
   24 |             case 0: printf("S "); break;
      |             ^~~~
main.c:27:13: error: duplicate case value
   27 |             case 0: printf("D "); break;
      |             ^~~~
main.c:24:13: note: previously used here
   24 |             case 0: printf("S "); break;
      |             ^~~~
main.c:32:1: error: expected declaration or statement at end of input
   32 | }
      | ^
Language: C

#include<stdio.h>

int card[4][14];

int main(void)
{
    int n, m, i, j;
    char s;

    scanf("%n", &n);
    for (i = 0; i < n; i++) {
        scanf("%c %d", &s, &m);
         switch (s) {
         case 'S': card[0][m] = 1; break;
         case 'H': card[1][m] = 1; break;
         case 'C': card[2][m] = 1; break;
         case 'D': card[3][m] = 1; break;
         }
    }
    for (i = 0; i < 4; i++) {
        for (j = 1;  j < 14; j++) {
            if (card[i][j] == 0) {
            switch (i) {
            case 0: printf("S "); break;
            case 1: printf("H "); break;
            case 2: printf("C "); break;
            case 3: printf("D "); break;
            }
            printf("%d", j);
         }
    }
}










Compiler output:
main.c: In function 'main':
main.c:32:1: error: expected declaration or statement at end of input
   32 | }
      | ^
Language: C

#include<stdio.h>

struct card{
    unsigned short rank;
    unsigned char mark;
    unsigned 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: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:45:20: error: invalid operands to binary == (have 'struct card' and 'int')
   45 |         if(card[i] == 0){
      |            ~~~~~~~ ^~
      |                |
      |                struct card