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

#include<stdio.h>

int main(void)
{
    int Cards[4][14] = {{}}, n, i, j, Num;
    char Mark; 

    scanf("%d", &n);

    for(i = 0; i < 2 * n; i++)
    {
        scanf("%c ", &Mark);
        scanf("%d", &Num;
        
        if(Mark == 'S')
        {
            Cards[0][Num-1] = 1;
        }

        else if(Mark == 'H')
        {
            Cards[1][Num-1] = 1;
        }

        else if(Mark == 'C')
        {
            Cards[2][Num-1] = 1;
        }

        else if(Mark == 'D')
        {
            Cards[3][Num-1] = 1;
        }
    }

    for(i = 1; j < 14; j++)
    {
        if(Card[0][j-1] != 1)
        {
            printf("S %d\n", j);
        }
    }

    for(i = 1; j < 14; j++)
    {
        if(Card[1][j-1] != 1)
        {
            printf("H %d\n", j);
        }
    }

    for(i = 1; j < 14; j++)
    {
        if(Card[2][j-1] != 1)
        {
            printf("C %d\n", j);
        }
    }

    for(i = 1; j < 14; j++)
    {
        if(Card[3][j-1] != 1)
        {
            printf("D %d\n", j);
        }
    }
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:25: error: expected ')' before ';' token
   13 |         scanf("%d", &Num;
      |              ~          ^
      |                         )
main.c:33:10: error: expected ';' before '}' token
   33 |         }
      |          ^
      |          ;
   34 |     }
      |     ~     
main.c:38:12: error: 'Card' undeclared (first use in this function); did you mean 'Cards'?
   38 |         if(Card[0][j-1] != 1)
      |            ^~~~
      |            Cards
main.c:38:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void)
{
    int Cards[4][14] = {{}}, n, i, j, Num;
    char Mark; 

    scanf("%d", &n);

    for(i = 0; i < 2 * n; i++)
    {
        scanf("%c ", &Mark);
        scanf("%d", &Num;
        
        if(Mark == 'S')
        {
            Cards[0][Num - 1] = 1;
        }

        else if(Mark == 'H')
        {
            Cards[1][Num - 1] = 1;
        }

        else if(Mark == 'C')
        {
            Cards[2][Num - 1] = 1;
        }

        else if(Mark == 'D')
        {
            Cards[3][Num - 1] = 1;
        }
    }

    for(j = 1; j < 14; j++)
    {
        if(Card[0][j - 1] != 1)
        {
            printf("S %d\n", j);
        }
    }

    for(j = 1; j < 14; j++)
    {
        if(Card[1][j - 1] != 1)
        {
            printf("H %d\n", j);
        }
    }

    for(j = 1; j < 14; j++)
    {
        if(Card[2][j - 1] != 1)
        {
            printf("C %d\n", j);
        }
    }

    for(j = 1; j < 14; j++)
    {
        if(Card[3][j - 1] != 1)
        {
            printf("D %d\n", j);
        }
    }
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:25: error: expected ')' before ';' token
   13 |         scanf("%d", &Num;
      |              ~          ^
      |                         )
main.c:33:10: error: expected ';' before '}' token
   33 |         }
      |          ^
      |          ;
   34 |     }
      |     ~     
main.c:38:12: error: 'Card' undeclared (first use in this function); did you mean 'Cards'?
   38 |         if(Card[0][j - 1] != 1)
      |            ^~~~
      |            Cards
main.c:38:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void)
{
    int Cards[4][14] = {{}}, n, i, j, Num;
    char Mark; 

    scanf("%d", &n);

    for(i = 0; i < 2 * n; i++)
    {
        scanf("%c ", &Mark);
        scanf("%d", &Num);
        
        if(Mark == 'S')
        {
            Cards[0][Num - 1] = 1;
        }

        else if(Mark == 'H')
        {
            Cards[1][Num - 1] = 1;
        }

        else if(Mark == 'C')
        {
            Cards[2][Num - 1] = 1;
        }

        else if(Mark == 'D')
        {
            Cards[3][Num - 1] = 1;
        }
    }

    for(j = 1; j < 14; j++)
    {
        if(Card[0][j - 1] != 1)
        {
            printf("S %d\n", j);
        }
    }

    for(j = 1; j < 14; j++)
    {
        if(Card[1][j - 1] != 1)
        {
            printf("H %d\n", j);
        }
    }

    for(j = 1; j < 14; j++)
    {
        if(Card[2][j - 1] != 1)
        {
            printf("C %d\n", j);
        }
    }

    for(j = 1; j < 14; j++)
    {
        if(Card[3][j - 1] != 1)
        {
            printf("D %d\n", j);
        }
    }
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:38:12: error: 'Card' undeclared (first use in this function); did you mean 'Cards'?
   38 |         if(Card[0][j - 1] != 1)
      |            ^~~~
      |            Cards
main.c:38:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void)
{
    int Cards[4][14] = {{}};
    int i, j, n, Num;
    char Mark; 

    scanf("%d", &n);

    for(i = 0; i < 2 * n; i++)
    {
        scanf("%c ", &Mark);
        scanf("%d", &Num);
        
        if(Mark == 'S')
        {
            Cards[0][Num - 1] = 1;
        }

        else if(Mark == 'H')
        {
            Cards[1][Num - 1] = 1;
        }

        else if(Mark == 'C')
        {
            Cards[2][Num - 1] = 1;
        }

        else if(Mark == 'D')
        {
            Cards[3][Num - 1] = 1;
        }
    }

    for(j = 1; j < 14; j++)
    {
        if(Card[0][j - 1] != 1)
        {
            printf("S %d\n", j);
        }
    }

    for(j = 1; j < 14; j++)
    {
        if(Card[1][j - 1] != 1)
        {
            printf("H %d\n", j);
        }
    }

    for(j = 1; j < 14; j++)
    {
        if(Card[2][j - 1] != 1)
        {
            printf("C %d\n", j);
        }
    }

    for(j = 1; j < 14; j++)
    {
        if(Card[3][j - 1] != 1)
        {
            printf("D %d\n", j);
        }
    }
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:39:12: error: 'Card' undeclared (first use in this function); did you mean 'Cards'?
   39 |         if(Card[0][j - 1] != 1)
      |            ^~~~
      |            Cards
main.c:39:12: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(){
int a,b,c,d,e,f,g,h,kado[5][14]={{}};
char A,B,C,D,E,F,G;
scanf("%d",&a);
for(b=0;b<a;b++){
scanf("%c %d",&A,&c)
switch(c){
case 'S':
 kado[1][c]=1;
 break;
case 'H':
 kado[2][c]=1;
 break;
case 'C':
 kado[3][c]=1;
 break;
case 'D':
 kado[4][c]=1;
 break;
}}
for(b=1;b<5;b++){
for(e=0;e<14;e++){
if(kado[b][e]==1){
switch(b){
case 1:
 printf("S %d\n",e);
 break;
case 2:
 printf("H %d\n",e);
 break;
case 3:
 printf("C %d\n",e);
 break;
case 4:
 printf("D %d\n",e);
 break;
}}}}




return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:21: error: expected ';' before 'switch'
    7 | scanf("%c %d",&A,&c)
      |                     ^
      |                     ;
    8 | switch(c){
      | ~~~~~~
Language: C

#include<stdio.h>
int main(){
int a,b,c,d,e,f,g,h,kado[5][14]={{}};
char A,B,C,D,E,F,G;
scanf("%d",&a);
for(b=0;b<a;b++){
scanf("%c %d",&A,&c)
switch(A){
case 'S':
 kado[1][c]=1;
 break;
case 'H':
 kado[2][c]=1;
 break;
case 'C':
 kado[3][c]=1;
 break;
case 'D':
 kado[4][c]=1;
 break;
}}
for(b=1;b<5;b++){
for(e=1;e<14;e++){
if(kado[b][e]==1){
switch(b){
case 1:
 printf("S %d\n",e);
 break;
case 2:
 printf("H %d\n",e);
 break;
case 3:
 printf("C %d\n",e);
 break;
case 4:
 printf("D %d\n",e);
 break;
}}}}




return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:21: error: expected ';' before 'switch'
    7 | scanf("%c %d",&A,&c)
      |                     ^
      |                     ;
    8 | switch(A){
      | ~~~~~~
Language: C

#include<stdio.h>
int main(){
int a,b,c,d,e,f,g,h,kado[5][14]={{}};
char A,B,C,D,E,F,G;
scanf("%d",&a);
for(b=0;b<a;b++){
scanf("%c %d",&A,&c)
switch(A){
case 'S':
 kado[1][c]=1;
 break;
case 'H':
 kado[2][c]=1;
 break;
case 'C':
 kado[3][c]=1;
 break;
case 'D':
 kado[4][c]=1;
 break;
}}
for(b=1;b<5;b++){
for(e=1;e<14;e++){
if(kado[b][e]==0){
switch(b){
case 1:
 printf("S %d\n",e);
 break;
case 2:
 printf("H %d\n",e);
 break;
case 3:
 printf("C %d\n",e);
 break;
case 4:
 printf("D %d\n",e);
 break;
}}}}




return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:21: error: expected ';' before 'switch'
    7 | scanf("%c %d",&A,&c)
      |                     ^
      |                     ;
    8 | switch(A){
      | ~~~~~~
Language: C

#include<stdio.h>
int main()
{
	int a=3, b=13, c, d, e, f, g, kado[4][14];
	char A, B, C;
	for (b = 0; b < 4; b++){
		for (a = 1; a < 14; a++){
			kado[b][a] = 1;
		}
	}
	scanf("%d", &a);
	for (b = 1; b <= a; b++){
		scanf("%c %d", &A, &c);
		switch (A){
		case 'S':kado[0][c] = 0; break;
		case 'H':kado[1][c] = 0; break;
		case 'C':kado[2][c] = 0; break;
		case 'D':kado[3][c] = 0; break;

		}


		for (b = 0; b < 4; b++){
			for (a = 1; a < 14; a++){
				if (kado[b][a]){
					switch (b){
					case 0:printf("S %d\n", a);
						break;
					case 1:printf("H %d\n", a);
						break;
					case 2:printf("C %d\n", a);
						break;
					case 3:printf("D %d\n", a);
						break;


					}
				}
			
			
			
			
			
			
			}





		}




	}





	return 0 ;

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

#include <stdio.h>

int main(void){
  int i,j,n,m,cn,card[4][13]=0;
  char c,s[]="SHCD";
  scanf("%d",&n);

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

  return 0;
}
    

Compiler output:
main.c: In function 'main':
main.c:4:30: error: invalid initializer
    4 |   int i,j,n,m,cn,card[4][13]=0;
      |                              ^
main.c:12:23: error: expected ';' before '}' token
   12 |         card[j][m-1]=1
      |                       ^
      |                       ;
   13 |   }
      |   ~
Language: C

#include <stdio.h>

int main(void){
  int i,j,n,m,cn;
  int card[4][13]=0;
  char c,s[]="SHCD";
  scanf("%d",&n);

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

  return 0;
}
    

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

#include <stdio.h>

int main(void){
  int i,j,n,m,cn;
  char c,s[5]={'S','H','C','D','\0'}
  static int card[4][13];
  scanf("%d",&n);

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

  return 0;
}
    

Compiler output:
main.c: In function 'main':
main.c:6:3: error: expected ',' or ';' before 'static'
    6 |   static int card[4][13];
      |   ^~~~~~
main.c:13:9: error: 'card' undeclared (first use in this function)
   13 |         card[j][m-1]=1;
      |         ^~~~
main.c:13:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(){

	int card[4][13]={}; //ないのは0

	int n; //持ってる枚数

	int i; 

	scanf("%d",&n);

	char mark[n];

	int rank[n];

	for(i=1;i<=n;i++){

		scanf("%c %d",mark[i-1],rank[i-1]);

		} //回数が半分になる
	
	int k=0;

//ここ以下で1にできていない

	if(k=0;k<=n;k++){
	
		if(mark[k]=='S'){
	
			card[0][rank[k]]=1; //スペード前提で、k枚目のカードの数字のやつはある
	
			}

		else if(mark[k]=='H'){
	
			card[1][rank[k]]=1;
	
			}

		else if(mark[k]=='C'){
	
			card[2][rank[k]]=1;
	
			}
		else if(mark[k]=='D'){
	
			card[3][rank[k]]=1;
	
			}
	}
int x,y;

	//ここ以下は完璧にprintfされている
	
for(x=0;x<=3;x++){
	
	for(y=0;y<=12;y++){
		
		if(card[x][y]==0){
			
			if(x==0)
				printf("S %d",y);
			
			if(x==1)
				printf("H %d",y);
			
			if(x==2)
				printf("C %d",y);
			
			if(x==3)
				printf("D %d",y);
			
			printf("\n");
			
			}
		
		}
	
	}

return 0;

}

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

#include<stdio.h>
#define NUM 13

int main(){
 int num[NUM*4-1],ncmp[NUM*4-1],n,i,j;
 char pcmp[NUM*4-1];
 for(i=0; i<NUM; i++){
  num[NUM*0+i] = i+1;
  num[NUM*1+i] = i+1;
  num[NUM*2+i] = i+1;
  num[NUM*3+i] = i+1;
 }
 scanf("%d", &n);
 for(i=0; i<n; i++){
  scanf("%c%d",&pcmp[i],&ncmp[i]);
 }
 for(i=0; i<n; i++){
  fof(j=0; j<NUM-1;j++){
   switch("pcmp[i]")
    case "S": if(ncmp[i]==num[NUM*0+j]){num[NUM*0+j] = -1;} break;     
    case "H": if(ncmp[i]==num[NUM*1+j]){num[NUM*1+j] = -1;} break;
    case "C": if(ncmp[i]==num[NUM*2+j]){num[NUM*2+j] = -1;} break;
    case "D": if(ncmp[i]==num[NUM*3+j]){num[NUM*3+j] = -1;} break;
    default: break;
   }
  }
 }
 for(i=0; i<NUM*4-1; i++){
   if(num[i]!=-1){
    if(i<NUM){printf("S %d", num[i]);}
    else if(i<NUM*2){printf("H %d", num[i]);}
    else if(i<NUM*3){printf("C %d", num[i]);}
    else {printf("D %d", num[i]);}
   }
  }
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:3: error: implicit declaration of function 'fof'; did you mean 'feof'? [-Wimplicit-function-declaration]
   18 |   fof(j=0; j<NUM-1;j++){
      |   ^~~
      |   feof
main.c:18:10: error: expected ')' before ';' token
   18 |   fof(j=0; j<NUM-1;j++){
      |      ~   ^
      |          )
main.c:18:24: error: expected ';' before '{' token
   18 |   fof(j=0; j<NUM-1;j++){
      |                        ^
      |                        ;
main.c: At top level:
main.c:28:2: error: expected identifier or '(' before 'for'
   28 |  for(i=0; i<NUM*4-1; i++){
      |  ^~~
main.c:28:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   28 |  for(i=0; i<NUM*4-1; i++){
      |            ^
main.c:28:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   28 |  for(i=0; i<NUM*4-1; i++){
      |                       ^~
main.c:36:2: error: expected identifier or '(' before '}' token
   36 |  }
      |  ^
main.c:37:2: error: expected identifier or '(' before 'return'
   37 |  return 0;
      |  ^~~~~~
main.c:38:1: error: expected identifier or '(' before '}' token
   38 | }
      | ^
Language: C

#include<stdio.h>
#define NUM 13

int main(){
 int num[NUM*4-1],ncmp[NUM*4-1],n,i,j;
 char pcmp[NUM*4-1];
 for(i=0; i<NUM; i++){
  num[NUM*0+i] = i+1;
  num[NUM*1+i] = i+1;
  num[NUM*2+i] = i+1;
  num[NUM*3+i] = i+1;
 }
 scanf("%d", &n);
 for(i=0; i<n; i++){
  scanf("%c%d",&pcmp[i],&ncmp[i]);
 }
 for(i=0; i<n; i++){
  fof(j=0; j<NUM-1;j++){
   switch("pcmp[i]")
    case 'S': if(ncmp[i]==num[NUM*0+j]){num[NUM*0+j] = -1;} break;     
    case 'H': if(ncmp[i]==num[NUM*1+j]){num[NUM*1+j] = -1;} break;
    case 'C': if(ncmp[i]==num[NUM*2+j]){num[NUM*2+j] = -1;} break;
    case 'D': if(ncmp[i]==num[NUM*3+j]){num[NUM*3+j] = -1;} break;
    default: break;
   }
  }
 }
 for(i=0; i<NUM*4-1; i++){
   if(num[i]!=-1){
    if(i<NUM){printf("S %d", num[i]);}
    else if(i<NUM*2){printf("H %d", num[i]);}
    else if(i<NUM*3){printf("C %d", num[i]);}
    else {printf("D %d", num[i]);}
   }
  }
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:3: error: implicit declaration of function 'fof'; did you mean 'feof'? [-Wimplicit-function-declaration]
   18 |   fof(j=0; j<NUM-1;j++){
      |   ^~~
      |   feof
main.c:18:10: error: expected ')' before ';' token
   18 |   fof(j=0; j<NUM-1;j++){
      |      ~   ^
      |          )
main.c:18:24: error: expected ';' before '{' token
   18 |   fof(j=0; j<NUM-1;j++){
      |                        ^
      |                        ;
main.c: At top level:
main.c:28:2: error: expected identifier or '(' before 'for'
   28 |  for(i=0; i<NUM*4-1; i++){
      |  ^~~
main.c:28:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   28 |  for(i=0; i<NUM*4-1; i++){
      |            ^
main.c:28:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   28 |  for(i=0; i<NUM*4-1; i++){
      |                       ^~
main.c:36:2: error: expected identifier or '(' before '}' token
   36 |  }
      |  ^
main.c:37:2: error: expected identifier or '(' before 'return'
   37 |  return 0;
      |  ^~~~~~
main.c:38:1: error: expected identifier or '(' before '}' token
   38 | }
      | ^
Language: C

#include<stdio.h>
#define NUM 13

int main(){
 int num[NUM*4-1],ncmp[NUM*4-1],n,i,j;
 char pcmp[NUM*4-1];
 for(i=0; i<NUM; i++){
  num[NUM*0+i] = i+1;
  num[NUM*1+i] = i+1;
  num[NUM*2+i] = i+1;
  num[NUM*3+i] = i+1;
 }
 scanf("%d", &n);
 for(i=0; i<n; i++){
  scanf("%c%d",&pcmp[i],&ncmp[i]);
 }
 for(i=0; i<n; i++){
  fof(j=0; j<NUM-1;j++){
   switch("pcmp[i]"){
    case 'S': if(ncmp[i]==num[NUM*0+j]){num[NUM*0+j] = -1;} break;     
    case 'H': if(ncmp[i]==num[NUM*1+j]){num[NUM*1+j] = -1;} break;
    case 'C': if(ncmp[i]==num[NUM*2+j]){num[NUM*2+j] = -1;} break;
    case 'D': if(ncmp[i]==num[NUM*3+j]){num[NUM*3+j] = -1;} break;
    default: break;
   }
  }
 }
 for(i=0; i<NUM*4-1; i++){
   if(num[i]!=-1){
    if(i<NUM){printf("S %d", num[i]);}
    else if(i<NUM*2){printf("H %d", num[i]);}
    else if(i<NUM*3){printf("C %d", num[i]);}
    else {printf("D %d", num[i]);}
   }
  }
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:3: error: implicit declaration of function 'fof'; did you mean 'feof'? [-Wimplicit-function-declaration]
   18 |   fof(j=0; j<NUM-1;j++){
      |   ^~~
      |   feof
main.c:18:10: error: expected ')' before ';' token
   18 |   fof(j=0; j<NUM-1;j++){
      |      ~   ^
      |          )
main.c:18:24: error: expected ';' before '{' token
   18 |   fof(j=0; j<NUM-1;j++){
      |                        ^
      |                        ;
main.c: At top level:
main.c:37:2: error: expected identifier or '(' before 'return'
   37 |  return 0;
      |  ^~~~~~
main.c:38:1: error: expected identifier or '(' before '}' token
   38 | }
      | ^
Language: C

#include<stdio.h>
#define NUM 13

int main(){
 int num[NUM*4-1],ncmp[NUM*4-1],n,i,j;
 char pcmp[NUM*4-1];
 for(i=0; i<NUM; i++){
  num[NUM*0+i] = i+1;
  num[NUM*1+i] = i+1;
  num[NUM*2+i] = i+1;
  num[NUM*3+i] = i+1;
 }
 scanf("%d", &n);
 for(i=0; i<n; i++){
  scanf("%c%d",&pcmp[i],&ncmp[i]);
 }
 for(i=0; i<n; i++){
  fof(j=0; j<NUM-1; j++){
   switch("pcmp[i]"){
    case 'S': if(ncmp[i]==num[NUM*0+j]){num[NUM*0+j] = -1;} break;     
    case 'H': if(ncmp[i]==num[NUM*1+j]){num[NUM*1+j] = -1;} break;
    case 'C': if(ncmp[i]==num[NUM*2+j]){num[NUM*2+j] = -1;} break;
    case 'D': if(ncmp[i]==num[NUM*3+j]){num[NUM*3+j] = -1;} break;
    default: break;
   }
  }
 }
 for(i=0; i<NUM*4-1; i++){
   if(num[i]!=-1){
    if(i<NUM){printf("S %d\n", num[i]);}
    else if(i<NUM*2){printf("H %d\n", num[i]);}
    else if(i<NUM*3){printf("C %d\n", num[i]);}
    else {printf("D %d\n", num[i]);}
   }
  }
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:3: error: implicit declaration of function 'fof'; did you mean 'feof'? [-Wimplicit-function-declaration]
   18 |   fof(j=0; j<NUM-1; j++){
      |   ^~~
      |   feof
main.c:18:10: error: expected ')' before ';' token
   18 |   fof(j=0; j<NUM-1; j++){
      |      ~   ^
      |          )
main.c:18:25: error: expected ';' before '{' token
   18 |   fof(j=0; j<NUM-1; j++){
      |                         ^
      |                         ;
main.c: At top level:
main.c:37:2: error: expected identifier or '(' before 'return'
   37 |  return 0;
      |  ^~~~~~
main.c:38:1: error: expected identifier or '(' before '}' token
   38 | }
      | ^
Language: C

#include<stdio.h>
#define NUM 13

int main(){
 int num[NUM*4-1],ncmp[NUM*4-1],n,i,j;
 char pcmp[NUM*4-1];
 for(i=0; i<NUM; i++){
  num[NUM*0+i] = i+1;
  num[NUM*1+i] = i+1;
  num[NUM*2+i] = i+1;
  num[NUM*3+i] = i+1;
 }
 scanf("%d", &n);
 for(i=0; i<n; i++){
  scanf("%c%d",&pcmp[i],&ncmp[i]);
 }
 for(i=0; i<n; i++){
  for(j=0; j<NUM-1; j++){
   switch("pcmp[i]"){
    case 'S': if(ncmp[i]==num[NUM*0+j]){num[NUM*0+j] = -1;} break;     
    case 'H': if(ncmp[i]==num[NUM*1+j]){num[NUM*1+j] = -1;} break;
    case 'C': if(ncmp[i]==num[NUM*2+j]){num[NUM*2+j] = -1;} break;
    case 'D': if(ncmp[i]==num[NUM*3+j]){num[NUM*3+j] = -1;} break;
    default: break;
   }
  }
 }
 for(i=0; i<NUM*4-1; i++){
   if(num[i]!=-1){
    if(i<NUM){printf("S %d\n", num[i]);}
    else if(i<NUM*2){printf("H %d\n", num[i]);}
    else if(i<NUM*3){printf("C %d\n", num[i]);}
    else {printf("D %d\n", num[i]);}
   }
  }
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:11: error: switch quantity not an integer
   19 |    switch("pcmp[i]"){
      |           ^~~~~~~~~
main.c: At top level:
main.c:37:2: error: expected identifier or '(' before 'return'
   37 |  return 0;
      |  ^~~~~~
main.c:38:1: error: expected identifier or '(' before '}' token
   38 | }
      | ^
Language: C

#include<stdio.h>
#define NUM 13

int main(){
 int num[NUM*4-1],ncmp[NUM*4-1],n,i,j;
 char pcmp[NUM*4-1];
 for(i=0; i<NUM; i++){
  num[NUM*0+i] = i+1;
  num[NUM*1+i] = i+1;
  num[NUM*2+i] = i+1;
  num[NUM*3+i] = i+1;
 }
 scanf("%d", &n);
 for(i=0; i<n; i++){
  scanf("%c%d",&pcmp[i],&ncmp[i]);
 }
 for(i=0; i<n; i++){
  for(j=0; j<NUM-1; j++){
   switch('pcmp[i]'){
    case 'S': if(ncmp[i]==num[NUM*0+j]){num[NUM*0+j] = -1;} break;     
    case 'H': if(ncmp[i]==num[NUM*1+j]){num[NUM*1+j] = -1;} break;
    case 'C': if(ncmp[i]==num[NUM*2+j]){num[NUM*2+j] = -1;} break;
    case 'D': if(ncmp[i]==num[NUM*3+j]){num[NUM*3+j] = -1;} break;
    default: break;
   }
  }
 }
 for(i=0; i<NUM*4-1; i++){
   if(num[i]!=-1){
    if(i<NUM){printf("S %d\n", num[i]);}
    else if(i<NUM*2){printf("H %d\n", num[i]);}
    else if(i<NUM*3){printf("C %d\n", num[i]);}
    else {printf("D %d\n", num[i]);}
   }
  }
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:11: warning: multi-character literal with 7 characters exceeds 'int' size of 4 bytes
   19 |    switch('pcmp[i]'){
      |           ^~~~~~~~~
main.c: At top level:
main.c:37:2: error: expected identifier or '(' before 'return'
   37 |  return 0;
      |  ^~~~~~
main.c:38:1: error: expected identifier or '(' before '}' token
   38 | }
      | ^
Language: C

#include<stdio.h>
#define NUM 13

int main(){
 int num[NUM*4-1],ncmp[NUM*4-1],n,i,j;
 char pcmp[NUM*4-1];
 for(i=0; i<NUM; i++){
  num[NUM*0+i] = i+1;
  num[NUM*1+i] = i+1;
  num[NUM*2+i] = i+1;
  num[NUM*3+i] = i+1;
 }
 scanf("%d", &n);
 for(i=0; i<n; i++){
  scanf("%c%d",&pcmp[i],&ncmp[i]);
 }
 for(i=0; i<n; i++){
  for(j=0; j<NUM; j++){
   switch('pcmp[i]'){
    case 'S': if(ncmp[i]==num[NUM*0+j]){num[NUM*0+j] = -1;} break;     
    case 'H': if(ncmp[i]==num[NUM*1+j]){num[NUM*1+j] = -1;} break;
    case 'C': if(ncmp[i]==num[NUM*2+j]){num[NUM*2+j] = -1;} break;
    case 'D': if(ncmp[i]==num[NUM*3+j]){num[NUM*3+j] = -1;} break;
    default: break;
   }
  }
 }
 for(i=0; i<NUM*4; i++){
  if(num[i]!=-1){
   if(i<NUM){printf("S %d\n", num[i]);}
   else if(NUM<=i&i<NUM*2){printf("H %d\n", num[i]);}
   else if(NUM*2<=i&i<NUM*3){printf("C %d\n", num[i]);}
   else(NUM*3<=i&i<NUM*4){printf("D %d\n", num[i]);}
  }
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:11: warning: multi-character literal with 7 characters exceeds 'int' size of 4 bytes
   19 |    switch('pcmp[i]'){
      |           ^~~~~~~~~
main.c:33:26: error: expected ';' before '{' token
   33 |    else(NUM*3<=i&i<NUM*4){printf("D %d\n", num[i]);}
      |                          ^
      |                          ;
Language: C

#include <stdio.h>
#define FOR(i,n) for(i = 0; i < n; i++)

int main(void){
    char M;
    int RankS[13], RankH[13], RankC[13], RankD[13];
    int R;
    int n, i, j;
    FOR(i, 13){
        RankS[i] = i + 1;
        RankH[i] = i + 1;
        RankC[i] = i + 1;
        RankD[i] = i + 1;
    }
    scanf("%d", &n);
    FOR(i, n){
        scanf_s("%c %d", &M, &R);
        switch (M){
        case 'S':
            RankS[R - 1] = 0;
            break;
        case 'H':
            RankH[R - 1] = 0;
            break;
        case 'C':
            RankC[R - 1] = 0;
            break;
        case 'D':
            RankD[R - 1] = 0;
            break;
        }
    }

    FOR(i, 13){
        if (RankS[i] != 0)printf("S %d\n", RankS[i]);
    }FOR(i, 13){
        if (RankH[i] != 0)printf("H %d\n", RankH[i]);
    }FOR(i, 13){
        if (RankC[i] != 0)printf("C %d\n", RankC[i]);
    }FOR(i, 13){
        if (RankD[i] != 0)printf("D %d\n", RankD[i]);
    }
}

Compiler output:
main.c: In function 'main':
main.c:17:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   17 |         scanf_s("%c %d", &M, &R);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>

int main(void)
{
	int n, card[4][13] = {0};
	int i, c, 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\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:28:21: error: 'j' undeclared (first use in this function)
   28 |                 for(j=0;j<13;j++){
      |                     ^
main.c:28:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:42: error: expected ';' before ')' token
   14 |                         for(l=0; l<n, l++){
      |                                          ^
      |                                          ;
Language: C

#include <stdio.h>

int main(void){

  boolean a[4][13];
  int n,rank;
  char c;
  register int i,s;

  scanf("%d",&n);
  for(i = 0;i < n;i++){
    scanf("%c %d",&c,&rank);
    if(c == S){
      a[1][rank] = true;
    }else if(c == H){
      a[2][rank] = true;
    }else if(c == C){
      a[3][rank] = true;
    }else if(c == H){
      a[4][rank] = true;
    }
  }
  for(i = 0;i < 4;i++){
    for(s = 0;s < 13;s++){
      if(a[i][s] == false){
        if(i == 0){
          printf("S %d\n",s);
        }else if(i == 1){
          printf("H %d\n",s);
        }else if(i == 2){
          printf("C %d\n",s);
        }else if(i == 3){
          printf("D %d\n",s);
        }
      }
    }
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:3: error: unknown type name 'boolean'
    5 |   boolean a[4][13];
      |   ^~~~~~~
main.c:13:13: error: 'S' undeclared (first use in this function)
   13 |     if(c == S){
      |             ^
main.c:13:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:20: error: 'true' undeclared (first use in this function)
   14 |       a[1][rank] = true;
      |                    ^~~~
main.c:2:1: note: 'true' 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:15:19: error: 'H' undeclared (first use in this function)
   15 |     }else if(c == H){
      |                   ^
main.c:17:19: error: 'C' undeclared (first use in this function)
   17 |     }else if(c == C){
      |                   ^
main.c:25:21: error: 'false' undeclared (first use in this function)
   25 |       if(a[i][s] == false){
      |                     ^~~~~
main.c:25:21: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C

#include <stdio.h>

int main(void){

  boolean a[4][13];
  int n,rank;
  char c;
  register int i,s;

  scanf("%d",&n);
  for(i = 0;i < n;i++){
    scanf("%c %d",&c,&rank);
    if(c == 'S'){
      a[1][rank] = true;
    }else if(c == 'H'){
      a[2][rank] = true;
    }else if(c == 'C'){
      a[3][rank] = true;
    }else if(c == 'H'){
      a[4][rank] = true;
    }
  }
  for(i = 0;i < 4;i++){
    for(s = 0;s < 13;s++){
      if(a[i][s] == false){
        if(i == 0){
          printf("S %d\n",s);
        }else if(i == 1){
          printf("H %d\n",s);
        }else if(i == 2){
          printf("C %d\n",s);
        }else if(i == 3){
          printf("D %d\n",s);
        }
      }
    }
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:3: error: unknown type name 'boolean'
    5 |   boolean a[4][13];
      |   ^~~~~~~
main.c:14:20: error: 'true' undeclared (first use in this function)
   14 |       a[1][rank] = true;
      |                    ^~~~
main.c:2:1: note: 'true' 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:14:20: note: each undeclared identifier is reported only once for each function it appears in
   14 |       a[1][rank] = true;
      |                    ^~~~
main.c:25:21: error: 'false' undeclared (first use in this function)
   25 |       if(a[i][s] == false){
      |                     ^~~~~
main.c:25:21: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C

#include <stdio.h>

int main(void){

  bool a[4][13];
  int n,rank;
  char c;
  register int i,s;

  scanf("%d",&n);
  for(i = 0;i < n;i++){
    scanf("%c %d",&c,&rank);
    if(c == 'S'){
      a[1][rank] = true;
    }else if(c == 'H'){
      a[2][rank] = true;
    }else if(c == 'C'){
      a[3][rank] = true;
    }else if(c == 'H'){
      a[4][rank] = true;
    }
  }
  for(i = 0;i < 4;i++){
    for(s = 0;s < 13;s++){
      if(a[i][s] == false){
        if(i == 0){
          printf("S %d\n",s);
        }else if(i == 1){
          printf("H %d\n",s);
        }else if(i == 2){
          printf("C %d\n",s);
        }else if(i == 3){
          printf("D %d\n",s);
        }
      }
    }
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:3: error: unknown type name 'bool'
    5 |   bool a[4][13];
      |   ^~~~
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:14:20: error: 'true' undeclared (first use in this function)
   14 |       a[1][rank] = true;
      |                    ^~~~
main.c:14:20: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:14:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:25:21: error: 'false' undeclared (first use in this function)
   25 |       if(a[i][s] == false){
      |                     ^~~~~
main.c:25:21: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C

#include<stdio.h>

int main(void){
	int n,x,date[100],i=0;
	
	scanf("%d",&n);
	
	while(i != n){
		scanf("%d",&date[i]);
		++i;
	}
	
	i = 0;
	
	while(i != n/2)
		x = date[i];
		date[i] = date[n-i-1];
		date[n-i-1] = x;
		++i;
	}
	
	i = 0;
	
	while(1){
		printf("%d",date[i]);
		if(i == n-1){break;}
		printf(" ");
		++i;
	}
	
	printf("\n");
	
	return 0;
}

Compiler output:
main.c:22:9: warning: data definition has no type or storage class
   22 |         i = 0;
      |         ^
main.c:22:9: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
main.c:24:9: error: expected identifier or '(' before 'while'
   24 |         while(1){
      |         ^~~~~
main.c:31:16: error: expected declaration specifiers or '...' before string constant
   31 |         printf("\n");
      |                ^~~~
main.c:33:9: error: expected identifier or '(' before 'return'
   33 |         return 0;
      |         ^~~~~~
main.c:34:1: error: expected identifier or '(' before '}' token
   34 | }
      | ^
Language: C

#include <stdio.h>

int main()
{
  int a[4][13];
  int i, n, mark, number, S, H, C, D, j;
  
  for (m = 0; m <= 3; m++){
    for (j = 0; j <= 12; j++){
      a[m][j] = 0;
    }
  }
  scanf ("%d", &n);
  for ( i = 0; i <= n; i++)
    {
      scanf ("%c %d", &mark, &number);
      S = 0;
      H = 1;
      C = 2; 
      D = 3;
      a[mark][number] = 1;
    }
  for ( m = 0; m <= 3; m++){
    for (j = 0; j <= 12; j++){
      if (a[m][j] == 0){
	S = 0;
	H = 1;
	C = 2; 
	D = 3;
	printf ("%c %d\n",m, j);
      }
    }
  }
  
  return 0;
  
}

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

#include <stdio.h>

int main()
{
  int a[4][13]={};
  int i, n, mark, number, S, H, C, D, j;
  
  for (m = 0; m <= 3; m++){
    for (j = 0; j <= 12; j++){
      a[m][j] = 0;
    }
  }
  scanf ("%d", &n);
  for ( i = 0; i <= n; i++)
    {
      scanf ("%c %d", &mark, &number);
      S = 0;
      H = 1;
      C = 2; 
      D = 3;
      a[mark][number] = 1;
    }
  for ( m = 0; m <= 3; m++){
    for (j = 0; j <= 12; j++){
      if (a[m][j] == 0){
	0 = S;
	1 = H;
	2 = C; 
	3 = D;
	printf ("%c %d\n",m, j);
      }
    }
  }
  
  return 0;
  
}

Compiler output:
main.c: In function 'main':
main.c:8:8: error: 'm' undeclared (first use in this function)
    8 |   for (m = 0; m <= 3; m++){
      |        ^
main.c:8:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:26:11: error: lvalue required as left operand of assignment
   26 |         0 = S;
      |           ^
main.c:27:11: error: lvalue required as left operand of assignment
   27 |         1 = H;
      |           ^
main.c:28:11: error: lvalue required as left operand of assignment
   28 |         2 = C;
      |           ^
main.c:29:11: error: lvalue required as left operand of assignment
   29 |         3 = D;
      |           ^
Language: C

#include <stdio.h>

int main()
{
  int a[4][13]={};
  int i, n, mark, number, S, H, C, D, j;
  
  for (m = 0; m <= 3; m++){
    for (j = 0; j <= 12; j++){
      a[m][j] = 0;
    }
  }
  scanf ("%d", &n);
  for ( i = 0; i <= n; i++)
    {
      scanf ("%c %d", &mark, &number);
      S = 0;
      H = 1;
      C = 2; 
      D = 3;
      a[mark][number] = 1;
    }
  for ( m = 0; m <= 3; m++){
    for (j = 0; j <= 12; j++){
      if (a[m][j] == 0){
	printf ("%c %d\n",m, j);
      }
    }
  }
  
  return 0;
  
}

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

#include <stdio.h>

int main()
{
  int a[4][13]={};
  int i, n, mark, number, S, H, C, D, j;
  
  for (m = 0; m <= 3; m++){
    for (j = 0; j <= 12; j++){
      a[m][j] = 0;
    }
  }
  scanf ("%d", &n);
  for ( i = 0; i <= n; i++)
    {
      scanf ("%c %d", &mark, &number);
      a[mark][number] = 1;
    }
  for ( m = 0; m <= 3; m++){
    for (j = 0; j <= 12; j++){
      if (a[m][j] == 0){
	printf ("%c %d\n",m, j);
      }
    }
  }
  
  return 0;
  
}

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

#include <stdio.h>

int main(){
	//n????????????????????°???S??????????????????H???????????????C???????????????D????????????
	int n, S[14] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
		H[14] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
		C[14] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
		D[14] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
		i, No;
	char Mark;
	do
	{
		scanf_s("%d", &n);
	} while (n >= 52);
	for (i = 1; i <= n;)
	{
		scanf_s(" %c %d", &Mark, &No);

		if (Mark == 'S')
		{
			S[No] = 1;
			i++;


		}
		if (Mark == 'C')
		{
			C[No] = 1;
			i++;


		}
		if (Mark == 'H')
		{
			H[No] = 1;
			i++;


		}
		if (Mark == 'D')
		{
			D[No] = 1;
			i++;


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

Compiler output:
main.c: In function 'main':
main.c:13:17: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   13 |                 scanf_s("%d", &n);
      |                 ^~~~~~~
      |                 scanf
Language: C

#define _CRT_SECURE_NO_WARNINGS 1

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

int main()
{
	char card[2];
	int i, j, taro, mark, number, str[4][13] = { 0 };
	scanf("%d", &taro);
	for (i = 0; i<taro ; i++){
		scanf("%s %d", card, &number);
		if (strcmp(card,  "S") == 0){ mark = 0; }
		else if (strcmp(card, "H") == 0){ mark = 1; }
		else if (strcmp(card, "C") == 0){ mark = 2; }
		else if (strcmp(card, "D") == 0){ mark = 3; }
		str[mark][number - 1] = 1;
	}

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

Compiler output:
main.c: In function 'main':
main.c:24:51: error: assignment to expression with array type
   24 |                                 if (i == 0){ card = "S"; }
      |                                                   ^
main.c:25:56: error: assignment to expression with array type
   25 |                                 else if (i == 1){ card = "H"; }
      |                                                        ^
main.c:26:56: error: assignment to expression with array type
   26 |                                 else if (i == 2){ card = "C"; }
      |                                                        ^
main.c:27:56: error: assignment to expression with array type
   27 |                                 else if (i == 3){ card = "D"; }
      |                                                        ^
Language: C

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

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

Compiler output:
main.c: In function 'main':
main.c:18:5: error: expected ';' before 'for'
   18 |   }1
      |     ^
      |     ;
   19 | 
   20 |   for(i=1;i<=13;i++){
      |   ~~~
Language: C

#include <stdio.h>
int main(void)
{
int n, no, a, i, j;
char m;
int x[4][13];

scanf("%d",&n);

while(n > 0){
scanf("%c %d",&m,&no);

if(m == 'S')
   a = 0;
if(m == 'H')
   a = 1;
if(m == 'C')
   a = 2;
if(m == 'D')
   a = 3;

x[a][no] = 1;
i--;
}

for(i = 0; i < 4; i++){
   for(j = 0; j < 13; j++{
if(x[i][j] == 1){

if(i == 0)
m = 'S';
if(i == 1)
m = 'H';
if(i == 2)
m = 'C';
if(i == 3)
m = 'D';

printf("%c %d\n",m,j + 1);
}
}

}

Compiler output:
main.c: In function 'main':
main.c:27:26: error: expected ')' before '{' token
   27 |    for(j = 0; j < 13; j++{
      |       ~                  ^
      |                          )
main.c:43:1: error: expected expression before '}' token
   43 | }
      | ^
main.c:43:1: error: expected declaration or statement at end of input
Language: C

#include <stdio.h>
int main(void)
{
int n, no, a, i, j;
char m;
int x[4][13];

scanf("%d",&n);

while(n > 0){
scanf("%c %d",&m,&no);

if(m == 'S')
   a = 0;
if(m == 'H')
   a = 1;
if(m == 'C')
   a = 2;
if(m == 'D')
   a = 3;

x[a][no] = 1;
i--;
}

for(i = 0; i < 4; i++){
   for(j = 0; j < 13; j++{
if(x[i][j] == 1){

if(i == 0)
m = 'S';
if(i == 1)
m = 'H';
if(i == 2)
m = 'C';
if(i == 3)
m = 'D';

printf("%c %d\n",m,j + 1);
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:27:26: error: expected ')' before '{' token
   27 |    for(j = 0; j < 13; j++{
      |       ~                  ^
      |                          )
main.c:43:1: error: expected expression before '}' token
   43 | }
      | ^
main.c:43:1: error: expected declaration or statement at end of input
Language: C

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

scanf("%d",&n);

while(n > 0){
scanf("%c %d",&m,&no);

if(m == 'S')
   a = 0;
if(m == 'H')
   a = 1;
if(m == 'C')
   a = 2;
if(m == 'D')
   a = 3;

x[a][no] = 1;
i--;
}

for(i = 0; i < 4; i++){
   for(j = 0; j < 13; j++){
if(x[i][j] == 1){

if(i == 0)
m = 'S';
if(i == 1)
m = 'H';
if(i == 2)
m = 'C';
if(i == 3)
m = 'D';

printf("%c %d\n",m,j + 1);
}
}
return 0;
}

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

#include <stdio.h>
int main(void)
{
int n, no, a, i, j;
char m;
int x[4][13]

scanf("%d",&n);

while(n > 0){
scanf("%c %d",&m,&no);

if(m == 'S')
   a = 0;
if(m == 'H')
   a = 1;
if(m == 'C')
   a = 2;
if(m == 'D')
   a = 3;

x[a][no - 1] = 1;
n--;
}

for(i = 0; i < 4; i++){
   for(j = 0; j < 13; j++){
if(x[i][j] == 0){

if(i == 0)
m = 'S';
if(i == 1)
m = 'H';
if(i == 2)
m = 'C';
if(i == 3)
m = 'D';

printf("%c %d\n",m,j + 1);
}
}
}

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    8 | scanf("%d",&n);
      | ^~~~~
main.c:22:1: error: 'x' undeclared (first use in this function)
   22 | x[a][no - 1] = 1;
      | ^
main.c:22:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void){
  const int MARK = 4;
  const int NUM = 13;
  int n, i, j, num;
  int card[MARK][NUM] = {0};
  char mark;

  scanf("%d", &n);
  for(i = 0; i < n; i++){
    scanf("%s %d", &mark, &num);
    if(mark == 'S')
      card[0][num - 1] = 1;
    else if(mark == 'H')
      card[1][num - 1] = 1;
    else if(mark == 'C')
      card[2][num - 1] = 1;
    else
      card[3][num - 1] = 1;
  }
  
  for(i = 0; i < MARK; i++){
    for(j = 0; j < NUM; j++){
      if(!card[i][j]){
	if(i == 0)
	  printf("S %d\n", j + 1);
	else if(i == 1)
	  printf("H %d\n", j + 1);
	else if(i == 2)
	  printf("C %d\n", j + 1);
	else
	  printf("D %d\n", j + 1);
      }
    }
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:25: error: variable-sized object may not be initialized except with an empty initializer
    7 |   int card[MARK][NUM] = {0};
      |                         ^
Language: C

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

  char mk[4]={'S','H','C','D'};
  int n,c[4][14],i,j,s,m;
  char g;

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

      scanf("%d",&n);

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

  return 0;

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

#include <stdio.h>
int main(void)
{
int n,b,i,j;
int rev[4][15] = {{0}};
char a;

scanf("%d",&n);

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

ptintf("\n");
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:24:9: error: 'm' undeclared (first use in this function)
   24 |         m = 'S';
      |         ^
main.c:24:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:35:1: error: implicit declaration of function 'ptintf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   35 | ptintf("\n");
      | ^~~~~~
      | printf
Language: C

#include <stdio.h>
#include <math.h>

int main(){
	
	int i,n,s;
	bool a[52];
	char m;

	for (i = 0; i < 52; i++){
		a[i] = false;
	}

	scanf("%d", &n);

	for (i = 0; i < n; i++){
		scanf("%c %d",&m, &s);
		if (m == 'S'){
			a[s - 1] = true;
		}else if(m=='H'){
			a[s + 12] = true;
		}else if (m=='C'){
			a[s + 25] = true;
		}else{
			a[s + 38] = true;
		}
	}

	for (i = 0; i < n; i++){
		if (a[i] == false){
			if (i < 13){
				printf("S %d\n", i+1);
			}else if (i < 26){
				printf("H %d\n", i-12);
			}else if (i < 39){
				printf("C %d\n", i-25);
			}else{
				printf("D %d\n", i -38);
			}
		}
		
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: unknown type name 'bool'
    7 |         bool a[52];
      |         ^~~~
main.c:3:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    2 | #include <math.h>
  +++ |+#include <stdbool.h>
    3 | 
main.c:11:24: error: 'false' undeclared (first use in this function)
   11 |                 a[i] = false;
      |                        ^~~~~
main.c:11:24: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:11:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:36: error: 'true' undeclared (first use in this function)
   19 |                         a[s - 1] = true;
      |                                    ^~~~
main.c:19:36: 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 a,b,c,d,f,g;
int card[4][13]=0;
char z;
scanf("%d",&a);
for(b=0;b<a;b++){
scanf("%s %d",&z,c);
if(z=='S')
card[0][c]=1;
if(z=='H')
card[1][c]=1;
if(z=='C')
card[2][c]=1;
if(z=='D')
card[3][c]=1;
}
for(b=0;b<4;b++){
for(d=0;d<13;d++){
if(card[0][d]=0)
pritf("S %d",card[b][d]);
if(card[1][d]=0)
pritf("H %d",card[b][d]);
if(card[2][d]=0)
pritf("C %d",card[b][d]);
if(card[3][d]=0)
pritf("D %d",card[b][d]);
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:17: error: invalid initializer
    4 | int card[4][13]=0;
      |                 ^
main.c:21:1: error: implicit declaration of function 'pritf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   21 | pritf("S %d",card[b][d]);
      | ^~~~~
      | printf