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

#include <stdio.h
int main (void)
{
     int card[4][13],kazu;     char ata;     int a,b,c,d,e,sri;             for(a=0;a<4;a++)     {         for(b=0;b<13;b++)         {             card[a][b]=0;         }     }       scanf("%d",&kazu);       for(c=0;c<kazu*2;c++)     {         scanf("%c %d",&ata,&sri);           if(ata=='S')         {             card[0][sri-1]=1;         }         if(ata=='H')         {             card[1][sri-1]=1;         }         if(ata=='C')         {             card[2][sri-1]=1;         }         if(ata=='D')         {             card[3][sri-1]=1;         }               }             for(d=0;d<4;d++)    {         for(e=0;e<13;e++)         {              if(card[d][e]==0)             {                 if(d==0)                 {                     printf("S %d\n",e+1);                 }                   else if(d==1)                 {                     printf("H %d\n",e+1);                 }                   else if(d==2)                 {                     printf("C %d\n",e+1);                 }                   else if(d==3)                 {                     printf("D %d\n",e+1);                 }             }         }     }                 return 0; } 

Compiler output:
main.c:1:18: error: missing terminating > character
    1 | #include <stdio.h
      |                  ^
Language: C

#include <stdio.h>//160441128 ???????????£? int main (void) {     int card[4][13],kazu;     char ata;     int a,b,c,d,e,sri;             for(a=0;a<4;a++)//???????????????????????????     {         for(b=0;b<13;b++)         {             card[a][b]=0;         }     }       scanf("%d",&kazu);       for(c=0;c<kazu*2;c++)//??????????????\???     {         scanf("%c %d",&ata,&sri);           if(ata=='S')         {             card[0][sri-1]=1;         }         if(ata=='H')         {             card[1][sri-1]=1;         }         if(ata=='C')         {             card[2][sri-1]=1;         }         if(ata=='D')         {             card[3][sri-1]=1;         }               }             for(d=0;d<4;d++)//????????????     {         for(e=0;e<13;e++)         {              if(card[d][e]==0)             {                 if(d==0)                 {                     printf("S %d\n",e+1);                 }                   else if(d==1)                 {                     printf("H %d\n",e+1);                 }                   else if(d==2)                 {                     printf("C %d\n",e+1);                 }                   else if(d==3)                 {                     printf("D %d\n",e+1);                 }             }         }     }                 return 0; } 

Compiler output:
/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

S 10
S 11
S 12
S 13
H 1
H 2
S 6
S 7
S 8
S 9
H 6
H 8
H 9
H 10
H 11
H 4
H 5
S 2
S 3
S 4
S 5
H 12
H 13
C 1
C 2
D 1
D 2
D 3
D 4
D 5
D 6
D 7
C 3
C 4
C 5
C 6
C 7
C 8
C 9
C 10
C 11
C 13
D 9
D 10
D 11
D 12
D 13

Compiler output:
main.c:1:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
    1 | S 10
      |   ^~
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:12:16: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   12 |         if(b[i]= "S"){
      |                ^
main.c:15:12: error: expected '(' before 'else'
   15 |         if else(b[i]= "H"){
      |            ^~~~
      |            (
main.c:27:13: error: 'j' undeclared (first use in this function)
   27 |         for(j = 1; j <= 13; j++){
      |             ^
main.c:27:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

import java.util.Scanner;


public class Main {
	public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		
		String[] card =
			{
				"S 1","S 2","S 3","S 4","S 5","S 6","S 7","S 8","S 9","S 10","S 11","S 12","S 13",
				"H 1","H 2","H 3","H 4","H 5","H 6","H 7","H 8","H 9","H 10","H 11","H 12","H 13",
				"C 1","C 2","C 3","C 4","C 5","C 6","C 7","C 8","C 9","C 10","C 11","C 12","C 13",
				"D 1","D 2","D 3","D 4","D 5","D 6","D 7","D 8","D 9","D 10","D 11","D 12","D 13",
			};
		
		String[] have_card = new String[52];
		
		scanner = new Scanner(System.in);
		for(int i=0; i<n; i++)
		{
			have_card[i] = scanner.nextLine();
		}
		
		boolean have = false;
		for(int i=0; i<52; i++)
		{
			have = false;
			for(int j=0; j<n; j++)
			{
				if(have_card[j].equals(card[i]))
				{
					have = true;
					break;
				}
			}
			if(!have)
			{
				System.out.println(card[i]);
			}
		}
	}
}

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.Scanner;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.Scanner;
      |            ^
main.c:4:1: error: unknown type name 'public'
    4 | public class Main {
      | ^~~~~~
main.c:4:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    4 | public class Main {
      |              ^~~~
Language: C

#include <stdio.h>

int getID(char);
char getSuit(int);

int main(void)
{
    int card[4][13];

    int i,j,num;

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

    scanf("%d",&num);

    for(i=0;i<num;i++)
    {
        char suit;
        int id,rank;

        scanf(" %c",&suit);
        scanf("%d",%rank);

        id=getID(suit);

        card[id][rank-1]=1;
    }

    for(i=0;i<4;i++)
    {
        for(j=0;j<13;j++)
        {
            if(card[i][j]==0) printf("%c %d\n",getSuit(i),j+1);
        }
    }

    return 0;
}

int getID(char suit)
{
    int id;

    if(suit=='S') id=0;
    else if(suit=='H') id=1;
    else if(suit=='C') id=2;
    else id=3;

    return id;
}
char getSuit(int id)
{
    char suit;

    if(id==0) suit='S';
    else if(id==1) suit='H';
    else if(id==2) suit='C';
    else suit='D';

    return suit;
}

Compiler output:
main.c: In function 'main':
main.c:28:20: error: expected expression before '%' token
   28 |         scanf("%d",%rank);
      |                    ^
Language: C

#include <stdio.h>

#define RANK 13
#define SUIT 4

int enc(char);
char dec(int);

int main(void)
{
	int card[SUIT][RANK];
	int n, i, j, num;
	char suit_c;

	for(i = 0;i < SUIT;i++)
		for(j = 0;j < RANK;j++)
			card[i][j] = 0;
	scanf("%d", &n);
	for(i = 0;i < n;i++)
	{
		scanf("%c %d", &suit_c, &num);
		card[enc(suit_c)][num - 1] = 1;
	}
	for(i = 0;i < SUIT;i++)
		for(j = 0;j < RANK;j++)
			if(card[i][j] == 0)
				printf("%c %d\n", dec(i), j + 1);

	return 0;
}

int enc(char suit_char)
{
	switch(suit_char)
	{
		case 'S':
			return 0;
			break;
		case 'H':
			return 1;
			break;
		case 'C':
			return 2;
			break;
		case 'D':
			return 3;
			break;
		default:
			break;
	}
}

Compiler output:
/usr/bin/ld: /tmp/ccZ86rOR.o: in function `main':
main.c:(.text+0x13d): undefined reference to `dec'
collect2: error: ld returned 1 exit status
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:13:20: error: expected '(' before 'else'
   13 |                 if else(tmp=='H') typ=1;
      |                    ^~~~
      |                    (
main.c:14:20: error: expected '(' before 'else'
   14 |                 if else(tmp=='C') typ=2;
      |                    ^~~~
      |                    (
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:13:20: error: expected '(' before 'else'
   13 |                 if else(tmp=='H') {typ=1;}
      |                    ^~~~
      |                    (
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:18: error: expected expression before '{' token
    6 |         x[4][13]={};
      |                  ^
Language: C

#include<stdio.h>

int main(void)
{
	int n,no;
	char m;
	int i,j;	
	int c[4][13]={0};

	scanf("%d",&n);

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

Compiler output:
main.c: In function 'main':
main.c:12:15: error: expected ')' before ';' token
   12 |         if(i=0;i<n;i++){
      |           ~   ^
      |               )
main.c:15:17: error: 't' undeclared (first use in this function)
   15 |                 t=i-1;
      |                 ^
main.c:15:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:45: error: expected ';' before ':' token
   20 |                         case 'D' : c[3][t]=1:break;
      |                                             ^
      |                                             ;
main.c:34:1: error: expected declaration or statement at end of input
   34 | }
      | ^
main.c:34:1: error: expected declaration or statement at end of input
Language: C

#include<stdio.h>

int main(void)
{
	int n,no;
	char m;
	int i,j;	
	int c[4][13]={0};

	scanf("%d",&n);

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

Compiler output:
main.c: In function 'main':
main.c:12:15: error: expected ')' before ';' token
   12 |         if(i=0;i<n;i++){
      |           ~   ^
      |               )
main.c:15:17: error: 't' undeclared (first use in this function)
   15 |                 t=i-1;
      |                 ^
main.c:15:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:45: error: expected ';' before ':' token
   20 |                         case 'D' : c[3][t]=1:break;
      |                                             ^
      |                                             ;
Language: C

#include<stdio.h>

int main(void)
{
	int n,no,t;
	char m;
	int i,j;	
	int c[4][13]={0};

	scanf("%d",&n);

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

Compiler output:
main.c: In function 'main':
main.c:12:15: error: expected ')' before ';' token
   12 |         if(i=0;i<n;i++){
      |           ~   ^
      |               )
main.c:20:45: error: expected ';' before ':' token
   20 |                         case 'D' : c[3][t]=1:break;
      |                                             ^
      |                                             ;
Language: C

#include<stdio.h>

int main(void)
{
	int n,no,t;
	char m;
	int i,j;	
	int c[4][13]={0};

	scanf("%d",&n);

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

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

#include<stdio.h>

int main(void)
{
	int n,no,t;
	char m;
	int i,j;	
	int c[4][13]=0;

	scanf("%d",&n);

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

Compiler output:
main.c: In function 'main':
main.c:8:22: error: invalid initializer
    8 |         int c[4][13]=0;
      |                      ^
main.c:12:15: error: expected ')' before ';' token
   12 |         if(i=0;i<n;i++){
      |           ~   ^
      |               )
Language: C

#include<stdio.h>

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

	scanf("%d",&n);

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

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

#include<stdio.h>

int main(void)
{
	int n,no,t;
	char m;
	int i,j;	
	int c[4][13]={0};

	scanf("%d",&n);

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

Compiler output:
main.c: In function 'main':
main.c:14:23: error: expected ';' before 'switch'
   14 |                 t=no-1
      |                       ^
      |                       ;
   15 |                 switch(m){
      |                 ~~~~~~
Language: C

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

int main(){
	int  n;// ????????????????????°
	int  i;// ??????????????????
	int  no; // ???????????????
	int  t;// ???????????????????????????
	char mark; // S,H,C,D?????????????¨????
	int mk;?????? // 0,1,2,3??????????????????????????????
	char mks[]={"SHCD"};??? // ??????????¨??????¨
	int  cards[4][13]={0}; // ???????????????

	scanf("%d%*c",&n);


	for(i=1;i<=n;i++){
		scanf("%c%d%*c",&mark,&no);
		t = no -1;
		mk= strchr(mks,mark)-mks;
		cards[mk][t] = 1;
	}
// ?¶????????????????????????¨???
	printf("short cards is as below.\n");
	for(mk=0;mk<4;mk++){
		for(i=0;i<13;i++){
			if(cards[mk][i] == 0){
			printf("%c %d ",mks[mk],i+1);
			}
		}
	printf("\n");
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:16: error: expected expression before '?' token
   11 |         int mk;?????? // 0,1,2,3??????????????????????????????
      |                ^
main.c:12:29: error: expected expression before '?' token
   12 |         char mks[]={"SHCD"};??? // ??????????¨??????¨
      |                             ^
main.c:21:28: error: 'mks' undeclared (first use in this function); did you mean 'mk'?
   21 |                 mk= strchr(mks,mark)-mks;
      |                            ^~~
      |                            mk
main.c:21:28: note: each undeclared identifier is reported only once for each function it appears in
main.c:22:17: error: 'cards' undeclared (first use in this function)
   22 |                 cards[mk][t] = 1;
      |                 ^~~~~
Language: C

#include<stdio.h>
int main(){
int i,j, n, t, no, cards[4][14];// = { 0 };
int mark;// char mark;
char *txt[4]={"S","H","C","D"};

for(i=0;i<4;++i)//
for(j=0;j<14;++j)//
card[i][j]=0;//

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


scanf("%c%d", &mark, &no);
t = no;// -1;
switch(mark)
{
case 'S' : cards[0][t]=1; break;
case 'H' : cards[1][t]=1; break;
case 'C' : cards[2][t]=1; break;
case 'D' : cards[3][t]=1; break;
}
}

for(j=0;j<4;++j)
{
for(i = 0; i < 14; i++) //Spade
{
if((cards[j][i]) == 0)
{
printf("%s %d\n",txt[j],(i));
}
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:1: error: 'card' undeclared (first use in this function); did you mean 'cards'?
    9 | card[i][j]=0;//
      | ^~~~
      | cards
main.c:9:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(){
int S[13]={1,2,3,4,5,6,7,8,9,10,11,12,13};
int H[13]={1,2,3,4,5,6,7,8,9,10,11,12,13};
int C[13]={1,2,3,4,5,6,7,8,9,10,11,12,13};
int D[13]={1,2,3,4,5,6,7,8,9,10,11,12,13};
int num,n,i;
char mark; 

scanf("%d", &n);
for(i=0; i<n; i++){
scanf("%c%d", &mark, &num);
	if(mark=='S'){
		S[num]=0;
	}else if(mark=='H'){
		H[num]=0;
	}else if(mark=='C'){
		C[num]=0;
	}else if(mark=='D'){
		D[num]=0;
	}
}

for(i=0; i<13; i++){
	if(S[i]==0){
		printf("");
	}else{
		printf("S %d\n", S[i]);
	}
}

for(i=0; i<13; i++){
	if(H[i]==0){
		printf("");
	}else{
		printf("H %d\n", H[i]);
	}
}

for(i=0; i<13; i++){
	if(C[i]==0){
		printf("");
	}else{
		printf("C %d\n", C[i]);
	}
}

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

return 0;

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

#include <stdio.h>

int main()
{
  int i, n, rank;
  int s[13], h[13], c[13], d[13];
  char c;
  scanf("%d", &n);
  for(i = 0; i < n; i++) {
    scanf("%c%d", &c, &rank);
    switch(c) {
      case 'S':
      s[rank-1] = 1;
      break;
      case 'H':
      h[rank-1] = 1;
      break;
      case 'C':
      c[rank-1] = 1;
      break;
      case 'D':
      d[rank-1] = 1;
      break;
    }
  }
  for(i = 0; i < n; i++) {
    if(s[i] == 0) {
      printf("S %d", i + 1);
    }
  }
  for(i = 0; i < n; i++) {
    if(h[i] == 0) {
      printf("H %d", i + 1);
    }
  }
  for(i = 0; i < n; i++) {
    if(c[i] == 0) {
      printf("C %d", i + 1);
    }
  }
  for(i = 0; i < n; i++) {
    if(d[i] == 0) {
      printf("D %d", i + 1);
    }
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:8: error: conflicting types for 'c'; have 'char'
    7 |   char c;
      |        ^
main.c:6:21: note: previous declaration of 'c' with type 'int[13]'
    6 |   int s[13], h[13], c[13], d[13];
      |                     ^
Language: C

#include <stdio.h>

int main(void){
	int cards[4][13];
	int num;
	int i, j, k;
	char cardChar;
	int cardType;
	int cardInt;

	scanf("%d", &num);

	for(i = 0; i < num; i++){
		scanf("%c %d", cardChar, cardInt);
		
		switch(cardChar){
			case S: 
				cardType = 0;
				break;

			case H: 
				cardType = 1;
				break;

			case C:
				cardType = 2;
				break;

			case D: 
				cardType = 3;
				break;

			default:
				break;
		}

		cards[cardType][cardInt] = 1;
	}

	for(j = 0; j < 4; j++){
		for(k = 0; k < 13; k++){
			if(cards[j][k] == 0){
				switch(j){
					case 0:
						cardChar = 'S';
						break;

					case 1: 
						cardChar = 'H';
						break;

					case 2:
						cardChar = 'C';
						break;

					case 3: 
						cardChar = 'D';
						break;

					default:
						break;
				}

				printf("%c %d", cardChar, k);
			}
		}
	}

	return 0;


}

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

#include <stdio.h>

int main(void)
{
  int n = 0;
  int card[52][5];
  int i, j;

  scanf("%d", &n);

  for(i = 0; i < n; i++)
    scanf("%s", card[i]);

  for(i = 0; i < n; i++)
    if(card[i][0] == 'S'){
      for(j = 1; j < 10; j++){
	if(for(j = 1; j < 10; j++)
	     card[i][2] == 'j' && card[i][3] == '\0')
	  ;
	else
	  printf("S %d\n", j);
      }
      for(j = 0; j < 4; j++){
	if(for(j = 0; j < 4; j++)
	     card[i][2] == '1' && card[i][3] == 'j')
	  ;
	else
	  printf("S 1%d\n", j);
      }
    }

  for(i = 0; i < n; i++)
    if(card[i][0] == 'H'){
      for(j = 1; j < 10; j++){
	if(for(j = 1; j < 10; j++)
	     card[i][2] == 'j' && card[i][3] == '\0')
	  ;
	else
	  printf("H %d\n", j);
      }
      for(j = 0; j < 4; j++){
	if(for(j = 0; j < 4; j++)
	     card[i][2] == '1' && card[i][3] == 'j')
	  ;
	else
	  printf("H 1%d\n", j);
      }
    }

  for(i = 0; i < n; i++)
    if(card[i][0] == 'C'){
      for(j = 1; j < 10; j++){
	if(for(j = 1; j < 10; j++)
	     card[i][2] == 'j' && card[i][3] == '\0')
	  ;
	else
	  printf("C %d\n", j);
      }
      for(j = 0; j < 4; j++){
	if(for(j = 0; j < 4; j++)
	     card[i][2] == '1' && card[i][3] == 'j')
	  ;
	else
	  printf("C 1%d\n", j);
      }
    }

  for(i = 0; i < n; i++)
    if(card[i][0] == 'D'){
      for(j = 1; j < 10; j++){
	if(for(j = 1; j < 10; j++)
	     card[i][2] == 'j' && card[i][3] == '\0')
	  ;
	else
	  printf("D %d\n", j);
      }
      for(j = 0; j < 4; j++){
	if(for(j = 0; j < 4; j++)
	     card[i][2] == '1' && card[i][3] == 'j')
	  ;
	else
	  printf("D 1%d\n", j);
      }
    }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:12: error: expected expression before 'for'
   17 |         if(for(j = 1; j < 10; j++)
      |            ^~~
main.c:24:12: error: expected expression before 'for'
   24 |         if(for(j = 0; j < 4; j++)
      |            ^~~
main.c:35:12: error: expected expression before 'for'
   35 |         if(for(j = 1; j < 10; j++)
      |            ^~~
main.c:42:12: error: expected expression before 'for'
   42 |         if(for(j = 0; j < 4; j++)
      |            ^~~
main.c:53:12: error: expected expression before 'for'
   53 |         if(for(j = 1; j < 10; j++)
      |            ^~~
main.c:60:12: error: expected expression before 'for'
   60 |         if(for(j = 0; j < 4; j++)
      |            ^~~
main.c:71:12: error: expected expression before 'for'
   71 |         if(for(j = 1; j < 10; j++)
      |            ^~~
main.c:78:12: error: expected expression before 'for'
   78 |         if(for(j = 0; j < 4; j++)
      |            ^~~
Language: C

#include <stdio.h>

int main(void)
{
  int n;
  int num;
  int class;
  int card[4][13]={'S', 'H', 'C', 'D'}{1,2,3,4,5,6,7,8,9,10,11,12,13};
  int i, j;

  
  scanf("%d\n" &n);

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

    if(class == 'S')
      j = 0;
    if(class == 'H')
      j = 1;
    if(class == 'C')
      j = 2;
    if(class == 'D')
      j = 3;

    card[j][num - 1] = 0;
  }

  for(i = 0; i < 13; i++)
    if(card[0][i] != 0)
      printf("S %d", card[0][i]);
  for(i = 0; i < 13; i++)
    if(card[1][i] != 0)
      printf("H %d", card[1][i]);
  for(i = 0; i < 13; i++)
    if(card[2][i] != 0)
      printf("C %d", card[2][i]);
  for(i = 0; i < 13; i++)
    if(card[3][i] != 0)
      printf("D %d", card[3][i]);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:39: error: expected ',' or ';' before '{' token
    8 |   int card[4][13]={'S', 'H', 'C', 'D'}{1,2,3,4,5,6,7,8,9,10,11,12,13};
      |                                       ^
main.c:12:16: error: invalid operands to binary & (have 'char *' and 'int')
   12 |   scanf("%d\n" &n);
      |         ~~~~~~ ^
      |         |
      |         char *
Language: C

#include <stdio.h>

int main(void)
{
  int n;
  int num;
  int class;
  int card[4][13]={{1,2,3,4,5,6,7,8,9,10,11,12,13},{1,2,3,4,5,6,7,8,9,10,11,12,13},{1,2,3,4,5,6,7,8,9,10,11,12,13},{1,2,3,4,5,6,7,8,9,10,11,12,13}};
  int i, j;

  
  scanf("%d\n" &n);

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

    if(class == 'S')
      j = 0;
    if(class == 'H')
      j = 1;
    if(class == 'C')
      j = 2;
    if(class == 'D')
      j = 3;

    card[j][num - 1] = 0;
  }

  for(i = 0; i < 13; i++)
    if(card[0][i] != 0)
      printf("S %d", card[0][i]);
  for(i = 0; i < 13; i++)
    if(card[1][i] != 0)
      printf("H %d", card[1][i]);
  for(i = 0; i < 13; i++)
    if(card[2][i] != 0)
      printf("C %d", card[2][i]);
  for(i = 0; i < 13; i++)
    if(card[3][i] != 0)
      printf("D %d", card[3][i]);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:16: error: invalid operands to binary & (have 'char *' and 'int')
   12 |   scanf("%d\n" &n);
      |         ~~~~~~ ^
      |         |
      |         char *
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:41:1: error: 'cade' undeclared (first use in this function)
   41 | cade 3:
      | ^~~~
main.c:41:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:41:5: error: expected ';' before numeric constant
   41 | cade 3:
      |     ^~
      |     ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:31:7: error: expected ';' before 'switch'
   31 | k =j++
      |       ^
      |       ;
   32 | switch(i){
      | ~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:31:7: error: expected ';' before 'switch'
   31 | k =j+1
      |       ^
      |       ;
   32 | switch(i){
      | ~~~~~~
Language: C

#include<stdio.h>
int main(void){
int i,j,k,n,num,card[4][13];
char mark;
for(i=0;i < 4;i++){
for(j=0;j < 13;j++){
card[i][j]=0;
}
}
scanf("%d",&n);
for(i=0;i < n;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){
k =j++;
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:49:1: error: expected declaration or statement at end of input
   49 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:28: error: invalid initializer
    3 |         int cards[4][13] = 0;
      |                            ^
main.c:6:19: error: invalid operands to binary & (have 'char *' and 'int')
    6 |         scanf("%d"&n);
      |               ~~~~^
      |               |
      |               char *
Language: C

a[53];main(k,i){
   for(char c,gets(&a[0]);i<=a[0];i++){
      scanf("%d%d",&c,&k);
      if(c=='S')a[k]=1;
      if(c=='H')a[13+k]=1;
      if(c=='C')a[26+k]=1;
      if(c=='D')a[39+k]=1;
   }
   for(int i=1;i<53;i++){
      if(a[i]==0){
         if(i<14)printf("S %d\n",i);
         if(13<i&&i<27)printf("H %d\n",i-13);
         if(26<i&&i<40)printf("C %d\n",i-26);
         if(39<i)printf("D %d\n",i-39);
      }
   }
}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a[53];main(k,i){
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:7: error: return type defaults to 'int' [-Wimplicit-int]
    1 | a[53];main(k,i){
      |       ^~~~
main.c: In function 'main':
main.c:1:7: error: type of 'k' defaults to 'int' [-Wimplicit-int]
main.c:1:7: error: type of 'i' defaults to 'int' [-Wimplicit-int]
main.c:2:20: error: expected declaration specifiers or '...' before '&' token
    2 |    for(char c,gets(&a[0]);i<=a[0];i++){
      |                    ^
main.c:3:7: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |       scanf("%d%d",&c,&k);
      |       ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | a[53];main(k,i){
main.c:3:7: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |       scanf("%d%d",&c,&k);
      |       ^~~~~
main.c:3:7: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:18: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |          if(i<14)printf("S %d\n",i);
      |                  ^~~~~~
main.c:11:18: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:18: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:18: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:24: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   12 |          if(13<i&&i<27)printf("H %d\n",i-13);
      |                        ^~~~~~
main.c:12:24: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:24: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |          if(26<i&&i<40)printf("C %d\n",i-26);
      |                        ^~~~~~
main.c:13:24: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:18: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   14 |          if(39<i)printf("D %d\n",i-39);
      |                  ^~~~~~
main.c:14:18: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

a[53];main(k,i){
   for(char c,scanf("%d",&a[0]);i<=a[0];i++){
      scanf("%c%d",&c,&k);
      if(c=='S')a[k]=1;
      if(c=='H')a[13+k]=1;
      if(c=='C')a[26+k]=1;
      if(c=='D')a[39+k]=1;
   }
   for(i=1;i<53;i++){
      if(!a[i]){
         if(i<14)printf("S %d\n",i);
         if(13<i&&i<27)printf("H %d\n",i-13);
         if(26<i&&i<40)printf("C %d\n",i-26);
         if(39<i)printf("D %d\n",i-39);
      }
   }
}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a[53];main(k,i){
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:7: error: return type defaults to 'int' [-Wimplicit-int]
    1 | a[53];main(k,i){
      |       ^~~~
main.c: In function 'main':
main.c:1:7: error: type of 'k' defaults to 'int' [-Wimplicit-int]
main.c:1:7: error: type of 'i' defaults to 'int' [-Wimplicit-int]
main.c:2:21: error: expected declaration specifiers or '...' before string constant
    2 |    for(char c,scanf("%d",&a[0]);i<=a[0];i++){
      |                     ^~~~
main.c:2:26: error: expected declaration specifiers or '...' before '&' token
    2 |    for(char c,scanf("%d",&a[0]);i<=a[0];i++){
      |                          ^
main.c:3:7: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |       scanf("%c%d",&c,&k);
      |       ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | a[53];main(k,i){
main.c:3:7: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |       scanf("%c%d",&c,&k);
      |       ^~~~~
main.c:3:7: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:18: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |          if(i<14)printf("S %d\n",i);
      |                  ^~~~~~
main.c:11:18: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:18: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:18: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:24: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   12 |          if(13<i&&i<27)printf("H %d\n",i-13);
      |                        ^~~~~~
main.c:12:24: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:24: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |          if(26<i&&i<40)printf("C %d\n",i-26);
      |                        ^~~~~~
main.c:13:24: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:14:18: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   14 |          if(39<i)printf("D %d\n",i-39);
      |                  ^~~~~~
main.c:14:18: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C


#include <stdio.h>

int main(void){


	int n, i, h, R;
	char M;
	int flag[4][13];
	
	//?????°????????????
		for(i = 0; 4 > i; i++){
			for(h = 0; 13 > h; h++){
				flag[i][h] = 0;
			}
		}

	scanf("%d", &n);
	
	//??????????????\???????´?
	for(i = 0; n > i; i++){
		scanf("%c %d", &M, &R);

		if(M == 'S')
			flag[0][R-1] = 1;
		if(M == 'H')
			flag[1][R-1] = 1;
		if(M == 'C')
			flag[2][R-1] = 1;
		if(M == 'D')
			flag[3][R-1] = 1;

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

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

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

Compiler output:
main.c: In function 'main':
main.c:38:17: error: expected ';' before ':' token
   38 |         return 0:
      |                 ^
      |                 ;
Language: C



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

Compiler output:
main.c: In function 'main':
main.c:40:17: error: expected ';' before ':' token
   40 |         return 0:
      |                 ^
      |                 ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:27:21: error: expected ';' before 'for'
   27 |         printf("\n")
      |                     ^
      |                     ;
   28 |         for(i=0;i<13;i++){
      |         ~~~
Language: C

#include<stdio.h>

int main(void)
{
	int car[4][13], i, num = 0, n, a = 0, b;
	char card[4][13], in;
	
	scanf("%d", &a);
	for (i = 0; i < 4; i++)
	{
		for (n = 0; n < 13; n++)
		{
			car[i][n] = 0;
			switch (i)
			{
			case 0:
				card[i][n] = { 'S' };
				break;
			case 1:
				card[i][n] = { 'H' };
				break;
			case 2:
				card[i][n] = { 'C' };
				break;
			case 3:
				card[i][n] = { 'D' };
			}
		}
	}
	i = 0;
	for (b = 0; b < a * 2; b++)
	{
		scanf("%c %d", &in,&num);
		switch (in)
		{
		case 'S':
			car[0][num - 1] = 1;
			break;
		case 'H':
			car[1][num - 1] = 1;
			break;
		case 'C':
			car[2][num - 1] = 1;
			break;
		case 'D':
			car[3][num - 1] = 1;
			break;
		default:;
			break;
		}
		i++;
	}
	printf("\n\n<<END>>\n\n");
	
	for (i = 0; i < 4; i++)
	{
		for (n = 0; n < 13; n++)
		{
			if (car[i][n] == 0)
			{
				printf("%c %d\n", card[i][n], n + 1);
			}
		}
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:46: error: expected expression before '{' token
   17 |                                 card[i][n] = { 'S' };
      |                                              ^
main.c:20:46: error: expected expression before '{' token
   20 |                                 card[i][n] = { 'H' };
      |                                              ^
main.c:23:46: error: expected expression before '{' token
   23 |                                 card[i][n] = { 'C' };
      |                                              ^
main.c:26:46: error: expected expression before '{' token
   26 |                                 card[i][n] = { 'D' };
      |                                              ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:17:46: error: expected expression before '{' token
   17 |                                 card[i][n] = { 'S' };
      |                                              ^
main.c:20:46: error: expected expression before '{' token
   20 |                                 card[i][n] = { 'H' };
      |                                              ^
main.c:23:46: error: expected expression before '{' token
   23 |                                 card[i][n] = { 'C' };
      |                                              ^
main.c:26:46: error: expected expression before '{' token
   26 |                                 card[i][n] = { 'D' };
      |                                              ^
Language: C

#include<stdio.h>

int main(void)
{
	int car[4][13], i, nu = 0, n, a = 0, b;
	char card[4][13], in;
	
	scanf("%d", &a);
	for (i = 0; i < 4; i++)
	{
		for (n = 0; n < 13; n++)
		{
			car[i][n] = 0;
			switch (i)
			{
			case 0:
				card[i][n] = { 'S' };
				break;
			case 1:
				card[i][n] = { 'H' };
				break;
			case 2:
				card[i][n] = { 'C' };
				break;
			case 3:
				card[i][n] = { 'D' };
          break;
			}
		}
	}
	i = 0;
	for (b = 0; b < a * 2; b++)
	{
		scanf("%c %d", &in,&nu);
		switch (in)
		{
		case 'S':
			car[0][nu - 1] = 1;
			break;
		case 'H':
			car[1][nu - 1] = 1;
			break;
		case 'C':
			car[2][nu - 1] = 1;
			break;
		case 'D':
			car[3][nu - 1] = 1;
			break;
		default:;
			break;
		}
		i++;
	}
	for (i = 0; i < 4; i++)
	{
		for (n = 0; n < 13; n++)
		{
			if (car[i][n] == 0)
			{
				printf("%c %d\n", card[i][n], n + 1);
			}
		}
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:46: error: expected expression before '{' token
   17 |                                 card[i][n] = { 'S' };
      |                                              ^
main.c:20:46: error: expected expression before '{' token
   20 |                                 card[i][n] = { 'H' };
      |                                              ^
main.c:23:46: error: expected expression before '{' token
   23 |                                 card[i][n] = { 'C' };
      |                                              ^
main.c:26:46: error: expected expression before '{' token
   26 |                                 card[i][n] = { 'D' };
      |                                              ^