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

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

int main(){
int n, i, rank, j ;
bool card[4][13] ;
char mark;
 scanf("%d", &n);
for (i=0; i< n; i++){
        scanf (" %c %d", &mark, &rank);
        j =  (mark == 'S')*1+(mark == 'H')*2+(mark =='C')*3+(mark =='D')*4 ;
        card[j-1][rank-1]=1;
}

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

Compiler output:
main.c: In function 'main':
main.c:6:1: error: unknown type name 'bool'
    6 | bool card[4][13] ;
      | ^~~~
main.c:3:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    2 | #include <string.h>
  +++ |+#include <stdbool.h>
    3 |
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:1: error: unknown type name 'bool'
    5 | bool card[4][13] ;
      | ^~~~
main.c:3:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    2 | #include <string.h>
  +++ |+#include <stdbool.h>
    3 | int main(){
Language: C

#include<iostream>

#define REP(i,a,b) for(i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)
using namespace std;


int main () {
  int n, num;
  int cards[4][13] = {{0}};
  char mark;
  int i,j;
  cin >> n;

  // S:0, H:1, C:2, D:3
  rep(i,n) {
    cin >> mark >> num;
    switch (mark)
      {
      case 'S':
	cards[0][num-1] = 1;
	break;
      case 'H':
	cards[1][num-1] = 1;
	break;
      case 'C':
	cards[2][num-1] = 1;
	break;      
      case 'D':
	cards[3][num-1] = 1;
	break;
      default:
	break;
      }
  }

  rep(i,4) {
    rep(j,13) {
      if (cards[i][j] == 0) {
	switch (i)
	  {
	  case 0:
	    cout << "S " << j+1;
	    break;
	  case 1:
	    cout << "H " << j+1;
	    break;
	  case 2:
	    cout << "C " << j+1;
	    break;
	  case 3:
	    cout << "D " << j+1;
	    break;
	  default:
	    break;
	  }
	cout << endl;
      }
    }
  }
  return 0;
}

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

#include <stdio.h>

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

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

#include <stdio.h>

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

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

import java.util.Scanner;
class exe16
{
    public static void main(String args[])
    {
	int n,c;
	String b;
	Scanner scan=new Scanner(System.in);
	n=scan.nextInt();
	boolean a[][]=new boolean[4][13];
	for(int i=0;i<n;i++)
	    {
		b=scan.next();
		c=scan.nextInt();
		if(b.equals("S"))a[0][c-1]=true;
		else if(b.equals("H"))a[1][c-1]=true;
		else if(b.equals("C"))a[2][c-1]=true;
		else if(b.equals("D"))a[3][c-1]=true;
	    }
	for(int i=0;i<4;i++)
	    {
		for(int j=0;j<13;j++)
		    {
			if(a[i][j]==true && i==0)
			    {
				System.out.println("S "+(j+1));
			    }
			else if(a[i][j]==true && i==1)
			    {
				System.out.println("H "+(j+1));
			    }
			else if(a[i][j]==true && i==2)
			    {
				System.out.println("C "+(j+1));
			    }
			else if(a[i][j]==true && i==3)
			    {
				System.out.println("D "+(j+1));
			    }
		    }
	    }
    }
}

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

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

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

import java.util.Scanner;
class exe16
{
    public static void main(String args[])
    {
	int n,c;
	String b;
	Scanner scan=new Scanner(System.in);
	n=scan.nextInt();
	boolean a[][]=new boolean[4][13];
	for(int i=0;i<n;i++)
	    {
		b=scan.next();
		c=scan.nextInt();
		if(b.equals("S"))a[0][c-1]=true;
		else if(b.equals("H"))a[1][c-1]=true;
		else if(b.equals("C"))a[2][c-1]=true;
		else if(b.equals("D"))a[3][c-1]=true;
	    }
	for(int i=0;i<4;i++)
	    {
		for(int j=0;j<13;j++)
		    {
			if(a[i][j]==false && i==0)
			    {
				System.out.println("S "+(j+1));
			    }
			else if(a[i][j]==false && i==1)
			    {
				System.out.println("H "+(j+1));
			    }
			else if(a[i][j]==false && i==2)
			    {
				System.out.println("C "+(j+1));
			    }
			else if(a[i][j]==false && i==3)
			    {
				System.out.println("D "+(j+1));
			    }
		    }
	    }
    }
}

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

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

Compiler output:
main.c: In function 'main':
main.c:4:15: error: 'n' undeclared (first use in this function)
    4 |   scanf("%d",&n);
      |               ^
main.c:4:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:24:13: error: 'm' undeclared (first use in this function)
   24 |         if (m ==1) printf("S %d",j);
      |             ^
Language: C

#include<stdio.h>
int main(void){
  int a[4][13];
  int n,m,i,num,k;
  char mark;
  scanf("%d",&n);
  for(i=1;i<=4;i++){
    for (k=1;k<=13;k++){
      a[i][k]=0;
    }
  }
  for (i=0;i<n;i++){
    /*printf("%d\n",i);*/
    scanf(" %c %d",&mark,&num);
    if(mark=='S')  a[0][num-1]=1;
    else if (mark=='H')a[1][num-1]=1;
    else if (mark=='C')a[2][num-1]=1;
    else a[3][num-1]=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 printf("D %d\n",j+1);
      }    
    }
  }
  return 0;
}

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

#include<stdio.h>
int main(void){
  int a[4][13];
  int n,m,i,j,num,;
  char mark;
  scanf("%d",&n);
  for(i=0;i<4;i++){
    for (j=0;j<13;j++){
      a[i][j]=0;
    }
  }
  for (i=0;i<n;i++){
    /*printf("%d\n",i);*/
    scanf(" %c %d",&mark,&num);
    if(mark=='S')  a[0][num-1]=1;
    else if (mark=='H')a[1][num-1]=1;
    else if (mark=='C')a[2][num-1]=1;
    else a[3][num-1]=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 printf("D %d\n",j+1);
      }    
    }
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:19: error: expected identifier or '(' before ';' token
    4 |   int n,m,i,j,num,;
      |                   ^
Language: C

#include<stdio.h>

int main(){
	bool S[13];
	bool H[13];
	bool C[13];
	bool D[13];
	int A,B;
	int N;
	cahr E;	
	for(A=0;A<13;A++)
		S[A]=H[A]=C[A]=D[A]=false;
	scanf("%d",&N);
	for(A=0;A<N;A++){
		scanf("%c %d",&E,&B);
		switch(E){
		case 'S':
			S[B]++;
			break;
		case 'H':
			H[B]++;
			break;
		case 'C':
			C[B]++;
			break;
		case 'D':
			D[B]++;
			break;
		}
	}
	for(B=0;B<4;B++)
		for(A=0;A<13;A++)
			switch(B){
			case 0:
				if(!S[A])
					printf("S %d\n",A);
				break;
			case 1:
				if(!H[A])
					printf("H %d\n",A);
				break;
			case 2:
				if(!C[A])
					printf("C %d\n",A);
				break;
			case 3:
				if(!D[A])
					printf("D %d\n",A);
				break;
			}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: unknown type name 'bool'
    4 |         bool S[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:5:9: error: unknown type name 'bool'
    5 |         bool H[13];
      |         ^~~~
main.c:5:9: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:6:9: error: unknown type name 'bool'
    6 |         bool C[13];
      |         ^~~~
main.c:6:9: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:7:9: error: unknown type name 'bool'
    7 |         bool D[13];
      |         ^~~~
main.c:7:9: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:10:9: error: unknown type name 'cahr'; did you mean 'char'?
   10 |         cahr E;
      |         ^~~~
      |         char
main.c:12:37: error: 'false' undeclared (first use in this function)
   12 |                 S[A]=H[A]=C[A]=D[A]=false;
      |                                     ^~~~~
main.c:12:37: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:12:37: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void)
{
	int i, j, howmanycards, card_num, card_suit;
	int cards[4][14];
	char suit; 

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

	scanf("%d", &howmanycards);
	for(i = 0; i < howmanycards; i++)
	{
		scanf("%c %d", &suit, &num);
		switch(suit)
		{
			case 'S':
				card_suit = 0;
				break;
			case 'H':
				card_suit = 1;
				break;
			case 'C':
				card_suit = 2;
				break;
			case 'D':
				card_suit = 3;
		}
		cards[card_suit][num] = 1;
	}

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

Compiler output:
main.c: In function 'main':
main.c:20:40: error: 'num' undeclared (first use in this function)
   20 |                 scanf("%c %d", &suit, &num);
      |                                        ^~~
main.c:20:40: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:15:17: error: expected expression before '[' token
   15 |                 [p][num-1]=1;
      |                 ^
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:37:22: error: stray '\' in program
   37 |         printf("C %d"\n,e+1);
      |                      ^
main.c:37:22: error: expected ')' before 'n'
   37 |         printf("C %d"\n,e+1);
      |               ~      ^~
      |                      )
Language: C

#include <iostream>
#include <cstdio>
using namespace std;

int main() {

  int n , a , b;

  char mark;

  int T[4][14], value;

  cin >> n;

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

  for(int i = 0; i < n; i++) {

    cin >> mark >> b;

    switch(mark) {

    case 'S':

      a = 0;

      break;

    case 'H':

      a = 1;

      break;

    case 'C':

      a = 2;

      break;

    case 'D':

      a = 3;

      break;

    }

    T[a][b] = 1;

  }

  for(int i = 0; i < 4 ; i++) {

    for(int j = 1; j < 14; j++) {

      if(T[i][j] == 1) {

	continue;

      } else {

	switch(i) {

	case 0:

	  cout << "S" << " " << j << "\n";
 
	  break;

	case 1 :

          cout << "H" << " " << j << "\n";

          break;

	case 2:

	  cout << "C" << " "  << j << "\n";

	  break;

	case 3:

	  cout << "D" << " " << j << "\n";

	default:

	  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 <iostream>

using namespace std;

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

int tonum(char x){
  if(x == 'S') return 0;
  if(x == 'H') return 1;
  if(x == 'C') return 2;
  if(x == 'D') return 3;
}

int main() {
  int n;
  int number;
  char mark;
  bool cards[4][13] = {false};
  cin >> n;
  for(int i=0; i < n; ++i){
    cin >> mark >> number;
    cards[toNum(mark)][number] = true;
  }
  for(int i=0; i < 4; ++i){
    for(int j=0; j < 13; ++j){
      cout << toMark(i) << " " << j+1 << endl;
    }
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:11: error: 'toNum' was not declared in this scope; did you mean 'tonum'?
   34 |     cards[toNum(mark)][number] = true;
      |           ^~~~~
      |           tonum
a.cc: In function 'int tonum(char)':
a.cc:24:1: warning: control reaches end of non-void function [-Wreturn-type]
   24 | }
      | ^
Language: C++

#include <iostream>

using namespace std;

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

int tonum(char x){
  if(x == 'S') return 0;
  if(x == 'H') return 1;
  if(x == 'C') return 2;
  if(x == 'D') return 3;
}

int main() {
  int n;
  int number;
  char mark;
  bool cards[4][13] = {false};
  cin >> n;
  for(int i=0; i < n; ++i){
    cin >> mark >> number;
    cards[toNum(mark)][number-1] = true;
  }
  for(int i=0; i < 4; ++i){
    for(int j=0; j < 13; ++j){
      cout << toMark(i) << " " << j+1 << endl;
    }
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:11: error: 'toNum' was not declared in this scope; did you mean 'tonum'?
   34 |     cards[toNum(mark)][number-1] = true;
      |           ^~~~~
      |           tonum
a.cc: In function 'int tonum(char)':
a.cc:24:1: warning: control reaches end of non-void function [-Wreturn-type]
   24 | }
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:31:2: error: expected '}' at end of input
   31 | }
      |  ^
a.cc:2:15: note: to match this '{'
    2 | int main(void){
      |               ^
Language: C++

#include <iostream>
using namespace std ;
int s[15], h[15], c[15], d[15] ;
int main () {
  char op ;
  int n = 52 ;
  int a
  for ( int i = 0 ; i < n ; i++ ) {
    cin >> op >> a ;
    if ( op == 'S') {
       s[a] = 1
    } else if ( op == 'H') {
       h[a] = 1
    } else if ( op == 'C') {
       c[a] = 1
    } else if ( op == 'D') {
       d[a] = 1
    }
  for ( int i = 1 ; i > n+1 ; i++) {
    if ( s[i] = 0 ) {
      cout << S << ' ' << i << endl ;
      }
  }
  for ( int i = 1 ; i > n+1 ; i++) {
    if ( h[i] = 0 ) {
      cout << H << ' ' << i << endl ;
      }
  }
    for ( int i = 1 ; i > n+1 ; i++) {
    if ( c[i] = 0 ) {
      cout << C << ' ' << i << endl ;
      }
    }  
    for ( int i = 1 ; i > n+1 ; i++) {
    if ( d[i] = 0 ) {
      cout << D << ' ' << i << endl ;
      }
    }
  }
  } 


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected initializer before 'for'
    8 |   for ( int i = 0 ; i < n ; i++ ) {
      |   ^~~
a.cc:8:21: error: 'i' was not declared in this scope
    8 |   for ( int i = 0 ; i < n ; i++ ) {
      |                     ^
Language: C++

#include <iostream>
using namespace std ;
int s[15], h[15], c[15], d[15] ;
int main () {
  char op ;
  int n = 52 ;
  int a ;
  for ( int i = 0 ; i < n ; i++ ) {
    cin >> op >> a ;
    if ( op == 'S') {
       s[a] = 1 ;
    } else if ( op == 'H') {
       h[a] = 1 ;
    } else if ( op == 'C') {
       c[a] = 1 ;
    } else if ( op == 'D') {
       d[a] = 1 ;
    }
  for ( int i = 1 ; i > n+1 ; i++) {
    if ( s[i] == 0 ) {
      cout << S << ' ' << i << endl ;
      }
  }
  for ( int i = 1 ; i > n+1 ; i++) {
    if ( h[i] == 0 ) {
      cout << H << ' ' << i << endl ;
      }
  }
    for ( int i = 1 ; i > n+1 ; i++) {
    if ( c[i] == 0 ) {
      cout << C << ' ' << i << endl ;
      }
    }  
    for ( int i = 1 ; i > n+1 ; i++) {
    if ( d[i] == 0 ) {
      cout << D << ' ' << i << endl ;
      }
    }
  }
  } 


Compiler output:
a.cc: In function 'int main()':
a.cc:21:15: error: 'S' was not declared in this scope
   21 |       cout << S << ' ' << i << endl ;
      |               ^
a.cc:26:15: error: 'H' was not declared in this scope
   26 |       cout << H << ' ' << i << endl ;
      |               ^
a.cc:31:15: error: 'C' was not declared in this scope
   31 |       cout << C << ' ' << i << endl ;
      |               ^
a.cc:36:15: error: 'D' was not declared in this scope
   36 |       cout << D << ' ' << i << endl ;
      |               ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    int total, number;
    char mark;
    int card[4][13] = {{}};
    
    cin >> total;
    for(int i = 0; i < n; i++){
    cin >> mark >> number;
    switch(mark){
        case 'S' :
        card[0][number-1] = 1;
        break;
        case 'H' :
        card[1][number-1] = 1;
        break;
        case 'C' :
        card[2][number-1] = 1;
        break;
        case 'D' :
        card[3][number-1] = 1;
        break;
        }
    }
    
    for(int i = 0; i < 52; i++){
        switch(i/13){
            case 0 :
        if(card[0][i%13] == 0) cout << 'S' << " " << i%13+1 << endl;
        break;
        case 1 :
        if(card[1][i%13] == 0) cout << 'H' << " " << i%13+1 << endl;
        break;
        case 2 :
        if(card[2][i%13] == 0) cout << 'C' << " " << i%13+1 << endl;
        break;
        case 3 :
        if(card[3][i%13] == 0) cout << 'D' << " " << i%13+1 << endl;
        break;
        }
        
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: 'n' was not declared in this scope
   10 |     for(int i = 0; i < n; i++){
      |                        ^
Language: C++

#include <iostream>

int main(int argc, char** argv)
{
	int n;
	std::cin >> n;

	unsigned int c[4];
	for (int i = 0; i < n; ++i)
	{
		char mark;
		int rank;
		std::cin >> mark >> rank;
		int markIdx = getMarkIdx(mark);
		if (markIdx >= 0)
		{
			c[markIdx] |= (1U << rank);
		}
	}

	for (int i = 0; i < 4; ++i)
	{
		for (int j = 0; j < 13; ++j)
		{
			if (c[i] & (1U << j))
			{
				std::cout << getMark(i) << " " << j;
			}
		}
	}
}

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

	return -1;
}

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

	return '\0';
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:14:31: error: 'getMarkIdx' was not declared in this scope; did you mean 'markIdx'?
   14 |                 int markIdx = getMarkIdx(mark);
      |                               ^~~~~~~~~~
      |                               markIdx
a.cc:27:46: error: 'getMark' was not declared in this scope
   27 |                                 std::cout << getMark(i) << " " << j;
      |                                              ^~~~~~~
Language: C++

#include <iostream>
using namespace std;

const char pics[] = { 'S', 'H', 'C', 'D' };

int main() {

	int n;
	bool cards[4][13];
	char pc;
	int pi, r;

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

	cin >> n;
	for (int i = 0; i < n; ++i) {
		cin >> pc >> r;
		for (int j = 0; j < 4; ++j) {
			if (pc == pics[j]) {
				pi = j;
				break;
			}
		}
		cards[pi][r - 1] = true;
	}
	for (int i = 0; i < 4; ++i) {
		for (int j = 0; j < 13; ++j) {
			if (!cards[i][j]) {



Compiler output:
a.cc: In function 'int main()':
a.cc:32:44: error: expected '}' at end of input
   32 |                         if (!cards[i][j]) {
      |                                           ~^
a.cc:32:44: error: expected '}' at end of input
a.cc:31:46: note: to match this '{'
   31 |                 for (int j = 0; j < 13; ++j) {
      |                                              ^
a.cc:32:44: error: expected '}' at end of input
   32 |                         if (!cards[i][j]) {
      |                                            ^
a.cc:30:37: note: to match this '{'
   30 |         for (int i = 0; i < 4; ++i) {
      |                                     ^
a.cc:32:44: error: expected '}' at end of input
   32 |                         if (!cards[i][j]) {
      |                                            ^
a.cc:6:12: note: to match this '{'
    6 | int main() {
      |            ^
Language: C++

int main (){
int n;
int card[4][13] = {
{1,1,1,1,1,1,1,1,1,1,1,1,1},
{1,1,1,1,1,1,1,1,1,1,1,1,1},
{1,1,1,1,1,1,1,1,1,1,1,1,1},
{1,1,1,1,1,1,1,1,1,1,1,1,1},
};
cin >> n;
//start import
for(int i=0;i<n;i++){
char x;
int y;
cin >>x >> y;
switch(x){
case 'S':
card[0][y-1] = 1;
break;
case 'H':
card[1][y-1] = 1;
break;
case 'C':
card[2][y-1] = 1;
break;
case 'D':
card[3][y-1] = 1;
break;
} 
}
//end import
//start output
for(int j=0;j<4;j++){
for(int k=0;k<13;k++){
if(card[j][k] != 1){
switch(j){
case 0:
cout <<"S"<<" "<<k+1<<"\n";
break;
case 1:
cout <<"H"<<" "<<k+1<<"\n";
break;
case 2:
cout <<"C"<<" "<<k+1<<"\n";
break;
case 3:
cout <<"D"<<" "<<k+1<<"\n";
break;


}
}
}
}
//end output
return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'cin' was not declared in this scope
    9 | cin >> n;
      | ^~~
a.cc:37:1: error: 'cout' was not declared in this scope
   37 | cout <<"S"<<" "<<k+1<<"\n";
      | ^~~~
Language: C++

#include <iostream>
using namespace std;

void ANS(int X,char C){
  for(int i=1;i<=13;i++){
   if((X & (0b1 << i))==0) cout << C << ' ' << i << endl;
  }
}

int main(){
  char mark;
  int n,S=0,H=0,C=0,D=0,num;
  cin >> n;

  for(int i=0;i<n;i++){
    cin >> mark >> num;
    switch(mark){
    case 'S':
      S+= 0b1 << num;
      break;
    case 'H':
      H+= 0b1 << num;
      break;
    case 'C':
      C+= 0b1 << num;
      break;
    case 'D':
      D+= 0b1 << num;
      break;
    }
  }
  ANS(S,'S');
  ANS(H,'H');
  ANS(C,'C');
  ANS(D,'D');
}
~      


Compiler output:
a.cc:37:2: error: expected class-name at end of input
   37 | ~
      |  ^
Language: C++

#include <stdio.h>
int main(void) {
    int card[4][13]={};
    int n,x,i,j,ch;
    scanf("%d",&n);
    for(i=0; i<n*2; i++){
        scanf("%c%d", &ch[0], &x);
        if(ch=='S')
            card[0][x-1] = 1;
        if(ch=='H')
            card[1][x-1] = 1;
        if(ch=='C')
            card[2][x-1] = 1;
        if(ch=='D')
            card[3][x-1] = 1;
    }
    puts("");
    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);
                if(i == 1)
                    printf("H %d\n", j+1);
                if(i == 2)
                    printf("C %d\n", j+1);
                if(i == 3)
                    printf("C %d\n", j+1);
            }
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: invalid types 'int[int]' for array subscript
    7 |         scanf("%c%d", &ch[0], &x);
      |                          ^
Language: C++

#include <iostream>
using namespace std;

#define MAX 4
int main(void)
{
	int n,i,j;
	char c;
	int num;
	unsigned short his[MAX] = {0};
	const char c1[MAX] = {'S','H','C','D'};

	cin >> n;
	for (i=0; i<n; i++) {
		cin >> c;
		cin >> num;

		switch (c) {
		case c1[0]:
			his[0] |= (1 << (num-1));
			break;
		case c1[1]:
			his[1] |= (1 << (num-1));
			break;
		case c1[2]:
			his[2] |= (1 << (num-1));
			break;
		case c1[3]:
			his[3] |= (1 << (num-1));
			break;
		default:
			break;
		}
	}
	for (i = 0; i < MAX; i++) {
		for (j = 0; j < 13; j++) {
			if ((his[i] & 1) == 0) {
				cout << c1[i] << " " << j+1 << endl;
			}
			his[i] >>= 1;
		}
	}
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:19:22: error: the value of 'c1' is not usable in a constant expression
   19 |                 case c1[0]:
      |                      ^~
a.cc:11:20: note: 'c1' was not declared 'constexpr'
   11 |         const char c1[MAX] = {'S','H','C','D'};
      |                    ^~
a.cc:19:22: error: the value of 'c1' is not usable in a constant expression
   19 |                 case c1[0]:
      |                      ^~
a.cc:11:20: note: 'c1' was not declared 'constexpr'
   11 |         const char c1[MAX] = {'S','H','C','D'};
      |                    ^~
a.cc:22:22: error: the value of 'c1' is not usable in a constant expression
   22 |                 case c1[1]:
      |                      ^~
a.cc:11:20: note: 'c1' was not declared 'constexpr'
   11 |         const char c1[MAX] = {'S','H','C','D'};
      |                    ^~
a.cc:22:22: error: the value of 'c1' is not usable in a constant expression
   22 |                 case c1[1]:
      |                      ^~
a.cc:11:20: note: 'c1' was not declared 'constexpr'
   11 |         const char c1[MAX] = {'S','H','C','D'};
      |                    ^~
a.cc:25:22: error: the value of 'c1' is not usable in a constant expression
   25 |                 case c1[2]:
      |                      ^~
a.cc:11:20: note: 'c1' was not declared 'constexpr'
   11 |         const char c1[MAX] = {'S','H','C','D'};
      |                    ^~
a.cc:25:22: error: the value of 'c1' is not usable in a constant expression
   25 |                 case c1[2]:
      |                      ^~
a.cc:11:20: note: 'c1' was not declared 'constexpr'
   11 |         const char c1[MAX] = {'S','H','C','D'};
      |                    ^~
a.cc:28:22: error: the value of 'c1' is not usable in a constant expression
   28 |                 case c1[3]:
      |                      ^~
a.cc:11:20: note: 'c1' was not declared 'constexpr'
   11 |         const char c1[MAX] = {'S','H','C','D'};
      |                    ^~
a.cc:28:22: error: the value of 'c1' is not usable in a constant expression
   28 |                 case c1[3]:
      |                      ^~
a.cc:11:20: note: 'c1' was not declared 'constexpr'
   11 |         const char c1[MAX] = {'S','H','C','D'};
      |                    ^~
Language: C++

c = []
for i in ["S","H","C","D"]:
    for j in range(1,14):
        c.append("{} {}".format(i,j))
n = int(input())
a = [] 
for i in range(n):
    a.append(input())
d = [i for i in c if i not in a]
if len(d) != 0:
    print(*d,sep="\n")


Compiler output:
a.cc:1:1: error: 'c' does not name a type
    1 | c = []
      | ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    int card[4][13],n,rank;
    char suit;
    cin>>n;
    
    for(int i=0;i<4;i++){
        for(int j=0;j<13;j++){
            card[i][j]=0;
        }
    }
            
    for(int i=0; i<n; i++){
        cin>>suit>>rank;
        if(suit=='S') card[0][rank-1]=1;
        if(suit=='H') card[1][rank-1]=1;
        if(suit=='D') card[2][rank-1]=1;
        if(suit=='C') card[3][rank-1]=1;
    }
    
    for(int i=0; i<4; i++ ){
        for(int j=0; j<13; j++){
            if ( card[i][j] == 1 ) continue;
            if(i==0) cout<<'S';
            if(i==1) cout<<'H';
            if(i==2) cout<<'C';
            if(i==3) cout<<'D';
            cout<<' '<<j+1<<endl;
        }
    }


Compiler output:
a.cc: In function 'int main()':
a.cc:32:6: error: expected '}' at end of input
   32 |     }
      |      ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int cards[3][12];
    int num, i, x, y;
    char ch;
    cin >> num;
    for(i=0;i<num;i++){
        cin >> ch >> y;
        if(ch=='S') x=0;
        else if(ch=='H') x=1;
        else if(ch=='C') x=2;
    　　else x=3;
    　　cards[x][y-1]=1;
    }
    int j, k;
    for(j=0;j<4;j++){
        for(k=0;k<13;k++){
            if(cards[j][k]!=1){
                if(j==0) cout << "S " << k+1 << endl;
                else if(j==1) cout << "H " << k+1 << endl;
                else if(j==2) cout << "C " << k+1 << endl;
                else cout << "D " << k+1 << endl;
            }
        }
    }
    return 0;
}


Compiler output:
a.cc:13:5: error: extended character 　 is not valid in an identifier
   13 |     　　else x=3;
      |     ^
a.cc:13:5: error: extended character 　 is not valid in an identifier
a.cc:14:5: error: extended character 　 is not valid in an identifier
   14 |     　　cards[x][y-1]=1;
      |     ^
a.cc:14:5: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:13:5: error: '\U00003000\U00003000else' was not declared in this scope
   13 |     　　else x=3;
      |     ^~~~~~~~
a.cc:14:5: error: '\U00003000\U00003000cards' was not declared in this scope
   14 |     　　cards[x][y-1]=1;
      |     ^~~~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int cards[3][12];
    int num, i, x, y;
    char ch;
    cin >> num;
    for(i=0;i<num;i++){
        cin >> ch >> y;
        if(ch=='S') x=0;
        else if(ch=='H') x=1;
        else if(ch=='C') x=2;
    　　else if(ch=='D') x=3;
    　　cards[x][y-1]=1;
    }
    int j, k;
    for(j=0;j<4;j++){
        for(k=0;k<13;k++){
            if(cards[j][k]!=1){
                if(j==0) cout << "S " << k+1 << endl;
                else if(j==1) cout << "H " << k+1 << endl;
                else if(j==2) cout << "C " << k+1 << endl;
                else cout << "D " << k+1 << endl;
            }
        }
    }
    return 0;
}


Compiler output:
a.cc:13:5: error: extended character 　 is not valid in an identifier
   13 |     　　else if(ch=='D') x=3;
      |     ^
a.cc:13:5: error: extended character 　 is not valid in an identifier
a.cc:14:5: error: extended character 　 is not valid in an identifier
   14 |     　　cards[x][y-1]=1;
      |     ^
a.cc:14:5: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:13:5: error: '\U00003000\U00003000else' was not declared in this scope
   13 |     　　else if(ch=='D') x=3;
      |     ^~~~~~~~
a.cc:14:5: error: '\U00003000\U00003000cards' was not declared in this scope
   14 |     　　cards[x][y-1]=1;
      |     ^~~~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int cards[4][13];
    int num, i, x, y;
    char ch;
    cin >> num;
    for(i=0;i<num;i++){
        cin >> ch >> y;
        if(ch=='S') x=0;
        else if(ch=='H') x=1;
        else if(ch=='C') x=2;
    　　else x=3;
    　　cards[x][y-1]=1;
    }
    int j, k;
    for(j=0;j<4;j++){
        for(k=0;k<13;k++){
            if(cards[j][k]!=1){
                if(j==0) cout << "S " << k+1 << endl;
                else if(j==1) cout << "H " << k+1 << endl;
                else if(j==2) cout << "C " << k+1 << endl;
                else cout << "D " << k+1 << endl;
            }
        }
    }
    return 0;
}


Compiler output:
a.cc:13:5: error: extended character 　 is not valid in an identifier
   13 |     　　else x=3;
      |     ^
a.cc:13:5: error: extended character 　 is not valid in an identifier
a.cc:14:5: error: extended character 　 is not valid in an identifier
   14 |     　　cards[x][y-1]=1;
      |     ^
a.cc:14:5: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:13:5: error: '\U00003000\U00003000else' was not declared in this scope
   13 |     　　else x=3;
      |     ^~~~~~~~
a.cc:14:5: error: '\U00003000\U00003000cards' was not declared in this scope
   14 |     　　cards[x][y-1]=1;
      |     ^~~~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int cards[3][12]={{}};
    int num, i, x, y;
    char ch;
    cin >> num;
    for(i=0;i<num;i++){
        cin >> ch >> y;
        if(ch=='S') x=0;
        else if(ch=='H') x=1;
        else if(ch=='C') x=2;
    　　else x=3;
    　　cards[x][y-1]=1;
    }
    int j, k;
    for(j=0;j<4;j++){
        for(k=0;k<13;k++){
            if(cards[j][k]!=1){
                if(j==0) cout << "S " << k+1 << endl;
                else if(j==1) cout << "H " << k+1 << endl;
                else if(j==2) cout << "C " << k+1 << endl;
                else cout << "D " << k+1 << endl;
            }
        }
    }
    return 0;
}


Compiler output:
a.cc:13:5: error: extended character 　 is not valid in an identifier
   13 |     　　else x=3;
      |     ^
a.cc:13:5: error: extended character 　 is not valid in an identifier
a.cc:14:5: error: extended character 　 is not valid in an identifier
   14 |     　　cards[x][y-1]=1;
      |     ^
a.cc:14:5: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:13:5: error: '\U00003000\U00003000else' was not declared in this scope
   13 |     　　else x=3;
      |     ^~~~~~~~
a.cc:14:5: error: '\U00003000\U00003000cards' was not declared in this scope
   14 |     　　cards[x][y-1]=1;
      |     ^~~~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
    int cards[3][12];
    int num, i, x, y;
    char ch;
    cin >> num;
    for(i=0;i<num;i++){
        cin >> ch >> y;
        if(ch=='S') x=0;
        else if(ch=='H') x=1;
        else if(ch=='C') x=2;
    　　else x=3;
    　　cards[x][y-1]=1;
    }
    int j, k;
    for(j=0;j<4;j++){
        for(k=0;k<13;k++){
            if(cards[j][k]==0){
                if(j==0) cout << "S " << k+1 << endl;
                else if(j==1) cout << "H " << k+1 << endl;
                else if(j==2) cout << "C " << k+1 << endl;
                else cout << "D " << k+1 << endl;
            }
        }
    }
    return 0;
}


Compiler output:
a.cc:13:5: error: extended character 　 is not valid in an identifier
   13 |     　　else x=3;
      |     ^
a.cc:13:5: error: extended character 　 is not valid in an identifier
a.cc:14:5: error: extended character 　 is not valid in an identifier
   14 |     　　cards[x][y-1]=1;
      |     ^
a.cc:14:5: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:13:5: error: '\U00003000\U00003000else' was not declared in this scope
   13 |     　　else x=3;
      |     ^~~~~~~~
a.cc:14:5: error: '\U00003000\U00003000cards' was not declared in this scope
   14 |     　　cards[x][y-1]=1;
      |     ^~~~~~~~~
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;

int main() {
    int card[4][14];
    char ch;
    int x, n;
    cin >> n;
    for (int i = 0; i < n; i++) {
        cin >> ch >> x;
        int w, card[w][x] = 0;
        if (ch == 'S') {
            card[0][x-1] = 1;
        } else if (ch == 'H') {
            card[1][x-1] = 1;
        } else if (ch == 'C') {
            card[2][x-1] = 1;
        } else if (ch == 'D') {
            card[3][x-1] = 1;
        }
        if (card[w][x] = 0) {
            cout << ch << " " << x << endl;
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:29: error: array must be initialized with a brace-enclosed initializer
   12 |         int w, card[w][x] = 0;
      |                             ^
Language: C++

#include<iostream>
uing namespace std;
int main (){
    
    int n,k,s,h = 0,t = 0;
    cin>>n;
    for(int i = 0;i < n;i++){
        cin>k>>s;
        if(k > s){h = h + k;}
        else if(s > k){t = t + s;}
    }
    
    if(h < t){cout<<t<<endl;}
    else if(t < h){cou<<h<<ensl;}
    else if(t == h){cout<<h<<endl;}
    retun 0;
}


Compiler output:
a.cc:2:1: error: 'uing' does not name a type; did you mean 'uint'?
    2 | uing namespace std;
      | ^~~~
      | uint
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin>>n;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:13:15: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     if(h < t){cout<<t<<endl;}
      |               ^~~~
      |               std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     if(h < t){cout<<t<<endl;}
      |                        ^~~~
      |                        std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:14:20: error: 'cou' was not declared in this scope
   14 |     else if(t < h){cou<<h<<ensl;}
      |                    ^~~
a.cc:14:28: error: 'ensl' was not declared in this scope
   14 |     else if(t < h){cou<<h<<ensl;}
      |                            ^~~~
a.cc:15:21: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |     else if(t == h){cout<<h<<endl;}
      |                     ^~~~
      |                     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:15:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |     else if(t == h){cout<<h<<endl;}
      |                              ^~~~
      |                              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:16:5: error: 'retun' was not declared in this scope
   16 |     retun 0;
      |     ^~~~~
Language: C++

#include<iostream>
using namespace std;
int main(void){
     
    //変数宣言&初期化
    char SHCD[52]; //絵柄代入用
    int num[52],total = 0,i = 0,j = 0;
    bool card[4][13];
     
     
    cin >> total;
     
    //入力
    for(i = 0;i < total;i++)
    {
        cin >> SHCD[i] >> num[i];
    }
     
     
    //
    for(i = 0;i < total;i++)
    {
        if(SHCD[i] == "S")
        {
            card[0][num[i]]=true;
             
        }
         
        if(SHCD[i] == "H")
        {
            card[1][num[i]]=true;
             
        }
         
        if(SHCD[i] == "C")
        {
            card[2][num[i]]=true;   
            
        }
         
        if(SHCD[i] == "D")
        {
            card[3][num[i]]=true;
             
        }
    }
     
    //不足しているカードの特定
    for(j = 0;j < 4;j++)
    {
         
        for(i = 0;i < 14;i++)
        {
             
            if(card[j][i] == false && i != 0)
            {
                 
                //絵柄特定
                if(j == 0)
                {
                    cout << "S " << i << endl;
                }
                 
                if(j == 1)
                {
                    cout << "H " << i << endl;
                }
                 
                if(j == 2)
                {
                    cout << "C " << i << endl;
                }
                 
                if(j == 3)
                {
                    cout << "D " << i << endl;
                }
             
                 
            }
             
             
        }
         
    }
     
    return 0;
     
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 |         if(SHCD[i] == "S")
      |            ~~~~~~~~^~~~~~
a.cc:29:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   29 |         if(SHCD[i] == "H")
      |            ~~~~~~~~^~~~~~
a.cc:35:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   35 |         if(SHCD[i] == "C")
      |            ~~~~~~~~^~~~~~
a.cc:41:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   41 |         if(SHCD[i] == "D")
      |            ~~~~~~~~^~~~~~
Language: C++

#include<iostream>
using namespace std;
int main() {
	int main(void) {

		//変数宣言&初期化
		string SHCD[52]; //絵柄代入用
		int num[52], total, i = 0, j = 0;
		bool card[4][13];


		cin >> total;

		//入力
		for (i = 0; i < total; i++)
		{
			for (int n = 0; i < 4; n++) {
				cin >> SHCD[n] >> num[i];
			}


			//
			for (i = 0; i < total; i++)
			{
				if (SHCD[n] == 'S')
				{
					card[0][num[i - 1]] = true;

				}

				if (SHCD[n] == 'H')
				{
					card[1][num[i]] = true;

				}

				if (SHCD[n] == 'C')
				{
					card[2][num[i]] = true;

				}

				if (SHCD[n] == 'D')
				{
					card[3][num[i]] = true;

				}
			}
		}

		//不足しているカードの特定
		for (j = 0; j < 4; j++)
		{

			for (i = 0; i < 14; i++)
			{

				if (card[j][i] == false && i != 0)
				{

					//絵柄特定
					if (j == 0)
					{
						cout << "S " << i << endl;
					}

					if (j == 1)
					{
						cout << "H " << i << endl;
					}

					if (j == 2)
					{
						cout << "C " << i << endl;
					}

					if (j == 3)
					{
						cout << "D " << i << endl;
					}


				}


			}

		}

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:24: error: a function-definition is not allowed here before '{' token
    4 |         int main(void) {
      |                        ^
a.cc:91:2: error: expected '}' at end of input
   91 | }
      |  ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include<iostream>
using namespace std;
int main() {
	int main(void) {

		//変数宣言&初期化
		string SHCD[52]; //絵柄代入用
		int num[52], total, i = 0, j = 0;
		bool card[4][13];


		cin >> total;

		//入力
		for (i = 0; i < total; i++)
		{
			for (int n = 0; i < 4; n++) {
				cin >> SHCD[n] >> num[i];
			

				if (SHCD[n] == 'S')
				{
					card[0][num[i - 1]] = true;

				}

				if (SHCD[n] == 'H')
				{
					card[1][num[i]] = true;

				}

				if (SHCD[n] == 'C')
				{
					card[2][num[i]] = true;

				}

				if (SHCD[n] == 'D'){
					card[3][num[i]] = true;

				}
			}
		}

		//不足しているカードの特定
		for (j = 0; j < 4; j++){

			for (i = 0; i < 14; i++){

				if (card[j][i] == false && i != 0){

					//絵柄特定
					if (j == 0){
						cout << "S " << i << endl;
					}

					if (j == 1){
						cout << "H " << i << endl;
					}

					if (j == 2){
						cout << "C " << i << endl;
					}

					if (j == 3){
						cout << "D " << i << endl;
					}


				}


			}

		}

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:24: error: a function-definition is not allowed here before '{' token
    4 |         int main(void) {
      |                        ^
a.cc:79:2: error: expected '}' at end of input
   79 | }
      |  ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^