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

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    boolean cards[][] = new boolean[4][13];
    int marknum;
    for (int i = 0; i < n; i++) {
      char mark = sc.nextInt();
      if (mark.equals("S")) {
        marknum = 0;
      }
      else if (mark.equals("H")) {
        marknum = 1;
      }
      else if (mark.equals("C")) {
        marknum = 2;
      }
      else {
        marknum = 3;
      }
      int num = sc.nextInt();
      cards[marknum][num] = true;
    }
    for (int i = 0; i < 4; i++) {
      for (int j = 0; j < 13; j++) {
        if (cards[i][j]) {
          if (i == 0) {
            System.out.println("S "+ (j+1));
          }
          else if (i == 1) {
            System.out.println("H "+ (j+1));
          }
          else if (i == 2) {
            System.out.println("C "+ (j+1));
          }
          else {
            System.out.println("D "+ (j+1));
          }
        }
      }
    }
  }
}

Compiler output:
Main.java:9: error: incompatible types: possible lossy conversion from int to char
      char mark = sc.nextInt();
                            ^
Main.java:10: error: char cannot be dereferenced
      if (mark.equals("S")) {
              ^
Main.java:13: error: char cannot be dereferenced
      else if (mark.equals("H")) {
                   ^
Main.java:16: error: char cannot be dereferenced
      else if (mark.equals("C")) {
                   ^
4 errors
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    boolean cards[][] = new boolean[4][13];
    int marknum;
    for (int i = 0; i < n; i++) {
      char mark = sc.nextChar();
      if (mark.equals(S)) {
        marknum = 0;
      }
      else if (mark.equals(H)) {
        marknum = 1;
      }
      else if (mark.equals(C)) {
        marknum = 2;
      }
      else {
        marknum = 3;
      }
      int num = sc.nextInt();
      cards[marknum][num] = true;
    }
    for (int i = 0; i < 4; i++) {
      for (int j = 0; j < 13; j++) {
        if (cards[i][j]) {
          if (i == 0) {
            System.out.println("S "+ (j+1));
          }
          else if (i == 1) {
            System.out.println("H "+ (j+1));
          }
          else if (i == 2) {
            System.out.println("C "+ (j+1));
          }
          else {
            System.out.println("D "+ (j+1));
          }
        }
      }
    }
  }
}

Compiler output:
Main.java:9: error: cannot find symbol
      char mark = sc.nextChar();
                    ^
  symbol:   method nextChar()
  location: variable sc of type Scanner
Main.java:10: error: cannot find symbol
      if (mark.equals(S)) {
                      ^
  symbol:   variable S
  location: class Main
Main.java:10: error: char cannot be dereferenced
      if (mark.equals(S)) {
              ^
Main.java:13: error: cannot find symbol
      else if (mark.equals(H)) {
                           ^
  symbol:   variable H
  location: class Main
Main.java:13: error: char cannot be dereferenced
      else if (mark.equals(H)) {
                   ^
Main.java:16: error: cannot find symbol
      else if (mark.equals(C)) {
                           ^
  symbol:   variable C
  location: class Main
Main.java:16: error: char cannot be dereferenced
      else if (mark.equals(C)) {
                   ^
7 errors
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    boolean cards[][] = new boolean[4][13];
    int marknum;
    for (int i = 0; i < n; i++) {
      char mark = sc.next();
      if (mark.equals("S")) {
        marknum = 0;
      }
      else if (mark.equals("H")) {
        marknum = 1;
      }
      else if (mark.equals("C")) {
        marknum = 2;
      }
      else {
        marknum = 3;
      }
      int num = sc.nextInt();
      cards[marknum][num] = true;
    }
    for (int i = 0; i < 4; i++) {
      for (int j = 0; j < 13; j++) {
        if (cards[i][j]) {
          if (i == 0) {
            System.out.println("S "+ (j+1));
          }
          else if (i == 1) {
            System.out.println("H "+ (j+1));
          }
          else if (i == 2) {
            System.out.println("C "+ (j+1));
          }
          else {
            System.out.println("D "+ (j+1));
          }
        }
      }
    }
  }
}

Compiler output:
Main.java:9: error: incompatible types: String cannot be converted to char
      char mark = sc.next();
                         ^
Main.java:10: error: char cannot be dereferenced
      if (mark.equals("S")) {
              ^
Main.java:13: error: char cannot be dereferenced
      else if (mark.equals("H")) {
                   ^
Main.java:16: error: char cannot be dereferenced
      else if (mark.equals("C")) {
                   ^
4 errors
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    boolean cards[][] = new boolean[4][13];
    int num, marknum;
    String mark;
    for (int i = 0; i < n; i++) {
      mark = sc.next();
      if (mark.equals("S")) {
        marknum = 0;
      }
      else if (mark.equals("H")) {
        marknum = 1;
      }
      else if (mark.equals("C")) {
        marknum = 2;
      }
      else {
        marknum = 3;
      }
      num = sc.nextInt();
      cards[marknum][num] = true;
    }
    for (i = 0; i < 4; i++) {
      for (int j = 0; j < 13; j++) {
        if (cards[i][j] == true) {
          if (i == 0) {
            System.out.println("S "+ (j+1));
          }
          else if (i == 1) {
            System.out.println("H "+ (j+1));
          }
          else if (i == 2) {
            System.out.println("C "+ (j+1));
          }
          else {
            System.out.println("D "+ (j+1));
          }
        }
      }
    }
  }
}

Compiler output:
Main.java:26: error: cannot find symbol
    for (i = 0; i < 4; i++) {
         ^
  symbol:   variable i
  location: class Main
Main.java:26: error: cannot find symbol
    for (i = 0; i < 4; i++) {
                ^
  symbol:   variable i
  location: class Main
Main.java:26: error: cannot find symbol
    for (i = 0; i < 4; i++) {
                       ^
  symbol:   variable i
  location: class Main
Main.java:28: error: cannot find symbol
        if (cards[i][j] == true) {
                  ^
  symbol:   variable i
  location: class Main
Main.java:29: error: cannot find symbol
          if (i == 0) {
              ^
  symbol:   variable i
  location: class Main
Main.java:32: error: cannot find symbol
          else if (i == 1) {
                   ^
  symbol:   variable i
  location: class Main
Main.java:35: error: cannot find symbol
          else if (i == 2) {
                   ^
  symbol:   variable i
  location: class Main
7 errors
Language: Java

import java.util.Scanner;

public class Mian{
	private static final int MAX_CARDS = 52;
	private static final int NUM_SUIT = 4;
	private static final int MAX_CARD_NUMBER = 13;
	
	private static final int SPADE = 0;
	private static final int HEART = 1;
	private static final int CLUB = 2;
	private static final int DIA = 3;
	
	private static final int EXIST = 1;
	private static final int MISSING = 0;
	
	private static Scanner sc = new Scanner(System.in);
	
	private static int numCards = MAX_CARDS;
	private static  int[][] cards = new int[NUM_SUIT][MAX_CARD_NUMBER + 1];
	
	public static void main(String[] args) {
		initializeCardsState();
		numCards = getNumCards();
		checkNumCards(numCards);
		setAllCardsExist();
		printMissingCards();
	}
	
	private static void printMissingCards(){		
		for(int i = 0; i < NUM_SUIT; i++){
			for(int j = 1; j < MAX_CARD_NUMBER + 1; j++){
				printMissingCard(i, j);
			}
		}
	}
	
	private static void checkNumCards(int n){
		if(!(0 < n && n <= MAX_CARDS )){
			System.out.println("１〜５２までの自然数を入力してください");
			System.exit(0);
		}
	}
	
	private static int getNumCards(){
		int n = 0;
		if(sc.hasNextInt()){
			n = sc.nextInt();
		}
		else{
			System.out.println("自然数以外が入力されています");
			System.exit(0);
		}
		
		return n;
	}
	
	private static void setCardExist(){
		char suit = 'a';
		int n = 0;
		
		if(sc.hasNext()){
			suit = sc.next().charAt(0);
		}
		
		if(sc.hasNextInt()){
			n = sc.nextInt();
		}
		
		switch(suit){
		case 'S':
			cards[SPADE][n] = EXIST;
			break;
		case 'H':
			cards[HEART][n] = EXIST;
			break;
		case 'C':
			cards[CLUB][n] = EXIST;
			break;
		case 'D':
			cards[DIA][n] = EXIST;
			break;
		default:
			System.out.println("S, H, C, D　いずれかを入力してください");
			System.exit(0);
		}
	}
	
	private static void setAllCardsExist(){
		int i = 0;
		while(i < numCards){
			setCardExist();
			i++;
		}
	}
	
	private static void printMissingCard(int i, int j){
		if(cards[i][j] == EXIST){
		}
		else{
			System.out.printf("%s %d\n", getSuit(i), j);
		}
	}
	
	private static void initializeCardsState(){
		for(int i = 0; i < NUM_SUIT; i++){
			for(int j = 0; j < MAX_CARD_NUMBER; j++){
				cards[i][j] = MISSING;
			}
		}
	}
	
	private static char getSuit(int n){
		switch(n){
		case SPADE:
			return 'S';
		case HEART:
			return 'H';
		case CLUB:
			return 'C';
		case DIA: 
			return 'D';
		default:
			return ' ';
		}
	}
}

Compiler output:
Main.java:3: error: class Mian is public, should be declared in a file named Mian.java
public class Mian{
       ^
1 error
Language: Java

public class test {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		boolean card[][]= new boolean[4][13];
		for(int s=0;s<4;s++){
			for(int i=0;i<13;i++)card[s][i]=false;
		}
		for(int i=0;i<n;i++){
			String a=in.next();
			int b = in.nextInt();
			if(a.equals("S")){
				card[0][b-1]=true;
			}else if(a.equals("H")){
				card[1][b-1]=true;
			}else if(a.equals("C")){
				card[2][b-1]=true;
			}else if(a.equals("D")){
				card[3][b-1]=true;
			}
		}
		for(int s=0;s<4;s++){
			for(int i=0;i<13;i++){
				if(card[s][i]==false){
					if(s==0)System.out.print("S ");
					else if(s==1)System.out.print("H ");
					else if(s==2)System.out.print("C ");
					else if(s==3)System.out.print("D ");
					System.out.println(i+1);
				}
			}
		}
	}
}

Compiler output:
Main.java:1: error: class test is public, should be declared in a file named test.java
public class test {
       ^
Main.java:3: error: cannot find symbol
		Scanner in = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class test
Main.java:3: error: cannot find symbol
		Scanner in = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class test
3 errors
Language: Java

import java.util.Scanner;
public class AOJ115 {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);			
		sc.useDelimiter("\\s"); 
		boolean[][] b=new boolean[4][13];
		int x=sc.nextInt();
		
		for(int i=0;i<x;i++) {
			String y=sc.next();
			int z=sc.nextInt();
			if("S".equals(y)) b[0][z]=true;
			else if("H".equals(y)) b[1][z]=true;
			else if("C".equals(y)) b[2][z]=true;
			else if("D".equals(y)) b[3][z]=true;
		}
		
		for(int j=0;j<4;j++){
			for(int k=0;k<13;k++){
				if(b[j][k]!=true){
					switch(j){
					case 0:
						System.out.println("S "+(k+1));
					case 1:
						System.out.println("H "+(k+1));
					case 2:
						System.out.println("C "+(k+1));
					case 3:
						System.out.println("D "+(k+1));
					}
					
				}
			}
		}
		
		sc.close();
		System.exit(0);
	}
}

Compiler output:
Main.java:2: error: class AOJ115 is public, should be declared in a file named AOJ115.java
public class AOJ115 {
       ^
1 error
Language: Java

import java.util.Scanner;
public class Ｍａｉｎ {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		boolean[][] b=new boolean[4][13];
		int x=sc.nextInt();
		for(int i=0;i<x;i++) {
			String y=sc.next();
			int z=sc.nextInt();
			if("S".equals(y)) b[0][z-1]=true;
			else if("H".equals(y)) b[1][z-1]=true;
			else if("C".equals(y)) b[2][z-1]=true;
			else if("D".equals(y)) b[3][z-1]=true;
		}
		
		for(int j=0;j<4;j++){
			for(int k=0;k<13;k++){
				if(b[j][k]==false){
					if(j==0)System.out.println("S "+(k+1));
					else if(j==1)System.out.println("H "+(k+1));
					else if(j==2)System.out.println("C "+(k+1));
					else if(j==3)System.out.println("D "+(k+1));
				}
			}
		}
		sc.close();
		System.exit(0);
	}
}

Compiler output:
Main.java:2: error: class ???? is public, should be declared in a file named ????.java
public class ???? {
       ^
1 error
Language: Java

import java.util.*;
public class AOJ10015 {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int i,j,rank;
		String m;
		String[] mark = {"S","H","C","D"};
		int[][]cards = new int[4][13];
		int n = sc.nextInt();
		for(i = 0; i < n; i++) {
			m = sc.next();
			rank = sc.nextInt();
			for(j = 0; j < 4; j++) {
				if(m.equals(mark[j])) {
					cards[j][rank -1] = 1;
					break;
				}
			}
		}
		for(i = 0; i < 4; i++) {
			for(j = 0; j < 13; j++) {
				if(cards[i][j] == 0) {
					System.out.printf("%s %d\n",mark[i],j + 1);
				}
			}
		}	
	}
}

Compiler output:
Main.java:2: error: class AOJ10015 is public, should be declared in a file named AOJ10015.java
public class AOJ10015 {
       ^
1 error
Language: C

#include<stdio.h>

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

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

#include <iostream>
using namespace std;
 
int main()
{
  bool cards[4][13];
  for (int i=0; i<4; i++)
  {
    for (int j=0; j<13; j++)
    {
      cards[i][j] = false;
    }
  }
 
  int n;
  cin >> n;
  for (int trmp=0; trmp<n; trmp++)
  {
    char suit;
    cin >> suit;
    int suit_i = suit == 'S' ? 0 :
                 suit == 'H' ? 1 :
                 suit == 'C' ? 2 :
                        /*D*/  3 ;
    int num;
    cin >> num;
    cards[suit_i][num-1] = true;
  }
 
  for (int i=0; i<4; i++)
  {
    char suit = i == 0 ? 'S' :
                i == 1 ? 'H' :
                i == 2 ? 'C' :
                   /*3*/ 'D' ;
    for (int j=0; j<13; j++)
    {
      if (! cards[i][j] )
      {
        cout << suit << ' ' << j+1 << endl;
      }
    }
  }
}

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

#include<stdio.h>

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

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

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

Compiler output:
main.c: In function 'main':
main.c:28:26: error: expected ';' before 'sum'
   28 |             trump[i][j]=c sum;
      |                          ^~~~
      |                          ;
Language: C

i,f[2000];char*p="SHCD"-1;main(r){for(;~scanf("%c%d",f,&r);f[*f*14+r]=1);for(;(i%=13)||*++p;f[++i+*p*14]||printf("%c %d\n",*p,i));f*=i;}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | i,f[2000];char*p="SHCD"-1;main(r){for(;~scanf("%c%d",f,&r);f[*f*14+r]=1);for(;(i%=13)||*++p;f[++i+*p*14]||printf("%c %d\n",*p,i));f*=i;}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'i' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'f' [-Wimplicit-int]
    1 | i,f[2000];char*p="SHCD"-1;main(r){for(;~scanf("%c%d",f,&r);f[*f*14+r]=1);for(;(i%=13)||*++p;f[++i+*p*14]||printf("%c %d\n",*p,i));f*=i;}
      |   ^
main.c:1:27: error: return type defaults to 'int' [-Wimplicit-int]
    1 | i,f[2000];char*p="SHCD"-1;main(r){for(;~scanf("%c%d",f,&r);f[*f*14+r]=1);for(;(i%=13)||*++p;f[++i+*p*14]||printf("%c %d\n",*p,i));f*=i;}
      |                           ^~~~
main.c: In function 'main':
main.c:1:27: error: type of 'r' defaults to 'int' [-Wimplicit-int]
main.c:1:41: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | i,f[2000];char*p="SHCD"-1;main(r){for(;~scanf("%c%d",f,&r);f[*f*14+r]=1);for(;(i%=13)||*++p;f[++i+*p*14]||printf("%c %d\n",*p,i));f*=i;}
      |                                         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | i,f[2000];char*p="SHCD"-1;main(r){for(;~scanf("%c%d",f,&r);f[*f*14+r]=1);for(;(i%=13)||*++p;f[++i+*p*14]||printf("%c %d\n",*p,i));f*=i;}
main.c:1:41: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | i,f[2000];char*p="SHCD"-1;main(r){for(;~scanf("%c%d",f,&r);f[*f*14+r]=1);for(;(i%=13)||*++p;f[++i+*p*14]||printf("%c %d\n",*p,i));f*=i;}
      |                                         ^~~~~
main.c:1:41: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:107: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | i,f[2000];char*p="SHCD"-1;main(r){for(;~scanf("%c%d",f,&r);f[*f*14+r]=1);for(;(i%=13)||*++p;f[++i+*p*14]||printf("%c %d\n",*p,i));f*=i;}
      |                                                                                                           ^~~~~~
main.c:1:107: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:107: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:107: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:132: error: assignment to expression with array type
    1 | i,f[2000];char*p="SHCD"-1;main(r){for(;~scanf("%c%d",f,&r);f[*f*14+r]=1);for(;(i%=13)||*++p;f[++i+*p*14]||printf("%c %d\n",*p,i));f*=i;}
      |                                                                                                                                    ^~
Language: C

#include<stdio.h>
using namespace std;
int main(void){
    int a[5][15]={0},i,j,n;
    scanf("%d",&n);
    for(i=0;i<n;i++){
        char w;
        int x;
        scanf(" %c %d",&w,&x);
        int t;
        if(w=='S')t=0;
        if(w=='H')t=1;
        if(w=='C')t=2;
        if(w=='D')t=3;
        a[t][x]=1;
    }
    for(i=0;i<4;i++){
        for(j=1;j<14;j++){
            if(a[i][j]==0){
                char tr[10]="SHCD";
                printf("%c %d\n",tr[i],j);
            }
       }
    }
return 0;
}

Compiler output:
main.c:2:1: error: unknown type name 'using'
    2 | using namespace std;
      | ^~~~~
main.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    2 | using namespace std;
      |                 ^~~
Language: C

#include<stdio.h>
int main()
{
	int a, b, c, d, e;
	while(1)
	{
		scanf("%d %d",&a, &b);
		if (a==0&&b==0) break;
		c=1;
		e=1;
		for (d=0;d<a;d++)
		{
		if (d%2==1) while (e<=b)
		{
			if (e%2==0) printf("#");
			else printf(".");
			e++;
		}
		e=1;
		if (d%2==0) while(c<=b)
		{
			if (c%2==0) printf(".");
			else printf("#");
			c++;
		}
		c=1;
		printf("\n");
		}
		printf("\n");
	}
		return 0;
}

#include<stdio.h>
int main()
{
	int n[54], s[16]={}, h[16]={}, c[16]={}, d[16]={}, q, w, j, t, k, f;
	char m[54], a[131], b[131], e[131], r[131], g;
	j=0; t=0;
	w=0;
	scanf("%d",&q);
	while (w<q)
	{
		scanf("%c",&g);
		scanf("%c %d",&m[j], &n[t]);
		if (m[j]=='S')  s[n[t]]=1;
		if (m[j]=='H')  h[n[t]]=1;
		if (m[j]=='C')  c[n[t]]=1;
		if (m[j]=='D')  d[n[t]]=1;
		w++;
		j++; t++;
	}
	for (k=1;k<=13;k++)
	{
		if (s[k]==0) printf("S %d\n",k);
	}
	for (k=1;k<=13;k++)
	{
		if (h[k]==0) printf("H %d\n",k);
	}
	for (k=1;k<=13;k++)
	{
		if (c[k]==0) printf("C %d\n",k);
	}
	for (k=1;k<=13;k++)
	{
		if (d[k]==0) printf("D %d\n",k);
	}
	return 0;
}

Compiler output:
main.c:35:5: error: redefinition of 'main'
   35 | int main()
      |     ^~~~
main.c:2:5: note: previous definition of 'main' with type 'int()'
    2 | int main()
      |     ^~~~
Language: C

#include <stdio.h>
void delete(int *ptr,int *last){
 while(++ptr){
 
 }
}

int main(){
int s[13]={1,2,3,4,5,6,7,8,9,10,11,12,13};
int h[13]={1,2,3,4,5,6,7,8,9,10,11,12,13};
int c[13]={1,2,3,4,5,6,7,8,9,10,11,12,13};
int d[13]={1,2,3,4,5,6,7,8,9,10,11,12,13};
int n,i,rank;
char suit;
scanf("%d",&n);
for(i=1;i<=n;i++){
 scanf("%c %d",&suit,&rank);
 if(suit=='S'){
  s[rank]=0;
}else if(suit=='H'){
  h[rank]=0;
}else if(suit=='C'){
  c[rank]=0;
}else if(suit=='D'){
  d[rank]=0;
} 
}

for(i=0;i<13;i++){
if(s[i]!=0){)
printf("%c %d",suit,s[i]);
}
}
for(i=0;i<13;i++){
if(h[i]!=0){)
printf("%c %d",suit,h[i]);
}
}
for(i=0;i<13;i++){
if(c[i]!=0){)
printf("%c %d",suit,c[i]);
}
}
for(i=0;i<13;i++){
if(d[i]!=0){)
printf("%c %d",suit,d[i]);
}
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:30:13: error: expected statement before ')' token
   30 | if(s[i]!=0){)
      |             ^
main.c:35:13: error: expected statement before ')' token
   35 | if(h[i]!=0){)
      |             ^
main.c:40:13: error: expected statement before ')' token
   40 | if(c[i]!=0){)
      |             ^
main.c:45:13: error: expected statement before ')' token
   45 | if(d[i]!=0){)
      |             ^
Language: C

#include <stdio.h>

int main(void)
{

  int l;
  int c[4][13] = {0};
  char m;
  int n;
  scanf("%d", &l);

  int i, j;
  for(i=0; i < l;i++){
    scanf("%s %d",&m, &n);
    if(m == 'S')
	  c[0][n-1] = 1;
    else if(m == 'H')
	  c[1][n-1] = 1;
    else if(m == 'C')
	  c[2][n-1] = 1;
    else
	  c[3][n-1] = 1;
  }

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

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

include <stdio.h>

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

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

#include <stdio.h>

int main(void){
	bool card[4][13];
	int i,j;
	char type[5]="SHCD";
	int n;
	char c;
	int lank;
	for (i=0;i<4;i++){
		for (j=0;j<13;j++){
			card[i][j]=false;
		}
	}
	scanf("%d",&n);
	for (i=0;i<n;i++){
		scanf("%c %d",&c,&lank);
		swicth (c){
			case 'S':
				card[0][lank-1]=true;
				break;
			case 'H':
				card[1][lank-1]=true;
				break;
			case 'C':
				card[2][lank-1]=true;
				break;
			case 'D':
				card[3][lank-1]=true;
				break;
		}
	}
	for (i=0;i<4;i++){
		for (j=0;j<13;j++){
			if (!card[i][j]){
				printf("%c %d",type[i],j+1);
			}
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: unknown type name 'bool'
    4 |         bool card[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:12:36: error: 'false' undeclared (first use in this function)
   12 |                         card[i][j]=false;
      |                                    ^~~~~
main.c:12:36: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:12:36: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:17: error: implicit declaration of function 'swicth' [-Wimplicit-function-declaration]
   18 |                 swicth (c){
      |                 ^~~~~~
main.c:18:27: error: expected ';' before '{' token
   18 |                 swicth (c){
      |                           ^
      |                           ;
Language: C

#include <stdio.h>

int main(void){
	int card[4][13];
	int i,j;
	char type[5]="SHCD";
	int n;
	char c;
	int lank;
	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,&lank);
		swicth (c){
			case 'S':
				card[0][lank-1]=1;
				break;
			case 'H':
				card[1][lank-1]=1;
				break;
			case 'C':
				card[2][lank-1]=1;
				break;
			case 'D':
				card[3][lank-1]=1;
				break;
		}
	}
	for (i=0;i<4;i++){
		for (j=0;j<13;j++){
			if (!card[i][j]){
				printf("%c %d",type[i],j+1);
			}
		}
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:17: error: implicit declaration of function 'swicth' [-Wimplicit-function-declaration]
   18 |                 swicth (c){
      |                 ^~~~~~
main.c:18:27: error: expected ';' before '{' token
   18 |                 swicth (c){
      |                           ^
      |                           ;
Language: C

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

int main( void )
{

        int i = 0;
        int n = 0;
        int t=0;

        char te[52];
        int  tn[52];

        char sc[13];
        char hc[13];
        char cc[13];
        char dc[13];

        int si[13];
        int hi[13];
        int ci[13];
        int di[13];

        for(i = 0; i < 13; i++)
        {
                sc[i]='S';
                hc[i]='H';
                cc[i]='C';
                dc[i]='D';

                si[i]=i+1;
                hi[i]=i+1;
                ci[i]=i+1;
                di[i]=i+1;
        }

        scanf("%d",&n);
        for(i = 0; i < n; i++)
        {
                scanf("\n");
                scanf("%c %d", &te[i], &tn[i]);
        }

        for(t = 0; t < n; t++)
        {
                for(i = 0; i < 13; i++)
                {
                        if(sc[i] == te[t] && si[i] == tn[t])
                        {
                                sc[i] = 'a';
                                si[i] = 100;
                        }
                        else if(hc[i] == te[t] && hi[i] == tn[t])
                        {
                                hc[i] = 'a';
                                hi[i] = 100;
                        }
                        else if(cc[i] == te[t] && ci[i] == tn[t])
                        {
                                cc[i] = 'a';
                                ci[i] = 100;
                        }
                        else if(dc[i] == te[t] && di[i] == tn[t])
                        {
                                dc[i] = 'a';
                                di[i] = 100;
                        }
                }
        }

        for(i=0 ;i<13 ;i++)
        {
                        if(sc[i] != 'a' && si[i] != 100)
                        {
                                printf("%c %d\n", sc[i], si[i]);
                        }
        }
        for(i=0 ;i<13 ;i++)
        {
                        if(hc[i] != 'a' && hi[i] != 100)
                        {
                                printf("%c %d\n", hc[i], hi[i]);
                        }
        }
        for(i=0 ;i<13 ;i++)
        {
                        if(cc[i] != 'a' && ci[i] != 100)
                        {
                                printf("%c %d\n", cc[i], ci[i]);
                        }
        }
        for(i=0 ;i<13 ;i++)
        {
                        if(dc[i] != 'a' && di[i] != 100)
                        {
                                printf("%c %d\n", dc[i], di[i]);
                        }

        }
        return 0;
}
~
~
~
~
~
~
~
~
~
~
~

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

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

int main(){
	int a;//??°
	int b[4][13];
	int i;
	int i2;
	char s;//??????
	int c;//??????
	scanf("%d",&a);
	for(i=0;i<a;i++){
		scanf("%s",&s)
	    scanf("%d",&c);
		if(s=='S')b[0][c]=1:
		else if(s=='H')b[1][c]=1;
		else if(s=='C')b[2][c]=1;
		else if(s=='D')b[3][c]=1;
	}
	for(i=0;i<4;i++){
		for(i2=1;i2<=13;i2++){
			if(b[i][i2]!=1&&i=0)printf("S %d\n",i2);
			else if(b[i][i2]!=1&&i=0)printf("H %d\n",i2);	
			else if(b[i][i2]!=1&&i=0)printf("C %d\n",i2);	
			else if(b[i][i2]!=1&&i=0)printf("D %d\n",i2);	
		}
		
	}
	

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:31: error: expected ';' before 'scanf'
   13 |                 scanf("%s",&s)
      |                               ^
      |                               ;
   14 |             scanf("%d",&c);
      |             ~~~~~              
main.c:15:36: error: expected ';' before ':' token
   15 |                 if(s=='S')b[0][c]=1:
      |                                    ^
      |                                    ;
main.c:22:42: error: lvalue required as left operand of assignment
   22 |                         if(b[i][i2]!=1&&i=0)printf("S %d\n",i2);
      |                                          ^
main.c:23:47: error: lvalue required as left operand of assignment
   23 |                         else if(b[i][i2]!=1&&i=0)printf("H %d\n",i2);
      |                                               ^
main.c:24:47: error: lvalue required as left operand of assignment
   24 |                         else if(b[i][i2]!=1&&i=0)printf("C %d\n",i2);
      |                                               ^
main.c:25:47: error: lvalue required as left operand of assignment
   25 |                         else if(b[i][i2]!=1&&i=0)printf("D %d\n",i2);
      |                                               ^
Language: C

include <stdio.h>

int main(void){
  int i,j,n,x,cards[4][13];
  char ch,suit[4]="SHDC";
  scanf("%d",&n);

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

  for(i=0;i<n;i++){
    scanf("%*c%c %d",&ch,&x);
    for(j=0;j<4;j++){
      if(suit[j]==ch)cards[j][x-1]=1;
    }
  }

  for(i=0;i<4;i++){
    for(j=0;j<13;j++){
      if(cards[i][j]==0){
        printf("%c %d\n",suit[i],j+1);
      }
    }
  }
  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 swap(a, b) ((a != b) && (a += b, b = a - b, a -= b))

int p2i(char pic)
{
  switch (pic) {
    case 'S':
      return 0;
    case 'H':
      return 1;
    case 'C':
      return 2;
    case 'D':
      return 3;
  }
}

char i2p(int i)
{
  switch (i) {
    case 0:
      return 'S';
    case 1:
      return 'H';
    case 2:
      return 'C';
    case 3:
      return 'D';
    }
}

int main(void)
{
  int card[4][13] = {0};
  int i, j, n, rank;
  char pic;

  scanf("%d", &n);

  for (i = 0; i < n; i++) {
    scanf("%c %d", &pic, &rank);
    card[p2i(pic)][rank-1] = 1;
  }

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:48:30: error: subscripted value is neither array nor pointer nor vector
   48 |         printf("%c %d\n", i2p[i], j);
      |                              ^
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define CARD_N 52

struct Card {
    char type;
    int num;
    char flag;
}

void init_table(struct Card *card_tbl_p) {
    char types[] = {'S', 'H', 'C', 'D'};
    int i,j;
    
    for(i=0; i < 4; i++) {
        for(j=0; j < 13; j++) {
            card_tbl_p->type = types[i];
            card_tbl_p->num = j + 1;
            card_tbl_p->flag = 1;
            card_tbl_p++;
        }
    }
}

void mark (struct Card *card_tbl_p, char t_type, char t_num) {
     int i;
     for (i=0; i < CARD_N; i++) {
         if ( card_tbl_p->type == t_type &&
              card_tbl_p->num == t_num ) {
              
              card_tbl_p->flag = 0;
              break;
          }
          card_tbl_p++;
      }
}

int main (void) {
    int i;
    int inp_n;
    char *type;
    int num;
    char buf[10];
    
    struct Card card_tbl[CARD_N];
    struct Card *card_tbl_p = card_tbl;
    
    init_table(card_tbl_p);
    
    scanf("%d", &inp_n);
    for(i=0; i<inp_n; i++) {
        fgets(buf, 10, stdin);
        type = strtok(buf, " ");
        num = strtol(strtok(NULL, " "), NULL, 10);
        
        mark(card_tbl_p, *type, num);
    }
    
    for(i=0; i<CARD_N; i++) {
        if(card_tbl_p->flag) {
            printf("%s %d\n", card_tbl_p->type, card_tbl_p->num);
        }
        card_tbl_p++;
    }
    return 0;
}

Compiler output:
main.c:12:1: error: expected ';', identifier or '(' before 'void'
   12 | void init_table(struct Card *card_tbl_p) {
      | ^~~~
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define CARD_N 52

struct Card {
    char type;
    int num;
    char flag;
}

void init_table(struct Card *card_tbl_p) {
    char types[] = {'S', 'H', 'C', 'D'};
    int i,j;

    for(i=0; i < 4; i++) {
        for(j=0; j < 13; j++) {
            card_tbl_p->type = types[i];
            card_tbl_p->num = j + 1;
            card_tbl_p->flag = 1;
            card_tbl_p++;
        }
    }
}

void mark (struct Card *card_tbl_p, char t_type, char t_num) {
     int i;
     for (i=0; i < CARD_N; i++) {
         if ( card_tbl_p->type == t_type &&
              card_tbl_p->num == t_num ) {

              card_tbl_p->flag = 0;
              break;
          }
          card_tbl_p++;
      }
}

int main (void) {
    int i;
    int inp_n;
    char *type;
    int num;
    char buf[10];

    struct Card card_tbl[CARD_N];
    struct Card *card_tbl_p = card_tbl;

    init_table(card_tbl_p);

    scanf("%d", &inp_n);
    for(i=0; i < inp_n; i++) {
        fgets(buf, 10, stdin);
        type = strtok(buf, " ");
        num = strtol(strtok(NULL, " "), NULL, 10);

        mark(card_tbl_p, *type, num);
    }

    for(i=0; i<CARD_N; i++) {
        if(card_tbl_p->flag) {
            printf("%s %d\n", card_tbl_p->type, card_tbl_p->num);
        }
        card_tbl_p++;
    }
    return 0;
}

Compiler output:
main.c:12:1: error: expected ';', identifier or '(' before 'void'
   12 | void init_table(struct Card *card_tbl_p) {
      | ^~~~
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define CARD_N 52

struct Card {
    char type;
    int num;
    char flag;
}

void init_table(struct Card *card_tbl_p) {
    char types[] = {'S', 'H', 'C', 'D'};
    int i,j;

    for(i=0; i < 4; i++) {
        for(j=0; j < 13; j++) {
            card_tbl_p->type = types[i];
            card_tbl_p->num = j + 1;
            card_tbl_p->flag = 1;
            card_tbl_p++;
        }
    }
}

void mark (struct Card *card_tbl_p, char t_type, char t_num) {
     int i;
     for (i=0; i < CARD_N; i++) {
         if ( card_tbl_p->type == t_type &&
              card_tbl_p->num == t_num ) {

              card_tbl_p->flag = 0;
              break;
          }
          card_tbl_p++;
      }
}

int main (void) {
    int i;
    int inp_n;
    char *type;
    int num;
    char buf[10];

    struct Card card_tbl[CARD_N];
    struct Card *card_tbl_p = card_tbl;

    //init_table(card_tbl_p);
    char types[] = {'S', 'H', 'C', 'D'};
    int i,j;

    for(i=0; i < 4; i++) {
        for(j=0; j < 13; j++) {
            card_tbl_p->type = types[i];
            card_tbl_p->num = j + 1;
            card_tbl_p->flag = 1;
            card_tbl_p++;
        }
    }

    scanf("%d", &inp_n);
    for(i=0; i < inp_n; i++) {
        fgets(buf, 10, stdin);
        type = strtok(buf, " ");
        num = strtol(strtok(NULL, " "), NULL, 10);

        mark(card_tbl_p, *type, num);
    }

    for(i=0; i<CARD_N; i++) {
        if(card_tbl_p->flag) {
            printf("%s %d\n", card_tbl_p->type, card_tbl_p->num);
        }
        card_tbl_p++;
    }
    return 0;
}

Compiler output:
main.c:12:1: error: expected ';', identifier or '(' before 'void'
   12 | void init_table(struct Card *card_tbl_p) {
      | ^~~~
main.c: In function 'main':
main.c:51:9: error: redeclaration of 'i' with no linkage
   51 |     int i,j;
      |         ^
main.c:40:9: note: previous declaration of 'i' with type 'int'
   40 |     int i;
      |         ^
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define CARD_N 52

struct Card {
    char type;
    int num;
    char flag;
}

void mark (struct Card *card_tbl_p, char t_type, char t_num) {
     int i;
     for (i=0; i < CARD_N; i++) {
         if ( card_tbl_p->type == t_type &&
              card_tbl_p->num == t_num ) {

              card_tbl_p->flag = 0;
              break;
          }
          card_tbl_p++;
      }
}

int main (void) {
    int i, j
    int inp_n;
    char *type;
    int num;
    char buf[10];

    struct Card card_tbl[CARD_N];
    struct Card *card_tbl_p = card_tbl;

    //init_table(card_tbl_p);
    char types[] = {'S', 'H', 'C', 'D'};

    for(i=0; i < 4; i++) {
        for(j=0; j < 13; j++) {
            card_tbl_p->type = types[i];
            card_tbl_p->num = j + 1;
            card_tbl_p->flag = 1;
            card_tbl_p++;
        }
    }

    scanf("%d", &inp_n);
    for(i=0; i < inp_n; i++) {
        fgets(buf, 10, stdin);
        type = strtok(buf, " ");
        num = strtol(strtok(NULL, " "), NULL, 10);

        mark(card_tbl_p, *type, num);
    }

    for(i=0; i<CARD_N; i++) {
        if(card_tbl_p->flag) {
            printf("%s %d\n", card_tbl_p->type, card_tbl_p->num);
        }
        card_tbl_p++;
    }
    return 0;
}

Compiler output:
main.c:12:1: error: expected ';', identifier or '(' before 'void'
   12 | void mark (struct Card *card_tbl_p, char t_type, char t_num) {
      | ^~~~
main.c: In function 'main':
main.c:27:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
   27 |     int inp_n;
      |     ^~~
main.c:39:13: error: 'j' undeclared (first use in this function)
   39 |         for(j=0; j < 13; j++) {
      |             ^
main.c:39:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:47:18: error: 'inp_n' undeclared (first use in this function)
   47 |     scanf("%d", &inp_n);
      |                  ^~~~~
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define CARD_N 52

typedef struct {
    char symbol;
    int rank;
    char invalid_f;
} Card;

void init_card_table(Card *p);
void mark(Card *p, char t_symbol, int t_rank);

int main (void) {
    int i, j; // loop counter
    char buf[10]; // input buffer
    int existing_card_n;
    Card card_tbl[CARD_N];
    char t_symbol;
    int t_rank;
    
    init_card_table(card_tbl);
    
    scanf("%d", &existing_card_n);
    
    for (i = 0; i < existing_card_n; i++) {
        fgets(buf, 10, stdin);
        t_symbol = *(strtok(buf, " "));
        t_rank = strtol(strtok(NULL, " "), NULL, 10);
        
        mark(card_tbl, t_symbol, t_rank);
    }
    
    output(card_tbl);
}

void init_card_table(Card *p) {
    int i;
    const char *syml = "SHCD";
    for (i = 0; i < 4; i++) {
        for (j = 0; j < 13; j++) {
            *(p+j) = {
                .symbol = *(syml+i);
                .num = j + 1;
                .invalid_f = 1;
            };
        }
    }
}

void mark(Card *p, char t_symbol, int t_rank) {
    int i;
    for (i = 0; i < CARD_N; i++) {
        if(t_symbol == p->symbol &&
           t_rank == p->rank) {
            
            p->invalid_f = 0;
            break;
        }
        p++;
    }
}

void output(Card *p) {
    int i;
    for (i = 0; i < CARD_N; i++) {
        if(p->invalid_f) {
            printf("%c %d", p->symbol, p->rank);
        }
        p++;
    }
}

Compiler output:
main.c: In function 'main':
main.c:35:5: error: implicit declaration of function 'output' [-Wimplicit-function-declaration]
   35 |     output(card_tbl);
      |     ^~~~~~
main.c: In function 'init_card_table':
main.c:42:14: error: 'j' undeclared (first use in this function)
   42 |         for (j = 0; j < 13; j++) {
      |              ^
main.c:42:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:43:22: error: expected expression before '{' token
   43 |             *(p+j) = {
      |                      ^
main.c: At top level:
main.c:65:6: warning: conflicting types for 'output'; have 'void(Card *)'
   65 | void output(Card *p) {
      |      ^~~~~~
main.c:35:5: note: previous implicit declaration of 'output' with type 'void(Card *)'
   35 |     output(card_tbl);
      |     ^~~~~~
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define CARD_N 52

typedef struct {
    char symbol;
    int rank;
    char invalid_f;
} Card;

void init_card_table(Card *p);
void mark(Card *p, char t_symbol, int t_rank);

int main (void) {
    int i, j; // loop counter
    char buf[10]; // input buffer
    int existing_card_n;
    Card card_tbl[CARD_N];
    char t_symbol;
    int t_rank;
    
    init_card_table(card_tbl);
    
    scanf("%d", &existing_card_n);
    
    for (i = 0; i < existing_card_n; i++) {
        fgets(buf, 10, stdin);
        t_symbol = *(strtok(buf, " "));
        t_rank = strtol(strtok(NULL, " "), NULL, 10);
        
        mark(card_tbl, t_symbol, t_rank);
    }
    
    output(card_tbl);
}

void init_card_table(Card *p) {
    int i, j;
    const char *syml = "SHCD";
    for (i = 0; i < 4; i++) {
        for (j = 0; j < 13; j++) {
            *(p+j) = {
                .symbol = *(syml+i);
                .rank = j + 1;
                .invalid_f = 1;
            };
        }
    }
}

void mark(Card *p, char t_symbol, int t_rank) {
    int i;
    for (i = 0; i < CARD_N; i++) {
        if(t_symbol == p->symbol &&
           t_rank == p->rank) {
            
            p->invalid_f = 0;
            break;
        }
        p++;
    }
}

void output(Card *p) {
    int i;
    for (i = 0; i < CARD_N; i++) {
        if(p->invalid_f) {
            printf("%c %d", p->symbol, p->rank);
        }
        p++;
    }
}

Compiler output:
main.c: In function 'main':
main.c:35:5: error: implicit declaration of function 'output' [-Wimplicit-function-declaration]
   35 |     output(card_tbl);
      |     ^~~~~~
main.c: In function 'init_card_table':
main.c:43:22: error: expected expression before '{' token
   43 |             *(p+j) = {
      |                      ^
main.c: At top level:
main.c:65:6: warning: conflicting types for 'output'; have 'void(Card *)'
   65 | void output(Card *p) {
      |      ^~~~~~
main.c:35:5: note: previous implicit declaration of 'output' with type 'void(Card *)'
   35 |     output(card_tbl);
      |     ^~~~~~
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define CARD_N 52

typedef struct {
    char symbol;
    int rank;
    char invalid_f;
} Card;

void init_card_table(Card *p);
void mark(Card *p, char t_symbol, int t_rank);

int main (void) {
    int i, j; // loop counter
    char buf[10]; // input buffer
    int existing_card_n;
    Card card_tbl[CARD_N];
    char t_symbol;
    int t_rank;
    
    init_card_table(card_tbl);
    
    scanf("%d", &existing_card_n);
    
    for (i = 0; i < existing_card_n; i++) {
        fgets(buf, 10, stdin);
        t_symbol = *(strtok(buf, " "));
        t_rank = strtol(strtok(NULL, " "), NULL, 10);
        
        mark(card_tbl, t_symbol, t_rank);
    }
    
    output(card_tbl);
}

void init_card_table(Card *p) {
    int i, j;
    const char *syml = "SHCD";
    for (i = 0; i < 4; i++) {
        for (j = 0; j < 13; j++) {
            *(p+j)->symbol = *(syml+i);
            *(p+j)->rank = j + 1;
            *(p+j)->invalid_f = 1;
            };
        }
    }
}

void mark(Card *p, char t_symbol, int t_rank) {
    int i;
    for (i = 0; i < CARD_N; i++) {
        if(t_symbol == p->symbol &&
           t_rank == p->rank) {
            
            p->invalid_f = 0;
            break;
        }
        p++;
    }
}

void output(Card *p) {
    int i;
    for (i = 0; i < CARD_N; i++) {
        if(p->invalid_f) {
            printf("%c %d", p->symbol, p->rank);
        }
        p++;
    }
}

Compiler output:
main.c: In function 'main':
main.c:35:5: error: implicit declaration of function 'output' [-Wimplicit-function-declaration]
   35 |     output(card_tbl);
      |     ^~~~~~
main.c: In function 'init_card_table':
main.c:43:13: error: invalid type argument of unary '*' (have 'int')
   43 |             *(p+j)->symbol = *(syml+i);
      |             ^~~~~~~~~~~~~~
main.c:44:13: error: invalid type argument of unary '*' (have 'int')
   44 |             *(p+j)->rank = j + 1;
      |             ^~~~~~~~~~~~
main.c:45:13: error: invalid type argument of unary '*' (have 'int')
   45 |             *(p+j)->invalid_f = 1;
      |             ^~~~~~~~~~~~~~~~~
main.c: At top level:
main.c:49:1: error: expected identifier or '(' before '}' token
   49 | }
      | ^
main.c:64:6: warning: conflicting types for 'output'; have 'void(Card *)'
   64 | void output(Card *p) {
      |      ^~~~~~
main.c:35:5: note: previous implicit declaration of 'output' with type 'void(Card *)'
   35 |     output(card_tbl);
      |     ^~~~~~