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

#include<stdio.h>
int main(){
int a,b,c[4][13]={0},d,e,f,g;
char z;
scanf("%d",&a);
for(b=0;b<a;b++){
scanf("%c %d",&z,&e);
if(z=="S")
d=0;
if(z=="H")
d=1;
if(z=="C")
d=2;
if(z=="D")
d=3;
c[d][e]=1;
}
for(b=0;b<4;b++){
if(b==0)
z="S";
if(b==1)
z="H";
if(b==2)
z="C";
if(b==3)
z="D";
for(f=;f<13;f++){
if(c[b][f]!=1)
printf("%c %d",z,f);
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:5: warning: comparison between pointer and integer
    8 | if(z=="S")
      |     ^~
main.c:10:5: warning: comparison between pointer and integer
   10 | if(z=="H")
      |     ^~
main.c:12:5: warning: comparison between pointer and integer
   12 | if(z=="C")
      |     ^~
main.c:14:5: warning: comparison between pointer and integer
   14 | if(z=="D")
      |     ^~
main.c:20:2: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   20 | z="S";
      |  ^
main.c:22:2: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   22 | z="H";
      |  ^
main.c:24:2: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   24 | z="C";
      |  ^
main.c:26:2: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   26 | z="D";
      |  ^
main.c:27:7: error: expected expression before ';' token
   27 | for(f=;f<13;f++){
      |       ^
Language: C

#include <stdio.h>
int main(){

  int n,i,s,l,j;
  int cards[4][13];

  scanf("%d",&n);

  for(i=0;i<4;i++){
    for(j=0;j<13;j++){
      cards[i][j]=0;
    }
  }

  for(i=0;i<n;i++){
    scanf("%d%d",&s,&l);
    switch(s){
    case S:
      cards[0][l]=1;
      break;
    case H:
      cards[1][l]=1;
      break;
    case C:
      cards[2][l]=1;
      break;
    default:
      cards[3][l]=1;
      break;
    }
  }

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:10: error: 'S' undeclared (first use in this function)
   18 |     case S:
      |          ^
main.c:18:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:21:10: error: 'H' undeclared (first use in this function)
   21 |     case H:
      |          ^
main.c:24:10: error: 'C' undeclared (first use in this function)
   24 |     case C:
      |          ^
Language: C

#include <stdio.h> int main() {   int n,i,j;  int card[4][13];  int num;  long long moji;   scanf("%d", &n);   for(j=0; j<4; j++) {  for(i=0; i<13 ;i++){    card[j][i] = 0;  }  }   for(i=0; i<2*n ; i++) {    scanf("%c ",&moji);    scanf("%d",&num);    if(moji == 'S') {      card[0][num-1] = 1;    } else if(moji == 'H') {      card[1][num-1] = 1;    } else if(moji == 'C') {      card[2][num-1] = 1;    } else if(moji =='D') {      card[3][num-1] = 1;    }  }   for(j=1;j<=13;j++) {    if(card[0][j-1] != 1) {      printf("S %d\n",j);    }  }  for(j=1;j<=13;j++) {    if(card[1][j-1] != 1) {      printf("H %d\n",j);    }  }  for(j=1;j<=13;j++) {    if(card[2][j-1] != 1) {      printf("C %d\n",j);    }  }  for(j=1;j<=13;j++) {    if(card[3][j-1] != 1) {      printf("D %d\n",j);    }  }   return 0;}

Compiler output:
main.c:1:20: warning: extra tokens at end of #include directive
    1 | #include <stdio.h> int main() {   int n,i,j;  int card[4][13];  int num;  long long moji;   scanf("%d", &n);   for(j=0; j<4; j++) {  for(i=0; i<13 ;i++){    card[j][i] = 0;  }  }   for(i=0; i<2*n ; i++) {    scanf("%c ",&moji);    scanf("%d",&num);    if(moji == 'S') {      card[0][num-1] = 1;    } else if(moji == 'H') {      card[1][num-1] = 1;    } else if(moji == 'C') {      card[2][num-1] = 1;    } else if(moji =='D') {      card[3][num-1] = 1;    }  }   for(j=1;j<=13;j++) {    if(card[0][j-1] != 1) {      printf("S %d\n",j);    }  }  for(j=1;j<=13;j++) {    if(card[1][j-1] != 1) {      printf("H %d\n",j);    }  }  for(j=1;j<=13;j++) {    if(card[2][j-1] != 1) {      printf("C %d\n",j);    }  }  for(j=1;j<=13;j++) {    if(card[3][j-1] != 1) {      printf("D %d\n",j);    }  }   return 0;}
      |                    ^~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:7: error: 'S' undeclared (first use in this function)
    9 | if(c==S){k[0][i]=1;}
      |       ^
main.c:9:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:12: error: 'H' undeclared (first use in this function)
   10 | else if(c==H){k[1][i]=1;}
      |            ^
main.c:11:12: error: 'C' undeclared (first use in this function)
   11 | else if(c==C){k[2][i]=1;}
      |            ^
main.c:12:12: error: 'D' undeclared (first use in this function)
   12 | else if(c==D){k[3][i]=1;}
      |            ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:7: error: 'S' undeclared (first use in this function)
    9 | if(c==S){k[0][i]=1;}
      |       ^
main.c:9:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:12: error: 'H' undeclared (first use in this function)
   10 | else if(c==H){k[1][i]=1;}
      |            ^
main.c:11:12: error: 'C' undeclared (first use in this function)
   11 | else if(c==C){k[2][i]=1;}
      |            ^
main.c:12:12: error: 'D' undeclared (first use in this function)
   12 | else if(c==D){k[3][i]=1;}
      |            ^
main.c:24:1: error: expected declaration or statement at end of input
   24 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:7: error: 'S' undeclared (first use in this function)
    9 | if(c==S){k[0][i]=1;}
      |       ^
main.c:9:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:12: error: 'H' undeclared (first use in this function)
   10 | else if(c==H){k[1][i]=1;}
      |            ^
main.c:11:12: error: 'C' undeclared (first use in this function)
   11 | else if(c==C){k[2][i]=1;}
      |            ^
main.c:12:12: error: 'D' undeclared (first use in this function)
   12 | else if(c==D){k[3][i]=1;}
      |            ^
main.c:24:1: error: expected declaration or statement at end of input
   24 | }
      | ^
Language: C

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

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

#include<stdio.h>

int main(){

int no,i,n,j;
char mark;
char markbase={'S','H','C','D'};
int card[4][13];
scanf("%d",&n)

for(i=0;i<n;i++){
scanf(%c %d,&mark,&no);
if(mark=='S'){
card[0][no-1]=no;
}else if(mark=='H'){
card[1][no-1]=no;
}else if(mark=='C'){
card[2][no-1]=no;
}else{
card[3][no-1]=no;
}
}
for(j=0;j<3;j++){
for(i=0;i<13;i++){
if(1>card[j][i] && card[j][i]>13) printf("%c %d\n",markbase[j],card[j][i]);
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:20: warning: excess elements in scalar initializer
    7 | char markbase={'S','H','C','D'};
      |                    ^~~
main.c:7:20: note: (near initialization for 'markbase')
main.c:7:24: warning: excess elements in scalar initializer
    7 | char markbase={'S','H','C','D'};
      |                        ^~~
main.c:7:24: note: (near initialization for 'markbase')
main.c:7:28: warning: excess elements in scalar initializer
    7 | char markbase={'S','H','C','D'};
      |                            ^~~
main.c:7:28: note: (near initialization for 'markbase')
main.c:9:15: error: expected ';' before 'for'
    9 | scanf("%d",&n)
      |               ^
      |               ;
   10 | 
   11 | for(i=0;i<n;i++){
      | ~~~
Language: C

#include<stdio.h>

int main(){

int no,i,n,j;
char mark;
char markbase={'S','H','C','D'};
int card[4][13];
scanf("%d",&n);

for(i=0;i<n;i++){
scanf(%c %d,&mark,&no);
if(mark=='S'){
card[0][no-1]=no;
}else if(mark=='H'){
card[1][no-1]=no;
}else if(mark=='C'){
card[2][no-1]=no;
}else{
card[3][no-1]=no;
}
}
for(j=0;j<3;j++){
for(i=0;i<13;i++){
if(1>card[j][i] && card[j][i]>13) printf("%c %d\n",markbase[j],card[j][i]);
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:20: warning: excess elements in scalar initializer
    7 | char markbase={'S','H','C','D'};
      |                    ^~~
main.c:7:20: note: (near initialization for 'markbase')
main.c:7:24: warning: excess elements in scalar initializer
    7 | char markbase={'S','H','C','D'};
      |                        ^~~
main.c:7:24: note: (near initialization for 'markbase')
main.c:7:28: warning: excess elements in scalar initializer
    7 | char markbase={'S','H','C','D'};
      |                            ^~~
main.c:7:28: note: (near initialization for 'markbase')
main.c:12:7: error: expected expression before '%' token
   12 | scanf(%c %d,&mark,&no);
      |       ^
main.c:25:60: error: subscripted value is neither array nor pointer nor vector
   25 | if(1>card[j][i] && card[j][i]>13) printf("%c %d\n",markbase[j],card[j][i]);
      |                                                            ^
Language: C

#include<stdio.h>

int main(){

int no,i,n,j;
char mark;
char markbase={'S','H','C','D'};
int card[4][13];
scanf("%d",&n);

for(i=0;i<n;i++){
scanf("%c %d",&mark,&no);
if(mark=='S'){
card[0][no-1]=no;
}else if(mark=='H'){
card[1][no-1]=no;
}else if(mark=='C'){
card[2][no-1]=no;
}else{
card[3][no-1]=no;
}
}

for(j=0;j<3;j++){
for(i=0;i<13;i++){
if(1>card[j][i] && card[j][i]>13) printf("%c %d\n",markbase[j],card[j][i]);
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:20: warning: excess elements in scalar initializer
    7 | char markbase={'S','H','C','D'};
      |                    ^~~
main.c:7:20: note: (near initialization for 'markbase')
main.c:7:24: warning: excess elements in scalar initializer
    7 | char markbase={'S','H','C','D'};
      |                        ^~~
main.c:7:24: note: (near initialization for 'markbase')
main.c:7:28: warning: excess elements in scalar initializer
    7 | char markbase={'S','H','C','D'};
      |                            ^~~
main.c:7:28: note: (near initialization for 'markbase')
main.c:26:60: error: subscripted value is neither array nor pointer nor vector
   26 | if(1>card[j][i] && card[j][i]>13) printf("%c %d\n",markbase[j],card[j][i]);
      |                                                            ^
Language: C

#include<stdio.h>
int main(void)
{
	int n,card[4][13]=0;
	int i,j,d;
	char m;

	scanf("%d",&n);

	for(i=0;i<n;i++){
		scanf("%c %d",&m,&d);

		switch(m){
			case 'S':card[0][d=1]=1;
					break;
			case 'H':card[1][d-1]=1;
					break;
			case 'C':card[2][d-1]=1;
					break;
			case 'D':card[3][d-1]=1;
					break;
		}
	}

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

	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:27: error: invalid initializer
    4 |         int n,card[4][13]=0;
      |                           ^
Language: C

#include<stdio.h>
int main(){
int n;
scanf("%d",&n);
int s[13],h[13],c[13],d[13];
char card;
int number;
int i;
for(i=0;i<n;i++){
scanf("%c #include<stdio.h>
int main(){
int n;
scanf("%d",&n);
int s[13],h[13],c[13],d[13];
char card;
int number;
int i;
for(i=0;i<n;i++){
scanf("%c %d",&card,&number);
if(card=="S") s[number]++;
if(card=="H") h[number]++;
if(card=="C") c[number]++;
if(card=="D") d[number]++;
}
//ここまでで持ってるカードをすべて埋める
for(i=0;i<13;i++){
if(s[i]!=1)printf("S %d",i+1);
}
for(i=0;i<13;i++){
if(h[i]!=1)printf("H %d",i+1);
}
for(i=0;i<13;i++){
if(c[i]!=1)printf("C %d",i+1);
}
for(i=0;i<13;i++){
if(d[i]!=1)printf("D %d",i+1);
}
return 0;
}%d",&card,&number);
if(card=="S") s[number-1]++;
if(card=="H") h[number-1]++;
if(card=="C") c[number-1]++;
if(card=="D") d[number-1]++;
}
//ここまでで持ってるカードをすべて埋める
for(i=0;i<13;i++){
if(s[i]!=1)printf("S %d",i+1);
}
for(i=0;i<13;i++){
if(h[i]!=1)printf("H %d",i+1);
}
for(i=0;i<13;i++){
if(c[i]!=1)printf("C %d",i+1);
}
for(i=0;i<13;i++){
if(d[i]!=1)printf("D %d",i+1);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:7: warning: missing terminating " character
   10 | scanf("%c #include<stdio.h>
      |       ^
main.c:10:7: error: missing terminating " character
   10 | scanf("%c #include<stdio.h>
      |       ^~~~~~~~~~~~~~~~~~~~~
main.c:11:1: error: expected expression before 'int'
   11 | int main(){
      | ^~~
main.c:39:4: warning: missing terminating " character
   39 | }%d",&card,&number);
      |    ^
main.c:39:4: error: missing terminating " character
   39 | }%d",&card,&number);
      |    ^~~~~~~~~~~~~~~~~
main.c:43:29: error: expected ';' before '}' token
   43 | if(card=="D") d[number-1]++;
      |                             ^
      |                             ;
   44 | }
      | ~
Language: C

#include<stdio.h>
int main(){
int n;
scanf("%d",&n);
int s[13],h[13],c[13],d[13];
char card;
int number;
int i;
for(i=0;i<n;i++){
scanf("%c #include<stdio.h>
int main(){
int n;
scanf("%d",&n);
int s[13],h[13],c[13],d[13];
char card;
int number;
int i;
for(i=0;i<n;i++){
scanf("%c %d",&card,&number);
if(card=="S") s[number-1]++;
if(card=="H") h[number-1]++;
if(card=="C") c[number-1]++;
if(card=="D") d[number-1]++;
}
//ここまでで持ってるカードをすべて埋める
for(i=0;i<13;i++){
if(s[i]!=1)printf("S %d",i+1);
}
for(i=0;i<13;i++){
if(h[i]!=1)printf("H %d",i+1);
}
for(i=0;i<13;i++){
if(c[i]!=1)printf("C %d",i+1);
}
for(i=0;i<13;i++){
if(d[i]!=1)printf("D %d",i+1);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:7: warning: missing terminating " character
   10 | scanf("%c #include<stdio.h>
      |       ^
main.c:10:7: error: missing terminating " character
   10 | scanf("%c #include<stdio.h>
      |       ^~~~~~~~~~~~~~~~~~~~~
main.c:11:1: error: expected expression before 'int'
   11 | int main(){
      | ^~~
main.c:39:1: error: expected declaration or statement at end of input
   39 | }
      | ^
main.c:39:1: error: expected declaration or statement at end of input
Language: C

#include <stdio.h>
int main()
{
	//SHCD
	int n,i,j,card[4][14]={0},ans[52],x;
	char X;
	scanf("%d",&n);
	for (i=0;i<n;i++){
		scanf("%c %d",&X,&x);
		switch(S){
		case 'S':  card[0][x]=1;card[0][0]++;break;
		case 'H':  card[1][x]=1;card[1][0]++;break;
		case 'C':  card[2][x]=1;card[2][0]++;break;
		case 'D':  card[3][x]=1;card[3][0]++;break;
		}
	}
	for (i=0;i<4;i++){
		if(card[i][0]<13){
			for (j=1;j<=13;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\n",j)
				}
			}
		}
	}
}

Compiler output:
main.c: In function 'main':
main.c:10:24: error: 'S' undeclared (first use in this function)
   10 |                 switch(S){
      |                        ^
main.c:10:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:27:58: error: expected ';' before '}' token
   27 |                                         printf(" %d\n",j)
      |                                                          ^
      |                                                          ;
   28 |                                 }
      |                                 ~
Language: C

#include <iostream>
using namespace std;
#include <stdio.h>
int main()
{
	int n, i, j, card[4][14] = { 0 }, ans[52], x;
	char X;
	cin >> n;
	for (i = 0; i<n; i++){
		cin >> X >> x;
		switch (X){
		case 'S':  card[0][x] = 1; card[0][0]++; break;
		case 'H':  card[1][x] = 1; card[1][0]++; break;
		case 'C':  card[2][x] = 1; card[2][0]++; break;
		case 'D':  card[3][x] = 1; card[3][0]++; break;
		}
	}
	for (i = 0; i<4; i++){
		if (card[i][0]<13){
			for (j = 1; j <= 13; 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\n", j);
				}
			}
		}
	}
}

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

#include <stdio.h>
#define FINDING       1
#define MISSING       0
#define SUIT_NUM      4
#define RANK_NUM      13
#define SUIT_SPADES   'S'
#define SUIT_HEARTS   'H'
#define SUIT_CLUBS    'C'
#define SUIT_DIAMONDS 'D'

int suitToNum(char suit)
char numToSuit(int num)

int main(void) {

    int i;
    int finding_num;
    char suit;
    int rank;
    bool cards[4][13] = { MISSING };
    
    scanf("%d", &finding_num);
    
    

    for(i = 0; i < finding_num; i++) {
        scanf("%c %d", &suit, &rank);
        
        cards[suitToNum(suit)][rank] = FINDING;
    }
    
    for(i = 0; i < SUIT_NUM; i++) {
        for(j = 0; j < RANK_NUM; j++) {
            if(cards[i][j] == MISSING) {
                printf("%c %d\n", numToSuit(i), j);
            }
        }
    }
}

int suitToNum(char suit) {

    switch(suit) {
        case SUIT_SPADES :
            return 0;
        case SUIT_HEARTS :
            return 1;
        case SUIT_CLUBS :
            return 2;
        case SUIT_DIAMONDS :
            return 3;
    }
}

char numToSuit(int num) {
    
    switch(num) {
        case 0:
            return SUIT_SPADES;
        case 1:
            return SUIT_HEARTS;
        case 2:
            return SUIT_CLUBS;
        case 3:
            return SUIT_DIAMONDS;
    }
}

Compiler output:
main.c: In function 'suitToNum':
main.c:14:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
   14 | int main(void) {
      | ^~~
main.c:41:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   41 | int suitToNum(char suit) {
      |                          ^
main.c:55:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   55 | char numToSuit(int num) {
      |                         ^
main.c:68: error: expected '{' at end of input
Language: C

#include <stdio.h>
#define FINDING       1
#define MISSING       0
#define SUIT_NUM      4
#define RANK_NUM      13
#define SUIT_SPADES   'S'
#define SUIT_HEARTS   'H'
#define SUIT_CLUBS    'C'
#define SUIT_DIAMONDS 'D'

int suitToNum(char suit);
char numToSuit(int num);

int main(void) {

    int i;
    int finding_num;
    char suit;
    int rank;
    bool cards[4][13] = { MISSING };
    
    scanf("%d", &finding_num);
    
    

    for(i = 0; i < finding_num; i++) {
        scanf("%c %d", &suit, &rank);
        
        cards[suitToNum(suit)][rank] = FINDING;
    }
    
    for(i = 0; i < SUIT_NUM; i++) {
        for(j = 0; j < RANK_NUM; j++) {
            if(cards[i][j] == MISSING) {
                printf("%c %d\n", numToSuit(i), j);
            }
        }
    }
}

int suitToNum(char suit) {

    switch(suit) {
        case SUIT_SPADES :
            return 0;
        case SUIT_HEARTS :
            return 1;
        case SUIT_CLUBS :
            return 2;
        case SUIT_DIAMONDS :
            return 3;
    }
}

char numToSuit(int num) {
    
    switch(num) {
        case 0:
            return SUIT_SPADES;
        case 1:
            return SUIT_HEARTS;
        case 2:
            return SUIT_CLUBS;
        case 3:
            return SUIT_DIAMONDS;
    }
}

Compiler output:
main.c: In function 'main':
main.c:20:5: error: unknown type name 'bool'
   20 |     bool cards[4][13] = { MISSING };
      |     ^~~~
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 | #define FINDING       1
main.c:33:13: error: 'j' undeclared (first use in this function)
   33 |         for(j = 0; j < RANK_NUM; j++) {
      |             ^
main.c:33:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#define FINDING       1
#define MISSING       0
#define SUIT_NUM      4
#define RANK_NUM      13
#define SUIT_SPADES   'S'
#define SUIT_HEARTS   'H'
#define SUIT_CLUBS    'C'
#define SUIT_DIAMONDS 'D'

int suitToNum(char suit);
char numToSuit(int num);

int main(void) {

    int i;
    int finding_num;
    char suit;
    int rank;
    boolean cards[4][13] = { MISSING };
    
    scanf("%d", &finding_num);
    
    

    for(i = 0; i < finding_num; i++) {
        scanf("%c %d", &suit, &rank);
        
        cards[suitToNum(suit)][rank] = FINDING;
    }
    
    for(i = 0; i < SUIT_NUM; i++) {
        for(j = 0; j < RANK_NUM; j++) {
            if(cards[i][j] == MISSING) {
                printf("%c %d\n", numToSuit(i), j);
            }
        }
    }
}

int suitToNum(char suit) {

    switch(suit) {
        case SUIT_SPADES :
            return 0;
        case SUIT_HEARTS :
            return 1;
        case SUIT_CLUBS :
            return 2;
        case SUIT_DIAMONDS :
            return 3;
    }
}

char numToSuit(int num) {
    
    switch(num) {
        case 0:
            return SUIT_SPADES;
        case 1:
            return SUIT_HEARTS;
        case 2:
            return SUIT_CLUBS;
        case 3:
            return SUIT_DIAMONDS;
    }
}

Compiler output:
main.c: In function 'main':
main.c:20:5: error: unknown type name 'boolean'
   20 |     boolean cards[4][13] = { MISSING };
      |     ^~~~~~~
main.c:33:13: error: 'j' undeclared (first use in this function)
   33 |         for(j = 0; j < RANK_NUM; j++) {
      |             ^
main.c:33:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#define FINDING       1
#define MISSING       0
#define SUIT_NUM      4
#define RANK_NUM      13
#define SUIT_SPADES   'S'
#define SUIT_HEARTS   'H'
#define SUIT_CLUBS    'C'
#define SUIT_DIAMONDS 'D'

int suitToNum(char suit);
char numToSuit(int num);

int main(void) {

    int i;
    int finding_num;
    char suit;
    int rank;
    int cards[4][13] = { MISSING };
    
    scanf("%d", &finding_num);
    
    

    for(i = 0; i < finding_num; i++) {
        scanf("%c %d", &suit, &rank);
        
        cards[suitToNum(suit)][rank] = FINDING;
    }
    
    for(i = 0; i < SUIT_NUM; i++) {
        for(j = 0; j < RANK_NUM; j++) {
            if(cards[i][j] == MISSING) {
                printf("%c %d\n", numToSuit(i), j);
            }
        }
    }
}

int suitToNum(char suit) {

    switch(suit) {
        case SUIT_SPADES :
            return 0;
        case SUIT_HEARTS :
            return 1;
        case SUIT_CLUBS :
            return 2;
        case SUIT_DIAMONDS :
            return 3;
    }
}

char numToSuit(int num) {
    
    switch(num) {
        case 0:
            return SUIT_SPADES;
        case 1:
            return SUIT_HEARTS;
        case 2:
            return SUIT_CLUBS;
        case 3:
            return SUIT_DIAMONDS;
    }
}

Compiler output:
main.c: In function 'main':
main.c:33:13: error: 'j' undeclared (first use in this function)
   33 |         for(j = 0; j < RANK_NUM; j++) {
      |             ^
main.c:33:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#define FINDING       1
#define MISSING       0
#define SUIT_NUM      4
#define RANK_NUM      13
#define SUIT_SPADES   'S'
#define SUIT_HEARTS   'H'
#define SUIT_CLUBS    'C'
#define SUIT_DIAMONDS 'D'

int suitToNum(char suit);
char numToSuit(int num);

int main(void) {

    int i;
    int j;
    int finding_num;
    char suit;
    int rank;
    int cards[4][13] = { MISSING };
    
    scanf("%d", &finding_num);
    
    for(i = 0; i < finding_num; i++) {
        scanf("%c %d", &suit, &rank);
        
        cards[suitToNum(suit)][rank] = FINDING;
    }
    
    for(i = 0; i < SUIT_NUM; i++) {
        for(j = 0; j < RANK_NUM; j++) {
            if(cards[i][j] == MISSING) {
                printf("%c %d\n", numToSuit(i), j);
            }
        }
    }

    return 0;
}

int suitToNum(char suit) {

    switch(suit) {
        case SUIT_SPADES :
            return 0;
        case SUIT_HEARTS :
            return 1;
        case SUIT_CLUBS :
            return 2;
        case SUIT_DIAMONDS :
            return 3;
    }

    return -1;
}

char numToSuit(int num) {
    
    switch(num) {
        case 0:
            return SUIT_SPADES;
        case 1:
            return SUIT_HEARTS;
        case 2:
            return SUIT_CLUBS;
        case 3:
            return SUIT_DIAMONDS;
    }

??????return ' ';
}

Compiler output:
main.c: In function 'numToSuit':
main.c:71:1: error: expected expression before '?' token
   71 | ??????return ' ';
      | ^
Language: C

#include <stdio.h>
#define FINDING       1
#define MISSING       0
#define SUIT_NUM      4
#define RANK_NUM      13
#define SUIT_SPADES   'S'
#define SUIT_HEARTS   'H'
#define SUIT_CLUBS    'C'
#define SUIT_DIAMONDS 'D'

int suitToNum(char suit);
char numToSuit(int num);

int main(void) {

    int i;
    int j;
    int finding_num;
    int iSuit;
    char suit;
    int rank;
    int cards[4][13] = { MISSING };
    
    scanf("%d", &finding_num);
    
    for(i = 0; i < finding_num; i++) {
        scanf("%c %d", &suit, &rank);
        iSuit = suitToNum(suit)
        cards[iSuit ][rank] = FINDING;
    }
    
    for(i = 0; i < SUIT_NUM; i++) {
        for(j = 0; j < RANK_NUM; j++) {
            if(cards[i][j] == MISSING) {
                printf("%c %d\n", numToSuit(i), j);
            }
        }
    }

    return 0;
}

int suitToNum(char suit) {

    switch(suit) {
        case SUIT_SPADES :
            return 0;
        case SUIT_HEARTS :
            return 1;
        case SUIT_CLUBS :
            return 2;
        case SUIT_DIAMONDS :
            return 3;
    }

    return -1;
}

char numToSuit(int num) {
    
    switch(num) {
        case 0:
            return SUIT_SPADES;
        case 1:
            return SUIT_HEARTS;
        case 2:
            return SUIT_CLUBS;
        case 3:
            return SUIT_DIAMONDS;
    }

    return ' ';
}

Compiler output:
main.c: In function 'main':
main.c:28:32: error: expected ';' before 'cards'
   28 |         iSuit = suitToNum(suit)
      |                                ^
      |                                ;
   29 |         cards[iSuit ][rank] = FINDING;
      |         ~~~~~
Language: C

#include <stdio.h>

int main()
{
    int card, n;
    bool s[14] ,h[14], c[14], d[14];
    char sy;
    for (int i = 0; i < 14; i++){
        s[i] = false;
        c[i] = false;
        h[i] = false;
        d[i] = false;
    }

    scanf("%d", &card);
    
    for (int i = 0; i < card; i++){
        scanf(" %c %d", &sy, &n);

        switch (sy) {
            case 'S' :
                s[n] = true;
                break;
            case 'H' :
                h[n] = true;
                break;
            case 'C':
                c[n] = true;
                break;
            case 'D':
                d[n] = true;
                break;
        }
    }

    for (int i = 1; i <= 13; i++){
        if (s[i] == false){
            printf("S %d\n", i);
        }
    }

    for (int i = 1; i <= 13; i++){
        if (h[i] == false){
            printf("H %d\n", i);
        }
    }

    for (int i = 1; i <= 13; i++){
        if (c[i] == false){
            printf("C %d\n", i);
        }
    }

    for (int i = 1; i <= 13; i++){
        if (d[i] == false){
            printf("D %d\n", i);
        }
    }
                
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:5: error: unknown type name 'bool'
    6 |     bool s[14] ,h[14], c[14], d[14];
      |     ^~~~
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 | 
main.c:9:16: error: 'false' undeclared (first use in this function)
    9 |         s[i] = false;
      |                ^~~~~
main.c:9:16: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:9:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:22:24: error: 'true' undeclared (first use in this function)
   22 |                 s[n] = true;
      |                        ^~~~
main.c:22:24: 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 t[4][14];
  int n, i,j,  n;
  char m, d;
  for(i=0; i < 4; i++){
    for(j=0; j < 14; j++){
      t[i][j]=0;
    }
  }
 scanf("%d", &n);
  for(i = 0; i < n; i++){
    scanf("%c", &d);
    scanf("%c %d", &m, &n);
    if(m == 'S'){
      t[0][n] = 1;
    }
    else if(m == 'H'){
      t[1][n] = 1;
    }
    else if(m == 'C'){
      t[2][n] = 1;
    }
    else if(m == 'D'){
      t[3][n] = 1;
    }
  }
  for(j=1; j < 14; j++){
    if(t[0][j] != 1){
      printf("S %d\n", j);
    }
  }
 
 for(j=1; j < 14; j++){
    if(t[1][j] != 1){
      printf("H %d\n", j);
    }
  }
 
 for(j=1; j < 14; j++){
    if(t[2][j] != 1){
      printf("C %d\n", j);
    }
  }
 
 for(j=1; j < 14; j++){
    if(t[3][j] != 1){
      printf("D %d\n", j);
    }
  }
 return 0;
}
 

Compiler output:
main.c: In function 'main':
main.c:6:16: error: redeclaration of 'n' with no linkage
    6 |   int n, i,j,  n;
      |                ^
main.c:6:7: note: previous declaration of 'n' with type 'int'
    6 |   int n, i,j,  n;
      |       ^
Language: C

#include <stdio.h>

int main(void){
 int i,j,tmp,num,card[4][13];
 char c;
 for(i=0;i<4;i++){
  for(j=0;j<13;j++){
   card[i][j]=0;
  }
 }
 scanf("%d",&tmp);
 for(i=0;i<tmp;i++){
  scanf("%c %d",mark,&num);
  switch(mark){
   case 'S':card[0][num]=1;
            break;
   case 'H':card[1][num]=1;
            break;
   case 'C':card[2][num]=1;
            break;
   case 'D':card[3][num]=1;
            break;
  }
 }
 for(i=0;i<4;i++){
  for(j=0;j<13;j++){
   if(card[i][j]==0){
    switch (i){
     case 0:printf("S %d",&(j+1));
            break;

     case 1:printf("C %d",&(j+1));
            break;

     case 2:printf("D %d",&(j+1));
            break;

     case 3:printf("D %d",&(j+1));
            break;
    }
   }
  }
 }
 printf("\n");
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:17: error: 'mark' undeclared (first use in this function)
   13 |   scanf("%c %d",mark,&num);
      |                 ^~~~
main.c:13:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:29:27: error: lvalue required as unary '&' operand
   29 |      case 0:printf("S %d",&(j+1));
      |                           ^
main.c:32:27: error: lvalue required as unary '&' operand
   32 |      case 1:printf("C %d",&(j+1));
      |                           ^
main.c:35:27: error: lvalue required as unary '&' operand
   35 |      case 2:printf("D %d",&(j+1));
      |                           ^
main.c:38:27: error: lvalue required as unary '&' operand
   38 |      case 3:printf("D %d",&(j+1));
      |                           ^
Language: C

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

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

#include <stdio.h>
int main()
{

  int n,d,cards([4][13]),B;
  char A;

  for(n=1;n<=52;n++){
    scanf("%c%d",A,d);
    if(A==H) {x[0][d]=1} 
    if(A==D) {x[1][d]=1}  
    if(A==S) {x[2][d]=1}  
    if(A==C) {x[3][d]=1}  
  }
  for(d=0;d<=12;d++){
    if(x[0][d]!=1) {printf("%c %d",H,d+1);
    }
    for(d=0;d<=12;d++){  
      if(x[]][d]!=1) {printf("%c %d",D,d+1);
    }
    for(d=0;d<=12;d++){  
      if(x[2][d]!=1) {printf("%c %d",S,d+1);
      }
      for(d=0;d<=12;d++){  
	if(x[3][d]!=1) {printf("%c %d",C,d+1);
	}
	return 0;
      }

Compiler output:
main.c: In function 'main':
main.c:5:17: error: expected declaration specifiers or '...' before '[' token
    5 |   int n,d,cards([4][13]),B;
      |                 ^
main.c:10:11: error: 'H' undeclared (first use in this function)
   10 |     if(A==H) {x[0][d]=1}
      |           ^
main.c:10:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:15: error: 'x' undeclared (first use in this function)
   10 |     if(A==H) {x[0][d]=1}
      |               ^
main.c:10:24: error: expected ';' before '}' token
   10 |     if(A==H) {x[0][d]=1}
      |                        ^
      |                        ;
main.c:11:11: error: 'D' undeclared (first use in this function)
   11 |     if(A==D) {x[1][d]=1}
      |           ^
main.c:11:24: error: expected ';' before '}' token
   11 |     if(A==D) {x[1][d]=1}
      |                        ^
      |                        ;
main.c:12:11: error: 'S' undeclared (first use in this function)
   12 |     if(A==S) {x[2][d]=1}
      |           ^
main.c:12:24: error: expected ';' before '}' token
   12 |     if(A==S) {x[2][d]=1}
      |                        ^
      |                        ;
main.c:13:11: error: 'C' undeclared (first use in this function)
   13 |     if(A==C) {x[3][d]=1}
      |           ^
main.c:13:24: error: expected ';' before '}' token
   13 |     if(A==C) {x[3][d]=1}
      |                        ^
      |                        ;
main.c:19:12: error: expected expression before ']' token
   19 |       if(x[]][d]!=1) {printf("%c %d",D,d+1);
      |            ^
main.c:19:13: error: expected statement before ']' token
   19 |       if(x[]][d]!=1) {printf("%c %d",D,d+1);
      |             ^
main.c:19:14: error: expected expression before '[' token
   19 |       if(x[]][d]!=1) {printf("%c %d",D,d+1);
      |              ^
main.c:19:20: error: expected statement before ')' token
   19 |       if(x[]][d]!=1) {printf("%c %d",D,d+1);
      |                    ^
main.c:28:7: error: expected declaration or statement at end of input
   28 |       }
      |       ^
main.c:28:7: error: expected declaration or statement at end of input
main.c:28:7: error: expected declaration or statement at end of input
main.c:28:7: error: expected declaration or statement at end of input
Language: C

#include <stdio.h>

int main(){
 int i,j,tmp,num,card[4][13];
 char mark;
 
 for(i=0;i<4;i++){
  for(j=0;j<13;j++){
   card[i][j]=0;
  }
 }
 
 scanf("%d",&tmp);
 for(i=0;i<tmp;i++){
  scanf("%c %d",mark,&num);
  switch(mark){
   case 'S':
             card[0][num]=1;
             break;
   case 'H':
             card[1][num]=1;
             break;
   case 'C':
             card[2][num]=1;
             break;
   case 'D':
             card[3][num]=1;
             break;
  }
 }
 
 for(i=0;i<4;i++){
  for(j=0;j<13;j++){
   if(card[i][j]==0){
    switch(i){
     case 0:
             printf("S %d\n",&(j+1));
             break;
     case 1:
             printf("H %d\n",&(j+1));
             break;
     case 2:
             printf("C %d\n",&(j+1));
             break;
     case 3:
             printf("D %d\n",&(j+1));
             break;
    }
   }
  }
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:37:30: error: lvalue required as unary '&' operand
   37 |              printf("S %d\n",&(j+1));
      |                              ^
main.c:40:30: error: lvalue required as unary '&' operand
   40 |              printf("H %d\n",&(j+1));
      |                              ^
main.c:43:30: error: lvalue required as unary '&' operand
   43 |              printf("C %d\n",&(j+1));
      |                              ^
main.c:46:30: error: lvalue required as unary '&' operand
   46 |              printf("D %d\n",&(j+1));
      |                              ^
Language: C

#include <stdio.h>
#define MAX_PIC 4
#define MAX_RANK 13

int main(void){
	int i, j, card_num, card[MAX_PIC][MAX_RANK], card_answer[MAX_PIC][MAX_RANK];
	char picture;
	int picture_num, rank;
	
	scanf("%d", &card_num);
	
	// ?????????????????????
	for(i = 0; i < MAX_PIC; i++){
		for(j = 0; j < MAX_RANK; j++){
			card[i][j] = 0;
		}
	}
	
	
	for(i = 0; i < card_num, i++){
		scanf("%c %d", &picture, &rank);
		switch(picture){
		case 'S': picture_num = 0; break;
		case 'H': picture_num = 1; break;
		case 'C': picture_num = 2; break;
		case 'D': picture_num = 3; break;
		}
		card[picture_num][rank] = 1;
	}
	
	
	for(i = 0; i < MAX_PIC; i++){
		for(j = 0; j < MAX_RANK; j++){
			if(card[i][j] == 0){
				switch(i){
				case 0: picture = 'S'; break;
				case 1: picture = 'H'; break;
				case 2: picture = 'C'; break;
				case 3: picture = 'D'; break;
				}
				printf("%c %d\n", picture, rank);
			}
		}
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:37: error: expected ';' before ')' token
   20 |         for(i = 0; i < card_num, i++){
      |                                     ^
      |                                     ;
Language: C

#include <stdio.h>

int main()
{
  int a;
  bool cards[4][14];
  int i,k;
  char b;
  int c;
  scanf("%d",&a);
  for(i=1;i<=a;i++)
  {
    scanf("%c %d",&b,&c);
    switch (b)
    {
      case 'S':
      cards[0][c] = 1;
      break;
      case 'H':
      cards[1][c] = 1;
      break;
      case 'C':
      cards[2][c] = 1;
      break;
      case 'D':
      cards[3][c] = 1;
      break;
    }
  }
  for(i=0;i<4;i++)
  {
    for(k=1;k<=13;k++)
    {
      if(cards[i][k]==0)
      {
        switch(i)
        case 0:
        printf("S %d\n",k);
        break;
        case 1:
        printf("H %d\n",k);
        break;
        case 2:
        printf("C %d\n",k);
        break;
        case 3:
        printf("D %d\n",k);
        break;
      }
    }
    }
  }
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: unknown type name 'bool'
    6 |   bool cards[4][14];
      |   ^~~~
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 | 
main.c:40:9: error: case label not within a switch statement
   40 |         case 1:
      |         ^~~~
main.c:43:9: error: case label not within a switch statement
   43 |         case 2:
      |         ^~~~
main.c:46:9: error: case label not within a switch statement
   46 |         case 3:
      |         ^~~~
main.c: At top level:
main.c:53:1: error: expected identifier or '(' before '}' token
   53 | }
      | ^
Language: C

#include <stdio.h>

int main()
{
  int a;
  bool cards[4][14];
  int i,k;
  char b;
  int c;
  scanf("%d",&a);
  for(i=1;i<=a;i++)
  {
    scanf("%c %d",&b,&c);
    switch (b)
    {
      case 'S':
      cards[0][c] = 1;
      break;
      case 'H':
      cards[1][c] = 1;
      break;
      case 'C':
      cards[2][c] = 1;
      break;
      case 'D':
      cards[3][c] = 1;
      break;
    }
  }
  for(i=0;i<4;i++)
  {
    for(k=1;k<=13;k++)
    {
      if(cards[i][k]==0)
      {
        switch(i)
        case 0:
        printf("S %d\n",k);
        break;
        case 1:
        printf("H %d\n",k);
        break;
        case 2:
        printf("C %d\n",k);
        break;
        case 3:
        printf("D %d\n",k);
        break;
      }
    }
    }
    return 0;
  }

Compiler output:
main.c: In function 'main':
main.c:6:3: error: unknown type name 'bool'
    6 |   bool cards[4][14];
      |   ^~~~
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 | 
main.c:40:9: error: case label not within a switch statement
   40 |         case 1:
      |         ^~~~
main.c:43:9: error: case label not within a switch statement
   43 |         case 2:
      |         ^~~~
main.c:46:9: error: case label not within a switch statement
   46 |         case 3:
      |         ^~~~
Language: C

#include<stdio.h>
int main(void)
{
	int abc[52],a,b,c;
	char t;
	scanf("%d",&a);
	for(b=0;b<a;b++){
		scanf("%c %d\n",&t,&c);
		if(b==a-1){
			scanf("%c %d",&t,&c);
		}
		switch(t){
			case 'S':
				abc[c-1]=7;
				break;
			
			case 'H':
				abc[c+12]=7;
				break;
			
			case 'C':
				abc[c+25]=7;
				break;
			
			case 'S':
				abc[c+38]=7;
				break;
		}
	}
	for(b=0;b<52;b++){
		if(abc[b]!=7){
			switch(b/13){
				case 0:
					printf("S %d\n",b%13+1);
					break;
				case 1:
					printf("H %d\n",b%13+1);
					break;
				case 2:
					printf("C %d\n",b%13+1);
					break;
				case 3:
					printf("D %d\n",b%13+1);
					break;
			}
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:25:25: error: duplicate case value
   25 |                         case 'S':
      |                         ^~~~
main.c:13:25: note: previously used here
   13 |                         case 'S':
      |                         ^~~~
Language: C

#include <stdio.h>

int main(void){

int a,b,c;
int S[13],H[13],C[13],D[13];
char c;

for(b=0;b<=12;b++){
S[b]=b+1;
H[b]=b+1;
C[b]=b+1;
D[b]=b+1;
}
//#########################
scanf("%d",&c);
//#########################
for(b=0;b<c;b++){
scanf("%c %d",&c,&a);

if(c=='S'){
S[a-1]=0;
}
if(c=='H'){
H[a-1]=0;
}
if(c=='C'){
C[a-1]=0;
}
if(c=='D'){
D[a-1]=0;
}
}
//########################
for(b=0;b<13;b++){
if(!(S[b]==0)){
printf("S %d\n",S[b]);
}
}
for(b=0;b<13;b++){
if(!(H[b]==0)){
printf("H %d\n",H[b]);
}
}
for(b=0;b<13;b++){
if(!(C[b]==0)){
printf("C %d\n",C[b]);
}
}
for(b=0;b<13;b++){
if(!(D[b]==0)){
printf("D %d\n",D[b]);
}
}

return 0;

Compiler output:
main.c: In function 'main':
main.c:7:6: error: conflicting types for 'c'; have 'char'
    7 | char c;
      |      ^
main.c:5:9: note: previous declaration of 'c' with type 'int'
    5 | int a,b,c;
      |         ^
main.c:56:1: error: expected declaration or statement at end of input
   56 | return 0;
      | ^~~~~~
Language: C

#include <stdio.h>

int main (void)
{
	int i,j,k,n,b;
	char S[13],H[13],C[13],D[13],a;
	
	scanf("%d",&n);
	
	for( i=0 ; i<n ; i++){
		scanf("%c%d",&a,&b);
		else if(a=='S'){S[b-1]=b;}
		else if(a=='H'){H[b-1]=b;}
		else if(a=='C'){C[b-1]=b;}
		else if(a=='D'){D[b-1]=b;}
	}
	
	for( j=0 ; j<4 ; j++ ){
		for( k=0 ; k<13 ; k++ ){
			if(j==0){
				if(S[k]!=k+1){
					printf("S %d\n",k+1);
				}}if(j==1){
				if(H[k]!=k+1){
					printf("H %d\n",k+1);
				}}if(j==2){
				if(C[k]!=k+1){
					printf("C %d\n",k+1);
				}}if(j==3){
				if(D[k]!=k+1){
					printf("D %d\n",k+1);
				}}
			}
		}
		
		return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:17: error: 'else' without a previous 'if'
   12 |                 else if(a=='S'){S[b-1]=b;}
      |                 ^~~~
Language: C

#include<stdio.h>

int main(void) {
int i,j
int n;
char x;
int y;
int ans[4][13] = 0;

scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%c %d", &x, &y);
if (x == 'S') ans[0][y-1] = 1;
if (x == 'H') ans[0][y-1] = 1;
if (x == 'C') ans[0][y-1] = 1;
if (x == 'D') ans[0][y-1] = 1;
}

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

return (0);
}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
    5 | int n;
      | ^~~
main.c:8:18: error: invalid initializer
    8 | int ans[4][13] = 0;
      |                  ^
main.c:10:14: error: 'n' undeclared (first use in this function)
   10 | scanf("%d", &n);
      |              ^
main.c:10:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:6: error: 'j' undeclared (first use in this function)
   20 | for (j = 0; j < 13; i++) {
      |      ^
Language: C

#include<stdio.h>

int main(void) {
int i,j;
int n;
char x;
int y;
int ans[4][13] = 0;

scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%c %d", &x, &y);
if (x == 'S') ans[0][y-1] = 1;
if (x == 'H') ans[0][y-1] = 1;
if (x == 'C') ans[0][y-1] = 1;
if (x == 'D') ans[0][y-1] = 1;
}

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

return (0);
}

Compiler output:
main.c: In function 'main':
main.c:8:18: error: invalid initializer
    8 | int ans[4][13] = 0;
      |                  ^
Language: C

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

  for(i = 0; i < 4; i++){
    for(j = 0; j < 13; j++){
      if(a[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 if(i == 3)
	  printf("D %d\n", j + 1);
      }
    }
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:3: error: unknown type name 'cahr'; did you mean 'char'?
    4 |   cahr m;
      |   ^~~~
      |   char
main.c:18:9: error: 'j' undeclared (first use in this function)
   18 |     for(j = 0; j < 13; j++){
      |         ^
main.c:18:9: note: each undeclared identifier is reported only once for each function it appears in