criyle/codenet-compile-errors huggingface dataset:
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;
		}
		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>
#include<stdlib.h>

int main(){
 int n,i,X[53],B;
 char A;
 X[0]=0
 for(i=0;i<=52;i++){
  X[i]=1;}
 scanf("%d",&n);
 for(i=1;i<=n;i++){
  scanf("%c %d",&A,&B);
  if(A=='H'){
   B=B+13;}
  if(A=='C'){
   B=B+26;}
  if(A=='D'){
   B=B+39;}
  X[B]=0;}
 for(i=1;i<=52;i++){
  if(B[i]=1){
   if((i-1)/13==0){
    printf("S %d",i);}
   if((i-1)/13==1){
    printf("H %d",i-13);}
   if((i-1)/13==2){
    printf("C %d",i-26);}
   if((i-1)/13==3){
    printf("D %d",i-39);}}}
  printf("\n");
  return 0;}

Compiler output:
main.c: In function 'main':
main.c:7:8: error: expected ';' before 'for'
    7 |  X[0]=0
      |        ^
      |        ;
    8 |  for(i=0;i<=52;i++){
      |  ~~~    
main.c:21:7: error: subscripted value is neither array nor pointer nor vector
   21 |   if(B[i]=1){
      |       ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:24:24: error: expected ';' before '}' token
   24 |      printf("S %d\n",j)}
      |                        ^
      |                        ;
main.c:26:24: error: expected ';' before '}' token
   26 |      printf("H %d\n",j)}
      |                        ^
      |                        ;
main.c:28:24: error: expected ';' before '}' token
   28 |      printf("C %d\n",j)}
      |                        ^
      |                        ;
main.c:30:24: error: expected ';' before '}' token
   30 |      printf("D %d\n",j)}}}}
      |                        ^
      |                        ;
Language: C

#include<stdio.h>

int main(){
 int n,i,X[55],B;
 char A,M;
 X[0]=0;
 for(i=1;i<=52;i++){
  X[i]=1;}
 scanf("%d",&n);
 for(i=1;i<=n;i++){
  scanf("%c %d",&A,&B);
  if(i!=n) scanf("%c",m);
  if(A=='H'){
   B=B+13;}
  if(A=='C'){
   B=B+26;}
  if(A=='D'){
   B=B+39;}
  X[B]=0;}
 for(i=1;i<=52;i++){
  if(X[i]=1){
   if((i-1)/13==0){
    printf("S %d\n",i);}
   if((i-1)/13==1){
    printf("H %d\n",i-13);}
   if((i-1)/13==2){
    printf("C %d\n",i-26);}
   if((i-1)/13==3){
    printf("D %d\n",i-39);}}}
  return 0;}

Compiler output:
main.c: In function 'main':
main.c:12:23: error: 'm' undeclared (first use in this function)
   12 |   if(i!=n) scanf("%c",m);
      |                       ^
main.c:12:23: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#include<stdlib.h>

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

Compiler output:
main.c: In function 'main':
main.c:29:20: error: 'a' undeclared (first use in this function)
   29 |                 if(a[i]==1){
      |                    ^
main.c:29:20: 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][13]={{0},{0}};/*2?¬??????????????????????*/
	int j,n,a;/*a?????????????????¨*/
	char i;	/*i????¨????*/

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

	for(i=0;i<n;i++){
	char b;
	int c;
	scanf("%c %d\n",&b, &c);
	if(b=='S'){		/*??\???????????????????????????????????????????´?*/
		cards[0][c]=1;
	}else if(b=='H'){
		cards[1][c]=1;
	}else if(b=='C'){
		cards[2][c]=1;
	}else if(b=='D'){
		cards[3][c]=1;
	}
	}
	char pattern[]={'S','H','C','D'}
	for(i=0;i<4;i++){
		for(j=1;j<=13;j++){
		if(cards[i][j]==0){ /*???????????????????????????????????????*/
		printf("%c %d\n",pattern[i],j); 
		}
	}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:28:9: error: expected ',' or ';' before 'for'
   28 |         for(i=0;i<4;i++){
      |         ^~~
main.c:28:24: error: expected ';' before ')' token
   28 |         for(i=0;i<4;i++){
      |                        ^
      |                        ;
main.c:28:24: error: expected statement before ')' token
Language: C

#include<stdio.h>

int main(void){
int N,i,j,rank;
int card[4][13];
char c;
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",&c,&rank);
   switch(c){
      case 'S':
         card[0][rank-1]=99;
         break;
      case 'H':
         card[1][rank-1]=99;
         break;
      case 'C':
         card[2][rank-1]=99;
         break;
      case 'D':
         card[3][rank-1]=99;
         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 0:
               printf("H %d\n",j+1);
               break;
            case 0:
               printf("C %d\n",j+1);
               break;
            case 0:
               printf("D %d\n",j+1);
               break;
            }
         }
      }
   }

}

Compiler output:
main.c: In function 'main':
main.c:34:13: error: duplicate case value
   34 |             case 0:
      |             ^~~~
main.c:31:13: note: previously used here
   31 |             case 0:
      |             ^~~~
main.c:37:13: error: duplicate case value
   37 |             case 0:
      |             ^~~~
main.c:31:13: note: previously used here
   31 |             case 0:
      |             ^~~~
main.c:40:13: error: duplicate case value
   40 |             case 0:
      |             ^~~~
main.c:31:13: note: previously used here
   31 |             case 0:
      |             ^~~~
Language: C

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

	int n;
	int a[4][13];
	int i = 0, j = 0;
	int k = 0;
	int x = 0;
	char m;  

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

	scanf_s("%d", &n);

	for (k = 0; k <2*n; k++){
		scanf_s("%c %d", &m, &x);
			 if (m == 'S')a[0][x] = 1;
		else if (m == 'H')a[1][x] = 1;
		else if (m == 'C')a[2][x] = 1;
		else if (m == 'D')a[3][x] = 1;
	}


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

		}

	}
	return 0;
}

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

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

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

Compiler output:
main.c: In function 'main':
main.c:10:29: error: expected ';' before 'if'
   10 |         scanf("%c %d",&b,&c)
      |                             ^
      |                             ;
   11 |                 if(b=='S')
      |                 ~~           
main.c:13:17: error: 'else' without a previous 'if'
   13 |                 else if(b=='H')
      |                 ^~~~
main.c:34:1: error: expected declaration or statement at end of input
   34 | return 0;
      | ^~~~~~
Language: C

#include<stdio.h>
struct card{
  char mark;
  int num;
  int check;
}
int main(void)
{
  struct card tcards[53]=
  {
    {S,1,0},{S,2,0},{S,3,0},{S,4,0},{S,5,0},{S,6,0},{S,7,0},{S,8,0},{S,9,0},{S,10,0},{S,11,0},{S,12,0},{S,13,0},
    {H,1,0},{H,2,0},{H,3,0},{H,4,0},{H,5,0},{H,6,0},{H,7,0},{H,8,0},{H,9,0},{H,10,0},{H,11,0},{H,12,0},{H,13,0},
    {C,1,0},{C,2,0},{C,3,0},{C,4,0},{C,5,0},{C,6,0},{C,7,0},{C,8,0},{C,9,0},{C,10,0},{C,11,0},{C,12,0},{C,13,0},
    {D,1,0},{D,2,0},{D,3,0},{D,4,0},{D,5,0},{D,6,0},{D,7,0},{D,8,0},{D,9,0},{D,10,0},{D,11,0},{D,12,0},{D,13,0}
  }
  struct card fcards[53];
	int i,n;
	scanf("%d",&n);
	for(i = 0;i < n;i++){
		scanf("%c %d",&fcards.mark[i],&fcards.num[i]);
	}
	for(i = 0;i < n;i++){
    if(fcards.mark[i] == 'S'){
      tcards[fcards.num[i]].check ++;
    }
    if(fcards.mark[i] == 'H'){
      tcards[fcards.num[i]+13].check ++;
    }
    if(fcards.mark[i] == 'C'){
      tcards[fcards.num[i]+26].check ++;
    }
    if(fcards.mark[i] == 'D'){
      tcards[fcards.num[i]+39].check ++;
    }
  }
  for(i = 0;i < n;i++){
    if(tcards[i].check == 0){
      printf("%c %d\n",tcards[i].mark,tcards[i].num)
    }
  }
	return 0;
}

Compiler output:
main.c:7:1: error: expected ';', identifier or '(' before 'int'
    7 | int main(void)
      | ^~~
main.c: In function 'main':
main.c:11:6: error: 'S' undeclared (first use in this function)
   11 |     {S,1,0},{S,2,0},{S,3,0},{S,4,0},{S,5,0},{S,6,0},{S,7,0},{S,8,0},{S,9,0},{S,10,0},{S,11,0},{S,12,0},{S,13,0},
      |      ^
main.c:11:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:6: error: 'H' undeclared (first use in this function)
   12 |     {H,1,0},{H,2,0},{H,3,0},{H,4,0},{H,5,0},{H,6,0},{H,7,0},{H,8,0},{H,9,0},{H,10,0},{H,11,0},{H,12,0},{H,13,0},
      |      ^
main.c:13:6: error: 'C' undeclared (first use in this function)
   13 |     {C,1,0},{C,2,0},{C,3,0},{C,4,0},{C,5,0},{C,6,0},{C,7,0},{C,8,0},{C,9,0},{C,10,0},{C,11,0},{C,12,0},{C,13,0},
      |      ^
main.c:14:6: error: 'D' undeclared (first use in this function)
   14 |     {D,1,0},{D,2,0},{D,3,0},{D,4,0},{D,5,0},{D,6,0},{D,7,0},{D,8,0},{D,9,0},{D,10,0},{D,11,0},{D,12,0},{D,13,0}
      |      ^
main.c:16:3: error: expected ',' or ';' before 'struct'
   16 |   struct card fcards[53];
      |   ^~~~~~
main.c:20:32: error: 'fcards' undeclared (first use in this function); did you mean 'tcards'?
   20 |                 scanf("%c %d",&fcards.mark[i],&fcards.num[i]);
      |                                ^~~~~~
      |                                tcards
main.c:38:53: error: expected ';' before '}' token
   38 |       printf("%c %d\n",tcards[i].mark,tcards[i].num)
      |                                                     ^
      |                                                     ;
   39 |     }
      |     ~
Language: C

#include<stdio.h>
int main(void){
	
	
	int s[12]={1,2,3,4,5,6,7,8,9,10,11,12,13};
	int h[12]={1,2,3,4,5,6,7,8,9,10,11,12,13};
	int c[12]={1,2,3,4,5,6,7,8,9,10,11,12,13};
	int d[12]={1,2,3,4,5,6,7,8,9,10,11,12,13};
	
	int n,a;
	char x;		//??????(S,H,C,D)
	int y;		//?????????(1-13)
	
	scanf("%d",&n);
	
	for(a=0;a<n;a++){
		scanf("%c %d",&x,&y);
		
		if(x==S){
			s[y-1]=0;
		}else if(x==H){
			h[y-1]=0;
		}else if(x==C){
			c[y-1]=0;
		}else if(x==D){
			d[y-1]=0;
		}
	}
	
	for(a=0;a<=12;a++){
		
		if(s[a]!=0){
			printf("S %d",s[a]);
		}
	}
	
	
	for(a=0;a<=12;a++){
		
		if(h[a]!=0){
			printf("H %d",h[a]);
		}
	}
	
	
	for(a=0;a<=12;a++){
		
		if(c[a]!=0){
			printf("C %d",c[a]);
		}
	}
	
	
	for(a=0;a<=12;a++){
		
		if(d[a]!=0){
			printf("D %d",d[a]);
		}
	}
	
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:47: warning: excess elements in array initializer
    5 |         int s[12]={1,2,3,4,5,6,7,8,9,10,11,12,13};
      |                                               ^~
main.c:5:47: note: (near initialization for 's')
main.c:6:47: warning: excess elements in array initializer
    6 |         int h[12]={1,2,3,4,5,6,7,8,9,10,11,12,13};
      |                                               ^~
main.c:6:47: note: (near initialization for 'h')
main.c:7:47: warning: excess elements in array initializer
    7 |         int c[12]={1,2,3,4,5,6,7,8,9,10,11,12,13};
      |                                               ^~
main.c:7:47: note: (near initialization for 'c')
main.c:8:47: warning: excess elements in array initializer
    8 |         int d[12]={1,2,3,4,5,6,7,8,9,10,11,12,13};
      |                                               ^~
main.c:8:47: note: (near initialization for 'd')
main.c:19:23: error: 'S' undeclared (first use in this function)
   19 |                 if(x==S){
      |                       ^
main.c:19:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:21:29: error: 'H' undeclared (first use in this function)
   21 |                 }else if(x==H){
      |                             ^
main.c:23:29: error: 'C' undeclared (first use in this function)
   23 |                 }else if(x==C){
      |                             ^
main.c:25:29: error: 'D' undeclared (first use in this function)
   25 |                 }else if(x==D){
      |                             ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:1: error: expected expression before '?' token
    3 | ????????int a[4][14],n,i,j;
      | ^
main.c:4:1: error: expected expression before '?' token
    4 | ????????scanf("%d",&n);
      | ^
main.c:4:21: error: 'n' undeclared (first use in this function)
    4 | ????????scanf("%d",&n);
      |                     ^
main.c:4:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:1: error: expected expression before '?' token
    5 | ??????????
      | ^
main.c:13:1: error: expected expression before '?' token
   13 | ????????for(i=0;i<n;i++){
      | ^
main.c:29:1: error: expected expression before '?' token
   29 | ????????for(i=0;i<4;i++){
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:16:9: error: unknown type name 'var'
   16 |         var suit = 0;
      |         ^~~
Language: C



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

 
Compile Error Logs: 

You are not authorized to see the message. 
 
 
Status 
Judge: 4/4  C  CPU: 00.00 sec  Memory: 600 KB  Length: 510 B  2016-07-04 17:24  2016-07-04 17:24  
Results for testcases 
Case # Verdict CPU Time Memory In Out Case Name 
 Case #1: : Accepted  00.00 sec 600 KB    
 Case #2: : Accepted  00.00 sec 600 KB    
 Case #3: : Accepted  00.00 sec 560 KB    
 Case #4: : Accepted  00.00 sec 600 KB    



 < prev | 1 /  4 | next >      : Accepted        00.00 sec        600 KB 

 

Judge Input #1 (  | )  Judge Output #1 (  | ) 


  

 

Comments 
 

 Under Construction. 

 
Categories 
 



 
Free Tags 
 



 

Compiler output:
main.c:44:1: error: unknown type name 'Compile'
   44 | Compile Error Logs:
      | ^~~~~~~
main.c:44:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Logs'
   44 | Compile Error Logs:
      |               ^~~~
main.c:52:6: error: stray '#' in program
   52 | Case # Verdict CPU Time Memory In Out Case Name
      |      ^
main.c:53:7: error: stray '#' in program
   53 |  Case #1: : Accepted  00.00 sec 600 KB
      |       ^
main.c:54:7: error: stray '#' in program
   54 |  Case #2: : Accepted  00.00 sec 600 KB
      |       ^
main.c:55:7: error: stray '#' in program
   55 |  Case #3: : Accepted  00.00 sec 560 KB
      |       ^
main.c:56:7: error: stray '#' in program
   56 |  Case #4: : Accepted  00.00 sec 600 KB
      |       ^
main.c:64:13: error: stray '#' in program
   64 | Judge Input #1 (  | )  Judge Output #1 (  | )
      |             ^
main.c:64:37: error: stray '#' in program
   64 | Judge Input #1 (  | )  Judge Output #1 (  | )
      |                                     ^
Language: C

47
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:1: error: expected identifier or '(' before numeric constant
    1 | 47
      | ^~
Language: C

#include<stdio,h>

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

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

#include<stdio.h>

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

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

# include<iostream>
# include<stdio.h>

using namespace std;
int main(void){
	int i,j,n,no,mark;
	int card[4][14];
		scanf_s("%d", &n);
	for (i = 0; i < n; i++){
		scanf_s("%c,%d", &mark, &no);
		switch (mark){
		case'S':
				card[0][no] = 99;
				break;
		case'H':
				card[0][no] = 99;
				break;
		case'C':
				card[0][no] = 99;
				break;
		case'D':
				card[0][no] = 99;
				break;

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

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

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:21: error: expected ';' before 'if'
   13 | scanf("%c %d",&b,&a)
      |                     ^
      |                     ;
   14 | if(b=='S') f[a-1][0]=1;
      | ~~
Language: C

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

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

int main(void){
 char mark[4] = {'S','H','C','D'};
 int num[13] = {1,2,3,4,5,6,7,8,9,10,11,12,13};
 char mark_list[52];
 int num_list[52];
 char m;
 int s;
 int n;
 int i;
 int j;
 int k;
 int flag;
 int l;

 scanf("%d",&n)

 for(i=0;i<n;i++){
  scanf("%c %d",&m,&s);
  mark_list[i] = m;
  num_list[i] = s;
 }

  flag = 0;
  for(j=0;j<4;j++){
   for(k=0;k<13<k++){
    flag = 0;
    for(i=0;i<n;i++){
     if(mark[j] == mark_list[i] && num[k] == mark_list[i]){
      flag = 1;
     }
    }printf("%c %d",mark[j],num[k])
    if(flag==0){
     
    }
   }
  }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:2: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   15 |  scanf("%d",&n)
      |  ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:15:2: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   15 |  scanf("%d",&n)
      |  ^~~~~
main.c:15:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:15:16: error: expected ';' before 'for'
   15 |  scanf("%d",&n)
      |                ^
      |                ;
   16 | 
   17 |  for(i=0;i<n;i++){
      |  ~~~            
main.c:25:20: error: expected ';' before ')' token
   25 |    for(k=0;k<13<k++){
      |                    ^
      |                    ;
main.c:31:6: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   31 |     }printf("%c %d",mark[j],num[k])
      |      ^~~~~~
main.c:31:6: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:31:6: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:31:6: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:31:36: error: expected ';' before 'if'
   31 |     }printf("%c %d",mark[j],num[k])
      |                                    ^
      |                                    ;
   32 |     if(flag==0){
      |     ~~
Language: C

int main(void){
	char mark[4] = { 'S', 'H', 'C', 'D' };
	int num[13] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 };
	char mark_list[52];
	int num_list[52];
	char m;
	int s;
	int n;
	int i;
	int j;
	int k;
	int flag;
	scanf("%d", &n);
	for (i = 0; i < n; i++){
		scanf("%c %d", &m, &s);
		mark_list[i] = m;
		num_list[i] = s;
	}
	for (j = 0; j < 4; j++){
		for (k = 0; k < 13; k++){
			flag = 0;
			for (i = 0; i < n; i++){
				if (mark[j] == mark_list[i] && num[k] == mark_list[i]){
					flag = 1;
				}
				if (flag == 0){
					printf("%c %d", mark[j], num[k]);
				}
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   13 |         scanf("%d", &n);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:13:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   13 |         scanf("%d", &n);
      |         ^~~~~
main.c:13:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:27:41: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   27 |                                         printf("%c %d", mark[j], num[k]);
      |                                         ^~~~~~
main.c:27:41: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:27:41: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:27:41: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:32:1: error: expected declaration or statement at end of input
   32 | }
      | ^
Language: C

#include <stdio.h>

int main()
{
int a[4][13]={0};
int i, j, k, x, n;
char m;

scanf("%d", &n);

for(k = 0; k < n; k++)
{
scanf(" %c%d", &m, &x);
if(m == 'S')
{
	a[0][x - 1] = 1;
}
	
else{
	if(m == 'H')
	{
	a[1][x - 1] = 1;
	}
else{ 
		if(m == 'C')
		{
		a[2][x - 1] = 1;
		}
	else
	{
	if(m == 'D')
	{
		a[3][x - 1] = 1;
	}
		}
}
}
}
printf("\n");

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

Compiler output:
main.c: In function 'main':
main.c:58:13: error: expected ')' before ';' token
   58 | printf("\n)";
      |       ~     ^
      |             )
main.c:59:10: error: expected ';' before '}' token
   59 | return 0;
      |          ^
      |          ;
   60 | }
      | ~
Language: C

#include<stdio.h>

int max;

int main(){

scanf("%d\n",&max);
	int i,q;
	int p[52];
	char c;
	for(i=0;i<max;i++){
		
		if(i==max-1){scanf("%c %d",&c,&q);}
		else{scanf("%c %d\n",&c,&q);}
		switch(c){
			case 'S':p[q-1]=1;break;
			case 'H':p[q-1+13]=1;break;
			case 'C':p[q-1+26]=1;break;
			case 'D':p[q-1+39]=1;break;
		}
	}
	for(i=0;i<51;i++){
		if(p[i]!=1){
			if(i/13 == 0){printf("S %d\n",i+1);}
			else if(i/13 == 1){printf("H %d\n",i+1-13);}
			else if(i/13 == 2){printf("C %d\n",i+1-26);}
			else if(i/13 == 3){printf("D %d\n",i+1-39);}
		}
	}
                if(p[51]!=1){
			printf("D 13");}
		}

return 0;
}

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

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

#define TRUE 1
#define FALSE 0
#define SUIT 4
#define RANK 13
??
int main(){
????????int n;/*cards you have*/
????????int rank;
????????int i,j;
????????char mark;
????????char *sp = "SHCD";
??
????????int cards[SUIT][RANK] = {FALSE};
??
????????scanf("%d", &n);
??
????????if(n > 52){
????????????????return 0;
????????}
??
????????for(i = 0;i < n;i++){
????????????????scanf("%s %d", &mark, &rank);
????????????????if(rank >= 1 && rank <= RANK){
????????????????????????for(j = 0;j < SUIT;j++){
????????????????????????????????if(mark == *(sp + j)){
????????????????????????????????????????cards[j][rank - 1] = TRUE;
????????????????????????????????????????break;
????????????????????????????????}
????????????????????????}
????????????????}else{
????????????????????????return 0;
????????????????}
????????}
??
????????for(i = 0;i < SUIT;i++){
????????????????for(j = 0;j < RANK;j++){
????????????????????????if(cards[i][j] == FALSE){
????????????????????????????????printf("%c %d\n", *(sp + i), j + 1);
????????????????????????}
????????????????}
????????}
??
????????return 0;
}

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

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

#define TRUE 1
#define FALSE 0
#define SUIT 4
#define RANK 13
??
int main(){
????????int n;
????????int rank;
????????int i,j;
????????char mark;
????????char *sp = "SHCD";
??
????????int cards[SUIT][RANK] = {FALSE};
??
????????scanf("%d", &n);
??
????????if(n > 52){
????????????????return 0;
????????}
????????for(i = 0;i < n;i++){
????????????????scanf("%s %d", &mark, &rank);
????????????????if(rank >= 1 && rank <= RANK){
????????????????????????for(j = 0;j < SUIT;j++){
????????????????????????????????if(mark == *(sp + j)){
????????????????????????????????????????cards[j][rank - 1] = TRUE;
????????????????????????????????????????break;
????????????????????????????????}
????????????????????????}
????????????????}else{
????????????????????????return 0;
????????????????}
????????}
????????for(i = 0;i < SUIT;i++){
????????????????for(j = 0;j < RANK;j++){
????????????????????????if(cards[i][j] == FALSE){
????????????????????????????????printf("%c %d\n", *(sp + i), j + 1);
????????????????????????}
????????????????}
????????}
????????return 0;
}

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

#include<stdio.h>

int main()
{
    int a,b,c,i;
    char s,F[4]="SHCD";
    int cards[4][13];
    scanf("%d\n",&a);
    for(i=0;i<a;cards[s][c];i++){
    	scanf("%c %d\n",&s,&b);
    }
    for(i=0;i<4;i++){
    	for(b=0;b<13;b++){
    		if(!cards[F[i]][b]){
    			printf("%c %d\n",F[i],b);
    		}
    	}
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:28: error: expected ')' before ';' token
    9 |     for(i=0;i<a;cards[s][c];i++){
      |        ~                   ^
      |                            )
Language: C

#include<stdio.h>

int main()
{
    int a,b,c,i;
    char s,F[4]="SHCD";
    int cards[4][13];
    scanf("%d\n",&a);
    for(i=0;i<a;cards[s][c];i++){
    	scanf("%c %d\n",&s,&b);
    }
    for(i=0;i<4;i++){
    	for(b=0;b<13;b++){
    	    if(!cards[F[i]][b]){
    		printf("%c %d\n",F[i],b);
    	    }
    	}
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:28: error: expected ')' before ';' token
    9 |     for(i=0;i<a;cards[s][c];i++){
      |        ~                   ^
      |                            )
Language: C

##include<stdio.h>

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

Compiler output:
main.c:1:1: error: stray '##' in program
    1 | ##include<stdio.h>
      | ^~
main.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | ##include<stdio.h>
      |          ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:12:9: error: size of array 'cards' has non-integer type
   12 |     int cards[b][c]={1};
      |         ^~~~~
main.c:12:9: error: conflicting types for 'cards'; have 'int[1][c]'
main.c:6:9: note: previous definition of 'cards' with type 'int[4][13]'
    6 |     int cards[4][13]={0};
      |         ^~~~~
main.c:12:21: error: variable-sized object may not be initialized except with an empty initializer
   12 |     int cards[b][c]={1};
      |                     ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:11:13: error: size of array 'cards' has non-integer type
   11 |         int cards[b][c]={1};
      |             ^~~~~
main.c:11:25: error: variable-sized object may not be initialized except with an empty initializer
   11 |         int cards[b][c]={1};
      |                         ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:11:14: error: array subscript is not an integer
   11 |         cards[b][c]=1;
      |              ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:9:24: error: array subscript is not an integer
    9 |     for(i=0;i<a-1;cards[b][c]=1;i++){
      |                        ^
main.c:9:32: error: expected ')' before ';' token
    9 |     for(i=0;i<a-1;cards[b][c]=1;i++){
      |        ~                       ^
      |                                )
Language: C

include <stdio.h>
include <stdlib.h>
include <string.h>

int main(void){
    int n;
    int s[13] = {};
    int h[13] = {};
    int c[13] = {}:
    int d[13] = {};
    int number;
    int i;
    char mark[2];
    char input[6];

    fgets(input, sizeof(input), stdin);
    n = atoi(input);
    
    for (i = 0, i < n; i++){
        fgets(input, sizeof(input), stdin);
        mark = strtok(input, " ");
        number = strtok(NULL, " ");  
        
        switch (*mark){
            case 67:
                c[number - 1] = 1;
                break;
            case 68:
                d[number - 1] = 1;
                break;
            case 72:
                h[number - 1] = 1;
                break;
            case 83:
                s[number - 1] = 1;
                break;
    }

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

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

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

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

    printf("\n");

    return 0;
}

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

#include <stdio.h>
#define PIC (4)
#define RANK (13)

int main(){
int i,n,pic,rank,stuck[PIC][RANK];
scanf("%d",&n);
for(i=1,i<=n,i++){
   scanf("%d %d",&pic,&rank);
   switch(pic){
      case 'S':pic=0;
      case 'H':pic=1;
      case 'C':pic=2;
      case 'D':pic=3;
   }

Compiler output:
main.c: In function 'main':
main.c:8:17: error: expected ';' before ')' token
    8 | for(i=1,i<=n,i++){
      |                 ^
      |                 ;
main.c:8:17: error: expected expression before ')' token
main.c:15:4: error: expected declaration or statement at end of input
   15 |    }
      |    ^
main.c:15:4: error: expected declaration or statement at end of input
Language: C

#include <stdio.h>
#define PIC (4)
#define RANK (13)

int main(){
int i,n,pic,rank,stuck[PIC][RANK];
scanf("%d",&n);
for(i=1,i<=n,i++){
   scanf("%d %d",&pic,&rank);
   switch(pic){
      case 'S':pic=0;
      case 'H':pic=1;
      case 'C':pic=2;
      case 'D':pic=3;
   }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:17: error: expected ';' before ')' token
    8 | for(i=1,i<=n,i++){
      |                 ^
      |                 ;
main.c:8:17: error: expected expression before ')' token
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: C

#include <stdio.h>
#define PIC (4)
#define RANK (13)

int main(){
int i,n,pic,rank,stuck[PIC][RANK];
scanf("%d",&n);
for(i=1,i<=n,i++){
   scanf("%d %d",&pic,&rank);
   switch(pic){
      case 'S':pic=0;
      case 'H':pic=1;
      case 'C':pic=2;
      case 'D':pic=3;
   }
}
return 0;
}

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

#include <stdio.h>
#define PIC (4)
#define RANK (13)

int main(){
int i,j,n,pic,rank,stuck[PIC][RANK];
char pic_s
scanf("%d",&n);
for(i=0;i<n;i++){
   scanf("%c %d",&pic_s,&rank);
   switch(pic_s){
      case 'S':pic=0;
      case 'H':pic=1;
      case 'C':pic=2;
      case 'D':pic=3;
   }
   stuck[pic][rank-1]=1;
}
for(i=0;i<PIC;i++){
   for(j=0;j<RANK;j++){
      if(stuck[i][j]!=1){
         switch(i){
            case 0:printf("S %d\n",j+1);
            case 1:printf("H %d\n",j+1);
            case 2:printf("C %d\n",j+1);
            case 3:printf("D %d\n",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:10:19: error: 'pic_s' undeclared (first use in this function); did you mean 'pic'?
   10 |    scanf("%c %d",&pic_s,&rank);
      |                   ^~~~~
      |                   pic
main.c:10:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#define PIC (4)
#define RANK (13)

int main(){
int i,j,n,pic,rank,stuck[PIC][RANK];
char pic_s;
scanf("%d",&n);
stuck=0;
for(i=0;i<n;i++){
   scanf("%c %d",&pic_s,&rank);
   switch(pic_s){
      case 'S':pic=0;
      case 'H':pic=1;
      case 'C':pic=2;
      case 'D':pic=3;
   }
   stuck[pic][rank-1]=1;
}
for(i=0;i<PIC;i++){
   for(j=0;j<RANK;j++){
      if(stuck[i][j]!=1){
         switch(i){
            case 0:printf("S %d\n",j+1);
            case 1:printf("H %d\n",j+1);
            case 2:printf("C %d\n",j+1);
            case 3:printf("D %d\n",j+1);
         }
      }
   }
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:6: error: assignment to expression with array type
    9 | stuck=0;
      |      ^
Language: C

#include <stdio.h>
#define PIC (4)
#define RANK (13)

int main(){
int i,j,n,pic,rank,stuck[PIC][RANK]={}{};
char pic_s;
scanf("%d",&n);
for(i=0;i<n;i++){
   scanf("%c %d",&pic_s,&rank);
   switch(pic_s){
      case 'S':pic=0;
      case 'H':pic=1;
      case 'C':pic=2;
      case 'D':pic=3;
   }
   stuck[pic][rank-1]=1;
}
for(i=0;i<PIC;i++){
   for(j=0;j<RANK;j++){
      if(stuck[i][j]!=1){
         switch(i){
            case 0:printf("S %d\n",j+1);
            case 1:printf("H %d\n",j+1);
            case 2:printf("C %d\n",j+1);
            case 3:printf("D %d\n",j+1);
         }
      }
   }
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:39: error: expected ',' or ';' before '{' token
    6 | int i,j,n,pic,rank,stuck[PIC][RANK]={}{};
      |                                       ^
Language: C

int main(void) {

    int i, j, all, num, check[4][13] = {{0}};
    char s[4] = {'S', 'H', 'C', 'D'}, suit;
    scanf("%d", &all);
    while (scanf("%*c%c %d", &suit, &num) != EOF) {
        switch (suit) {
            case 'S' : check[0][num - 1] = 1; break;
            case 'H' : check[1][num - 1] = 1; break;
            case 'C' : check[2][num - 1] = 1; break;
            case 'D' : check[3][num - 1] = 1; break;
        }
    }
    for (i = 0; i < 4; i++)
        for (j = 0; j < 13; j++)
            if (check[i][j] == 0)
                printf("%c %d\n", s[i], j + 1);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |     scanf("%d", &all);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void) {
main.c:5:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |     scanf("%d", &all);
      |     ^~~~~
main.c:5:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:46: error: 'EOF' undeclared (first use in this function)
    6 |     while (scanf("%*c%c %d", &suit, &num) != EOF) {
      |                                              ^~~
main.c:6:46: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:6:46: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   17 |                 printf("%c %d\n", s[i], j + 1);
      |                 ^~~~~~
main.c:17:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:17:17: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main(void)
{
    int i, j, all, num, check[4][13] = {{0}};
    char s[4] = {'S', 'H', 'C', 'D'}, suit;
    scanf("%d", &all);
    while (scanf("%*c%c %d", &suit, &num) != EOF) {
        switch (suit) {
            case 'S' : check[0][num - 1] = 1; break;
            case 'H' : check[1][num - 1] = 1; break;
            case 'C' : check[2][num - 1] = 1; break;
            case 'D' : check[3][num - 1] = 1; break;
        }
    }
    for (i = 0; i < 4; i++)
        for (j = 0; j < 13; j++)
            if (check[i][j] == 0)
                printf("%c %d\n", s[i], j + 1);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |     scanf("%d", &all);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void)
main.c:5:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |     scanf("%d", &all);
      |     ^~~~~
main.c:5:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:46: error: 'EOF' undeclared (first use in this function)
    6 |     while (scanf("%*c%c %d", &suit, &num) != EOF) {
      |                                              ^~~
main.c:6:46: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:6:46: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   17 |                 printf("%c %d\n", s[i], j + 1);
      |                 ^~~~~~
main.c:17:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:17:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:17:17: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>
int main(void)
{
  int i,j,n,no,trump[4][14];
  char shurui;

  for(i=0;i<4;i++)
    for(j=1;j<=13;j++)trump[i][j]=j;

  scanf("%d",&n);

  for(i=1;i<=n;i++){
    scanf("%c %d",&shurui,&no);
\\    printf("i=%d %c %d\n",i,shurui,no);
    if(shurui=='S')trump[0][no]=0;
    else if(shurui=='H')trump[1][no]=0;
    else if(shurui=='C')trump[2][no]=0;
    else if(shurui=='D')trump[3][no]=0;
  }

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:1: error: stray '\' in program
   14 | \\    printf("i=%d %c %d\n",i,shurui,no);
      | ^
main.c:14:2: error: stray '\' in program
   14 | \\    printf("i=%d %c %d\n",i,shurui,no);
      |  ^