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

#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:40:9: error: case label '1' not within a switch statement
   40 |         case 1:
      |         ^~~~
a.cc:43:9: error: case label '2' not within a switch statement
   43 |         case 2:
      |         ^~~~
a.cc:46:9: error: case label '3' not within a switch statement
   46 |         case 3:
      |         ^~~~
Language: C++

#include <stdio.h>

int main(void)
{
	int	n,i,j,ch;
	int card[4][13];
	char zu[1];
	int	nu;
	
	scanf("%d",&n);
	
	for(i=0;	i<n;	i++){
		scanf("%s%d",zu,&nu);
			if(zu == 'S')
				ch = 0;
			else	if(zu == 'H')
				ch = 1;
			else	if(zu == 'C')
				ch = 2;
			else
				ch = 3;
			card[ch][nu] = 1;
	}
	
	puts("");
	
	for(i=0;	i<4;	i++){
		for(j=0;	j<13;	j++){
			if(card[i][j] == 0){
				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
					printf("D %d\n",j);
			}
		}
	}
	
	return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:31: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |                         if(zu == 'S')
      |                            ~~~^~~~~~
a.cc:16:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |                         else    if(zu == 'H')
      |                                    ~~~^~~~~~
a.cc:18:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |                         else    if(zu == 'C')
      |                                    ~~~^~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
    int N,n;
    int s[13] = {},h[13] = {},c[13] = {},d[13] = {};
    char mark;
    
    cin >> N;
    for(int i = 1;i<=N;i++){
        cin >> mark >> n;
        switch(mark){
            case S:
                    s[n-1] = 1;
            case H:
                    h[n-1] = 1;
            case C:
                    c[n-1] = 1;
            case D:
                    d[n-1] = 1;
        }
    }
    for(int i = 1;i<=13;i++){
        if(s[i-1] == 0) cout << "S " << i <<endl;
    }
    for(int i = 1;i<=13;i++){
        if(h[i-1] == 0) cout << "H " << i <<endl;
    }
    for(int i = 1;i<=13;i++){
        if(c[i-1] == 0) cout << "C " << i <<endl;
    }
    for(int i = 1;i<=13;i++){
        if(d[i-1] == 0) cout << "D " << i <<endl;
    }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: 'S' was not declared in this scope
   13 |             case S:
      |                  ^
a.cc:15:18: error: 'H' was not declared in this scope
   15 |             case H:
      |                  ^
a.cc:17:18: error: 'C' was not declared in this scope
   17 |             case C:
      |                  ^
a.cc:19:18: error: 'D' was not declared in this scope
   19 |             case D:
      |                  ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    int N,n;
    int s[13] = {},h[13] = {},c[13] = {},d[13] = {};
    char mark;
    
    cin >> N;
    for(int i = 1;i<=N;i++){
        cin >> mark >> n;
        switch(mark){
            case "S":
                    s[n-1] = 1;
            case "H":
                    h[n-1] = 1;
            case "C":
                    c[n-1] = 1;
            case "D":
                    d[n-1] = 1;
        }
    }
    for(int i = 1;i<=13;i++){
        if(s[i-1] == 0) cout << "S " << i <<endl;
    }
    for(int i = 1;i<=13;i++){
        if(h[i-1] == 0) cout << "H " << i <<endl;
    }
    for(int i = 1;i<=13;i++){
        if(c[i-1] == 0) cout << "C " << i <<endl;
    }
    for(int i = 1;i<=13;i++){
        if(d[i-1] == 0) cout << "D " << i <<endl;
    }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: conversion from 'const char*' to 'int' in a converted constant expression
   13 |             case "S":
      |                  ^~~
a.cc:13:18: error: could not convert '"S"' from 'const char [2]' to 'int'
   13 |             case "S":
      |                  ^~~
      |                  |
      |                  const char [2]
a.cc:15:18: error: conversion from 'const char*' to 'int' in a converted constant expression
   15 |             case "H":
      |                  ^~~
a.cc:15:18: error: could not convert '"H"' from 'const char [2]' to 'int'
   15 |             case "H":
      |                  ^~~
      |                  |
      |                  const char [2]
a.cc:17:18: error: conversion from 'const char*' to 'int' in a converted constant expression
   17 |             case "C":
      |                  ^~~
a.cc:17:18: error: could not convert '"C"' from 'const char [2]' to 'int'
   17 |             case "C":
      |                  ^~~
      |                  |
      |                  const char [2]
a.cc:19:18: error: conversion from 'const char*' to 'int' in a converted constant expression
   19 |             case "D":
      |                  ^~~
a.cc:19:18: error: could not convert '"D"' from 'const char [2]' to 'int'
   19 |             case "D":
      |                  ^~~
      |                  |
      |                  const char [2]
Language: C++

#include<iostream>
using namespace std;

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

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

#include <iostream>
using namespace std;

int main(){
	int n, i;
	char c;
	int x;
	int a[52]={0};
	cin >> n;

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

		if(c=='S'){
			a[x-1]=1;
		}
		else if(c=='H'){
			a[x-1+13]=1;
		}
		else if(c=='C'){
			a[x-1+26]=1;
		}
		else if(c=='D'){
			a[x-1+39]=1;
		}
	}

	for(i=0; i<52; i++){
		if(a[i]==0){
			if(i<13) cout << 'S' << " " << i+1 << endl;
			else if(i<26) cout << 'H' << " " << i-12 << endl;
			else if(i<39) cout << 'C' << " " << i-25 << endl;
			else cout << 'D' << i-38 << << " " << endl;

		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:53: error: expected primary-expression before '<<' token
   33 |                         else cout << 'D' << i-38 << << " " << endl;
      |                                                     ^~
Language: C++

#include <cstdio>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: scalar object 'S' requires one element in initializer
    5 |         char S = {'S', 'H', 'C', 'D'};
      |              ^
Language: C++

#include<stdio.h>
int main() {
	int a,b,d[52],e=0;
	char c;
	scanf_s("%d",&b);
	for (int i = 0; i < 52; i++) {
		d[i] = 0;
	}
	for (int i = 0; i < b; i++) {
		scanf_s("%c", &c);
		scanf_s("%c", &c);
		void putchar();
		scanf_s("%d", &a);
		void putchar();
		if (c=='S')e = 0;
		else if (c=='H')e = 13;
		else if (c=='C')e = 26;
		else if (c=='D')e = 39;
		
	d[e+a-1] = 1;
	
	}
	for (int i = 0; i < 52; i++) {
		if (d[i] == 0) {
			if(i/13==0)printf("S %d\n", i % 13+1);
			if (i / 13 == 1)printf("H %d\n", i % 13+1);
			if (i / 13 == 2)printf("C %d\n", i % 13+1);
			if (i / 13 == 3)printf("D %d\n", i % 13+1);
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    5 |         scanf_s("%d",&b);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <iostream>
using namespace std;
int main()
{
	int card[4][13];
	int i,j,n;
	for( i=0; i<4; i++){
		for( j=0; j=13; j++){
			card[i][j] =j+1;}
	}
	
		cin >> n;
	
		char x;//?????????????¨????
		int y;//????????????number
		int k;
		for( k = 0; k < n; k++){
			cin >> x >>y;
		for( j = 0; i < 13; j++){
			if(x =='S' && y == j+1) card[0][j];
			if(x =='H' && y == j+1) card[1][j];
			if(x =='C' && y == j+1) card[2][j];
			if(x =='D' && y == j+1) card[3][j];
		}
	}
	for( i = 0; i < 4; i++){
		for( j = 0; i < 13; j++){
			if (tramp[i][j]==0) continue;
			if( i = 0) cout << "S" << " " << j+1 <<endl;
			if( i = 0) cout << "H" << " " << j+1 <<endl;
			if( i = 0) cout << "C" << " " << j+1 <<endl;
			if( i = 0) cout << "D" << " " << j+1 <<endl;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:29: error: 'tramp' was not declared in this scope
   28 |                         if (tramp[i][j]==0) continue;
      |                             ^~~~~
Language: C++

#include <iostream>
using namespace std;
int main()
{
	int card[4][13];
	int i,j;
	for( i=0; i<4; i++){
		for( j=0; j=13; j++){
			card[i][j] =j+1;
		}
	}
		int n;
		cin >> n;
	
		char x;//?????????????¨????
		int y;//????????????number
		int k;
		for( k = 0; k < n; k++){
			cin >> x >>y;
		for( j = 0; i < 13; j++){
			if(x =='S' && y == j+1) card[0][j] = 0;
			if(x =='H' && y == j+1) card[1][j] = 0;
			if(x =='C' && y == j+1) card[2][j] = 0;
			if(x =='D' && y == j+1) card[3][j] = 0;
		}
	}
	for( i = 0; i < 4; i++){
		for( j = 0; i < 13; j++){
			if (card[i][j]==0) continue;
			if( i == 0) cout << "S" << " " << j+1 << endl;
			if( i == 1) cout << "H" << " " << j+1 << endl;
			if( i == 2) cout << "C" << " " << j+1 << endl;
			if( i == 3) cout << "D" << " " << j+1 << endl;
		}
	}
	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:36:18: error: expected '}' at end of input
   36 |         return 0;
      |                  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <stdio.h>
#include <iostream>
using namespace std;
int main(){

	int n,i,j,k,y,z;
	char cards[4][13] = {0};
	char x,a;

	scanf_s("%d", &n);

	for (i = 0; i < n; i++){
		cin >> x >> y;

		

		switch (x){
		case 'S':
			z = 0;
			break;
		case 'H':
			z = 1;
			break;
		case 'C':
			z = 2;
			break;
		case 'D':
			z = 3;
			break;

		}
		cards[z][y-1] = 1;

	}
	
	putchar('\n');

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

			
		}
	
	
	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   10 |         scanf_s("%d", &n);
      |         ^~~~~~~
      |         scanf
Language: C++

int main(){
    const int M =13;
    int n,i,x;
    bool s[M] = {0}, h[M] = {0}, c[M] = {0}, d[M] = {0};
    char l;
    cin >> n;
    for(i=0;i<n;i++){
        cin >> l >> x;
        if(l == 'S') s[x-1] = 1;
        if(l == 'H') h[x-1] = 1;
        if(l == 'C') c[x-1] = 1;
        if(l == 'D') d[x-1] = 1;
            }
    for(i=0;i<M;i++){
        if(s[i] == 0) cout << "S " << i+1 <<endl;
    }
    for(i=0;i<M;i++){
        if(h[i] == 0) cout << "H " << i+1 <<endl;
    }
    for(i=0;i<M;i++){
        if(c[i] == 0) cout << "C " << i+1 <<endl;
    }
    for(i=0;i<M;i++){
        if(d[i] == 0) cout << "D " << i+1 <<endl;
    }
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> n;
      |     ^~~
a.cc:15:23: error: 'cout' was not declared in this scope
   15 |         if(s[i] == 0) cout << "S " << i+1 <<endl;
      |                       ^~~~
a.cc:15:45: error: 'endl' was not declared in this scope
   15 |         if(s[i] == 0) cout << "S " << i+1 <<endl;
      |                                             ^~~~
a.cc:18:23: error: 'cout' was not declared in this scope
   18 |         if(h[i] == 0) cout << "H " << i+1 <<endl;
      |                       ^~~~
a.cc:18:45: error: 'endl' was not declared in this scope
   18 |         if(h[i] == 0) cout << "H " << i+1 <<endl;
      |                                             ^~~~
a.cc:21:23: error: 'cout' was not declared in this scope
   21 |         if(c[i] == 0) cout << "C " << i+1 <<endl;
      |                       ^~~~
a.cc:21:45: error: 'endl' was not declared in this scope
   21 |         if(c[i] == 0) cout << "C " << i+1 <<endl;
      |                                             ^~~~
a.cc:24:23: error: 'cout' was not declared in this scope
   24 |         if(d[i] == 0) cout << "D " << i+1 <<endl;
      |                       ^~~~
a.cc:24:45: error: 'endl' was not declared in this scope
   24 |         if(d[i] == 0) cout << "D " << i+1 <<endl;
      |                                             ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
	
	int n,mark[n],rank[n];
	bool cards[4][13]=true;
	cin>>n;
	for(int i=0;i<n;i++){
		cin>>mark[i]>>rank[i];
		if(mark[i]=="S"){
			cards[0][rank[i]]=false;
		}if(mark[i]=="H"){
			cards[1][rank[i]]=false;
		}if(mark[i]=="C"){
			cards[2][rank[i]]=false;
		}if(mark[i]=="D"){
			cards[3][rank[i]]=false;
		}
	}for(int j=0;j<13;j++){
		if(cards[0][j])cout<<cards[0][j];
		if(cards[2][j])cout<<cards[1][j];
		if(cards[2][j])cout<<cards[2][j];
		if(cards[3][j])cout<<cards[3][j];
	}
	return 0;
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: array must be initialized with a brace-enclosed initializer
    6 |         bool cards[4][13]=true;
      |                           ^~~~
a.cc:10:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |                 if(mark[i]=="S"){
      |                    ~~~~~~~^~~~~
a.cc:12:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |                 }if(mark[i]=="H"){
      |                     ~~~~~~~^~~~~
a.cc:14:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |                 }if(mark[i]=="C"){
      |                     ~~~~~~~^~~~~
a.cc:16:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |                 }if(mark[i]=="D"){
      |                     ~~~~~~~^~~~~
Language: C++

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

	int n,mark[n],rank[n];
	bool cards[4][13]=true;
	cin>>n;
	for(int i=0;i<n;i++){
		cin>>mark[i]>>rank[i];
		if(mark[i]=="S"){
			cards[0][rank[i]]=false;
		}if(mark[i]=="H"){
			cards[1][rank[i]]=false;
		}if(mark[i]=="C"){
			cards[2][rank[i]]=false;
		}if(mark[i]=="D"){
			cards[3][rank[i]]=false;
		}
	}for(int j=0;j<13;j++){
		if(cards[0][j])cout<<cards[0][j];
	}for(int j=0;j<13;j++){
		if(cards[1][j])cout<<cards[1][j];
	}for(int j=0;j<13;j++){
		if(cards[2][j])cout<<cards[2][j];
	}for(int j=0;j<13;j++){
		if(cards[3][j])cout<<cards[3][j];
	}
	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: array must be initialized with a brace-enclosed initializer
    6 |         bool cards[4][13]=true;
      |                           ^~~~
a.cc:10:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |                 if(mark[i]=="S"){
      |                    ~~~~~~~^~~~~
a.cc:12:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |                 }if(mark[i]=="H"){
      |                     ~~~~~~~^~~~~
a.cc:14:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |                 }if(mark[i]=="C"){
      |                     ~~~~~~~^~~~~
a.cc:16:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |                 }if(mark[i]=="D"){
      |                     ~~~~~~~^~~~~
Language: C++

#include <iostream>
#include <cstdio>
int main(){
	int n,i;
	std::cin>>n;
	int a[4][13]={0};
	char c,num
	for(i=0;i<n;i++){
		std::cin>>c>>num;
		if(c=='S')
			a[0][num-1];
		if(c=='H')
			a[1][num-1];
		if(c=='C')
			a[2][num-1];
		if(c=='D')
			a[3][num-1];
	}
	
	for(i=0;i<4;i++){
		for(j=0;j<13;j++){
			if(a[i][j]==0){
				if(i==0) std::cout<<"S "<<j+1<<std::endl;
				if(i==1) std::cout<<"H "<<j+1<<std::endl;
				if(i==2) std::cout<<"C "<<j+1<<std::endl;
				if(i==3) std::cout<<"D "<<j+1<<std::endl;
			}
		}
	
	}
	return 0;
}

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

include <iostream>

using namespace std;

int main()
{
	int n;
	char a;
	int b;
	int card[4][13];
	int i, j;

	while (1)
	{
		cin >> n;

		if (n <= 52 && n >= 0)
			break;
	}

	for (i = 0; i < n; i++)
	{
		while (1)
		{
			cin >> a >> b;
			if (a == 'S' || a == 'H' || a == 'C' || a == 'D')
			{
				if (b <= 13 && b > 0)
					break;
			}
		}

		if (a == 'S')
			card[0][b] = 1;
		else if (a == 'H')
			card[1][b] = 1;
		else if (a == 'C')
			card[2][b] = 1;
		else
			card[3][b] = 1;
	}

	for (i = 0; i < 4; i++)
	{
		for (j = 0; j < 13; j++)
		{
			if (card[i][j] != 1)
			{
				if (i == 0)
					cout << "S " << j+1 << endl;
				else if (i == 1)
					cout << "H " << j+1 << endl;
				else if (i == 2)
					cout << "C " << j+1 << endl;
				else
					cout << "D " << j+1 << endl;
			}
		}
	}

	return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:15:17: error: 'cin' was not declared in this scope
   15 |                 cin >> n;
      |                 ^~~
a.cc:25:25: error: 'cin' was not declared in this scope
   25 |                         cin >> a >> b;
      |                         ^~~
a.cc:50:41: error: 'cout' was not declared in this scope
   50 |                                         cout << "S " << j+1 << endl;
      |                                         ^~~~
a.cc:50:64: error: 'endl' was not declared in this scope
   50 |                                         cout << "S " << j+1 << endl;
      |                                                                ^~~~
a.cc:52:41: error: 'cout' was not declared in this scope
   52 |                                         cout << "H " << j+1 << endl;
      |                                         ^~~~
a.cc:52:64: error: 'endl' was not declared in this scope
   52 |                                         cout << "H " << j+1 << endl;
      |                                                                ^~~~
a.cc:54:41: error: 'cout' was not declared in this scope
   54 |                                         cout << "C " << j+1 << endl;
      |                                         ^~~~
a.cc:54:64: error: 'endl' was not declared in this scope
   54 |                                         cout << "C " << j+1 << endl;
      |                                                                ^~~~
a.cc:56:41: error: 'cout' was not declared in this scope
   56 |                                         cout << "D " << j+1 << endl;
      |                                         ^~~~
a.cc:56:64: error: 'endl' was not declared in this scope
   56 |                                         cout << "D " << j+1 << endl;
      |                                                                ^~~~
Language: C++

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

int main(){
  int n;
  cin >> n;

  bool card[52];
  for(int i=0;i<52;i++){
    card[i] = false;
  }

  char c;
  int x;
  for(int i=0;i<n;i++){
    cin >> c >> x;
    int j;
    if(strcmp(&c,"S")==0) j=0;
    else if(strcmp(&c,"H")==0) j=1;
    else if(strcmp(&c,"C")==0) j=2;
    else j=3;
    card[j*13+x] = true;
  }

  for(int i=1;i<=52;i++){
    if(card[i] == false){
      switch(i/13){
        case 0:
          cout << "S " << i << endl;
          break;
        case 1:
          cout << "H " << i << endl;
          break;
        case 1:
          cout << "C " << i << endl;
          break;
        case 1:
          cout << "D " << i << endl;
          break;
        default:
          break;
      }
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:9: error: duplicate case value
   35 |         case 1:
      |         ^~~~
a.cc:32:9: note: previously used here
   32 |         case 1:
      |         ^~~~
a.cc:38:9: error: duplicate case value
   38 |         case 1:
      |         ^~~~
a.cc:32:9: note: previously used here
   32 |         case 1:
      |         ^~~~
Language: C++

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

int main(){
  int n;
  cin >> n;

  bool card[52];
  for(int t=0;t<52;t++){
    card[t] = false;
  }

  char c;
  int x;
  for(int i=0;i<n;i++){
    cin >> c >> x;
    int j;
    if(strcmp(&c,"S")==0) j=0;
    else if(strcmp(&c,"H")==0) j=1;
    else if(strcmp(&c,"C")==0) j=2;
    else j=3;
    card[j*13+x] = true;
  }

  for(int i=1;i<=52;i++){
    if(card[i] == false){
      switch(i/13){
        case 0:
          cout << "S " << i << endl;
          break;
        case 1:
          cout << "H " << i << endl;
          break;
        case 1:
          cout << "C " << i << endl;
          break;
        case 1:
          cout << "D " << i << endl;
          break;
        default:
          break;
      }
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:9: error: duplicate case value
   35 |         case 1:
      |         ^~~~
a.cc:32:9: note: previously used here
   32 |         case 1:
      |         ^~~~
a.cc:38:9: error: duplicate case value
   38 |         case 1:
      |         ^~~~
a.cc:32:9: note: previously used here
   32 |         case 1:
      |         ^~~~
Language: C++

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

int main(){
  int n;
  cin >> n;

  bool card[52];
  for(int t=0;t<52;t++){
    card[t] = false;
  }

  char c;
  int x;
  for(int i=0;i<n;i++){
    cin >> c >> x;
    int j;
    if(strcmp(&c,"S")==0) j=0;
    else if(strcmp(&c,"H")==0) j=1;
    else if(strcmp(&c,"C")==0) j=2;
    else j=3;
    card[j*13+x] = true;
  }

  for(int s=1;s<=52;s++){
    if(card[s] == false){
      switch(s/13){
        case 0:
          cout << "S " << s << endl;
          break;
        case 1:
          cout << "H " << s << endl;
          break;
        case 1:
          cout << "C " << s << endl;
          break;
        case 1:
          cout << "D " << s << endl;
          break;
        default:
          break;
      }
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:9: error: duplicate case value
   35 |         case 1:
      |         ^~~~
a.cc:32:9: note: previously used here
   32 |         case 1:
      |         ^~~~
a.cc:38:9: error: duplicate case value
   38 |         case 1:
      |         ^~~~
a.cc:32:9: note: previously used here
   32 |         case 1:
      |         ^~~~
Language: C++

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

int main(){
  int n;
  cin >> n;

  bool card[52];
  for(int t=0;t<52;t++){
    card[t] = false;
  }

  char c;
  int x;
  for(int i=0;i<n;i++){
    cin >> c >> x;
    int j;
    
  }

  for(int s=1;s<=52;s++){
    if(card[s] == false){
      switch(s/13){
        case 0:
          cout << "S " << s << endl;
          break;
        case 1:
          cout << "H " << s << endl;
          break;
        case 1:
          cout << "C " << s << endl;
          break;
        case 1:
          cout << "D " << s << endl;
          break;
        default:
          break;
      }
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:9: error: duplicate case value
   31 |         case 1:
      |         ^~~~
a.cc:28:9: note: previously used here
   28 |         case 1:
      |         ^~~~
a.cc:34:9: error: duplicate case value
   34 |         case 1:
      |         ^~~~
a.cc:28:9: note: previously used here
   28 |         case 1:
      |         ^~~~
Language: C++

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

int main(){
  int n;
  cin >> n;

  bool card[52];
  for(int t=0;t<52;t++){
    card[t] = false;
  }

  char c;
  int x;
  for(int i=0;i<n;i++){
    cin >> c >> x;
    int j;
    if(strcmp(&c,"S")==0) j=0;
    else if(strcmp(&c,"H")==0) j=1;
    else if(strcmp(&c,"C")==0) j=2;
    else j=3;
    card[j*13+x] = true;
  }

  for(int s=1;s<=52;s++){
    if(card[s-1] == false){
      switch(s/13){
        case 0:
          cout << "S " << s << endl;
          break;
        case 1:
          cout << "H " << s << endl;
          break;
        case 1:
          cout << "C " << s << endl;
          break;
        case 1:
          cout << "D " << s << endl;
          break;
        default:
          break;
      }
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:35:9: error: duplicate case value
   35 |         case 1:
      |         ^~~~
a.cc:32:9: note: previously used here
   32 |         case 1:
      |         ^~~~
a.cc:38:9: error: duplicate case value
   38 |         case 1:
      |         ^~~~
a.cc:32:9: note: previously used here
   32 |         case 1:
      |         ^~~~
Language: C++

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

Compiler output:
a.cc:3:1: error: expected unqualified-id before '?' token
    3 | ??
      | ^
Language: C++

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

Compiler output:
a.cc:3:1: error: expected unqualified-id before '?' token
    3 | ??
      | ^
Language: C++

#include <iostream>
#include <vector>
using namespace std;
??
int main()
{
????char suit[4] = { 'S','H','C','D', };
????vector<vector<bool> > m(4,vector<bool>(13,true));
????int n;
????cin >> n;
????for(int i=0; i<n; i++){
????????char c;
????????int j;
????????cin >> c >> j;
????????switch(c){
????????case 'S': m[0][j-1] = false; break;
????????case 'H': m[1][j-1] = false; break;
????????case 'C': m[2][j-1] = false; break;
????????case 'D': m[3][j-1] = false; break;
????????}
????}
????for(int i=0; i<4; i++){
????????for(int j=0; j<13; j++){
????????????if(m[i][j]) cout << suit[i] << " " << j+1 << endl;
????????}
????}
????return 0;
}

Compiler output:
a.cc:4:1: error: expected unqualified-id before '?' token
    4 | ??
      | ^
Language: C++

#include<iostream>
using namespace std;

int main(){
int n;
cin>>n;
char c[n];
int a[n];
for(int i=o;i<n;i++){
cin>>c[i]>>a[i];
}
int t{13][4];

for(int i=0;i<n;i++){
    if(c[i]=='S'){
         t[a[i]-1][0]=1;
    }
    else ifc[i]=='H'){
         t[a[i]-1][1]=1;
    }
    else ifc[i]=='C'){
          t[a[i]-1][2]=1;
    }
    else ifc[i]=='D'){
          t[a[i]-1][3]=1;
    }
}

char d;
for(int i=0;i<13;i++){
     for(int j=0;j<4;j++){
          if(t[i][j]==0]{
          if(j==0)d='S';
          else if(j==1)d='H';
          else if(j==2)d='C';
          else if(j==3)d='D';
          cout<<d<<" "<<i+1;
       }
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: 'o' was not declared in this scope
    9 | for(int i=o;i<n;i++){
      |           ^
a.cc:12:9: error: expected '}' before ']' token
   12 | int t{13][4];
      |      ~  ^
a.cc:12:9: error: expected ',' or ';' before ']' token
a.cc:16:11: error: invalid types 'int[int]' for array subscript
   16 |          t[a[i]-1][0]=1;
      |           ^
a.cc:18:10: error: 'ifc' was not declared in this scope
   18 |     else ifc[i]=='H'){
      |          ^~~
a.cc:21:5: error: 'else' without a previous 'if'
   21 |     else ifc[i]=='C'){
      |     ^~~~
a.cc:21:10: error: 'ifc' was not declared in this scope
   21 |     else ifc[i]=='C'){
      |          ^~~
a.cc:24:5: error: 'else' without a previous 'if'
   24 |     else ifc[i]=='D'){
      |     ^~~~
a.cc:32:15: error: invalid types 'int[int]' for array subscript
   32 |           if(t[i][j]==0]{
      |               ^
a.cc:32:24: error: expected ')' before ']' token
   32 |           if(t[i][j]==0]{
      |             ~          ^
      |                        )
a.cc:32:24: error: expected primary-expression before ']' token
a.cc:40:2: error: expected '}' at end of input
   40 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

int main(){
int n;
cin>>n;
char c[n];
int a[n];
for(int i=0;i<n;i++){
cin>>c[i]>>a[i];
}
int t{13][4];

for(int i=0;i<n;i++){
    if(c[i]=='S'){
         t[a[i]-1][0]=1;
    }
    else ifc[i]=='H'){
         t[a[i]-1][1]=1;
    }
    else ifc[i]=='C'){
          t[a[i]-1][2]=1;
    }
    else ifc[i]=='D'){
          t[a[i]-1][3]=1;
    }
}

char d;
for(int i=0;i<13;i++){
     for(int j=0;j<4;j++){
          if(t[i][j]==0]{
          if(j==0)d='S';
          else if(j==1)d='H';
          else if(j==2)d='C';
          else if(j==3)d='D';
          cout<<d<<" "<<i+1;
       }
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: expected '}' before ']' token
   12 | int t{13][4];
      |      ~  ^
a.cc:12:9: error: expected ',' or ';' before ']' token
a.cc:16:11: error: invalid types 'int[int]' for array subscript
   16 |          t[a[i]-1][0]=1;
      |           ^
a.cc:18:10: error: 'ifc' was not declared in this scope
   18 |     else ifc[i]=='H'){
      |          ^~~
a.cc:21:5: error: 'else' without a previous 'if'
   21 |     else ifc[i]=='C'){
      |     ^~~~
a.cc:21:10: error: 'ifc' was not declared in this scope
   21 |     else ifc[i]=='C'){
      |          ^~~
a.cc:24:5: error: 'else' without a previous 'if'
   24 |     else ifc[i]=='D'){
      |     ^~~~
a.cc:32:15: error: invalid types 'int[int]' for array subscript
   32 |           if(t[i][j]==0]{
      |               ^
a.cc:32:24: error: expected ')' before ']' token
   32 |           if(t[i][j]==0]{
      |             ~          ^
      |                        )
a.cc:32:24: error: expected primary-expression before ']' token
a.cc:40:2: error: expected '}' at end of input
   40 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

int main(){
int n;
cin>>n;
char c[n];
int a[n];
for(int i=0;i<n;i++){
cin>>c[i]>>a[i];
}
int t[13][4];

for(int i=0;i<n;i++){
    if(c[i]=='S'){
         t[a[i]-1][0]=1;
    }
    else ifc[i]=='H'){
         t[a[i]-1][1]=1;
    }
    else ifc[i]=='C'){
          t[a[i]-1][2]=1;
    }
    else ifc[i]=='D'){
          t[a[i]-1][3]=1;
    }
}

char d;
for(int i=0;i<13;i++){
     for(int j=0;j<4;j++){
          if(t[i][j]==0]{
          if(j==0)d='S';
          else if(j==1)d='H';
          else if(j==2)d='C';
          else if(j==3)d='D';
          cout<<d<<" "<<i+1;
       }
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:10: error: 'ifc' was not declared in this scope
   18 |     else ifc[i]=='H'){
      |          ^~~
a.cc:21:5: error: 'else' without a previous 'if'
   21 |     else ifc[i]=='C'){
      |     ^~~~
a.cc:21:10: error: 'ifc' was not declared in this scope
   21 |     else ifc[i]=='C'){
      |          ^~~
a.cc:24:5: error: 'else' without a previous 'if'
   24 |     else ifc[i]=='D'){
      |     ^~~~
a.cc:32:24: error: expected ')' before ']' token
   32 |           if(t[i][j]==0]{
      |             ~          ^
      |                        )
a.cc:32:24: error: expected primary-expression before ']' token
a.cc:40:2: error: expected '}' at end of input
   40 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

int main(){
int n;
cin>>n;
char c[n];
int a[n];
for(int i=0;i<n;i++){
cin>>c[i]>>a[i];
}
int t[13][4];

for(int i=0;i<n;i++){
    if(c[i]=='S'){
         t[a[i]-1][0]=1;
    }
    else if(c[i]=='H'){
         t[a[i]-1][1]=1;
    }
    else if(c[i]=='C'){
          t[a[i]-1][2]=1;
    }
    else if(c[i]=='D'){
          t[a[i]-1][3]=1;
    }
}

char d;
for(int i=0;i<13;i++){
     for(int j=0;j<4;j++){
          if(t[i][j]==0]{
          if(j==0)d='S';
          else if(j==1)d='H';
          else if(j==2)d='C';
          else if(j==3)d='D';
          cout<<d<<" "<<i+1;
       }
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:24: error: expected ')' before ']' token
   32 |           if(t[i][j]==0]{
      |             ~          ^
      |                        )
a.cc:32:24: error: expected primary-expression before ']' token
a.cc:40:2: error: expected '}' at end of input
   40 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

int main(){
int n;
cin>>n;
char c[n];
int a[n];
for(int i=0;i<n;i++){
cin>>c[i]>>a[i];
}
int t[13][4];

for(int i=0;i<n;i++){
    if(c[i]=='S'){
         t[a[i]-1][0]=1;
    }
    else if(c[i]=='H'){
         t[a[i]-1][1]=1;
    }
    else if(c[i]=='C'){
          t[a[i]-1][2]=1;
    }
    else if(c[i]=='D'){
          t[a[i]-1][3]=1;
    }
}

char d;
for(int i=0;i<13;i++){
     for(int j=0;j<4;j++){
          if(t[i][j]==0){
          if(j==0)d='S';
          else if(j==1)d='H';
          else if(j==2)d='C';
          else if(j==3)d='D';
          cout<<d<<" "<<i+1<<endl;
       }
}
}

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

#include<iostream>
using namespace std;
int main()
{
int n;
cin>>n;
char a;
bool h[14],s[14],c[14],d[14];
for(int i=0;i<=13;i++)
{
s[i]=h[i]=c[i]=d[i]=false;
}
int aa;
for(int i=0;i<n;i++)
{
cin>>a>>aa;
if(a=='S')s[aa]=true;
else if(s=='H')h[aa]=true;
else if(s=='C')c[aa]=true;
else d[aa]=true;
}
for(int i=1;i<=13;i++)if(!s[i])cout<<"S"<<" "<<i<<endl;
for(int i=1;i<=13;i++)if(!h[i])cout<<"H"<<" "<<i<<endl;
for(int i=1;i<=13;i++)if(!c[i])cout<<"C"<<" "<<i<<endl;
for(int i=1;i<=13;i++)if(!d[i])cout<<"D"<<" "<<i<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 | else if(s=='H')h[aa]=true;
      |         ~^~~~~
a.cc:19:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 | else if(s=='C')c[aa]=true;
      |         ~^~~~~
Language: C++

#include <math.h>
#include <iostream>
main(){
int i = 0;
std::cin >> i;

char type = '';
int num = 0;
int c =0;
bool card[52]={};
for(int n = 0;n<52;n++)card[n]= false;
for (int n = 0;n < i;n++){
std::cin >> type >> num;
int t;
if(strcmp(type,"S")==0)t=0;
if(strcmp(type,"D")==0)t=1;
if(strcmp(type,"C")==0)t=2;
if(strcmp(type,"H")==0)t=3;

card[t*13+num] = true; 

}
for(int n = 0;n<52;n++){

if(card[n]== false){
int t = floor(n/13);
if(t == 0)std::sin << "S" << n%13;
if(t == 1)std::sin << "D" << n%13;
if(t == 2)std::sin << "C" << n%13;
if(t == 3)std::sin << "H" << n%13;

}

}
}

Compiler output:
a.cc:7:13: error: empty character constant
    7 | char type = '';
      |             ^~
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:15:4: error: 'strcmp' was not declared in this scope
   15 | if(strcmp(type,"S")==0)t=0;
      |    ^~~~~~
a.cc:3:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <iostream>
  +++ |+#include <cstring>
    3 | main(){
a.cc:16:4: error: 'strcmp' was not declared in this scope
   16 | if(strcmp(type,"D")==0)t=1;
      |    ^~~~~~
a.cc:16:4: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:17:4: error: 'strcmp' was not declared in this scope
   17 | if(strcmp(type,"C")==0)t=2;
      |    ^~~~~~
a.cc:17:4: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:18:4: error: 'strcmp' was not declared in this scope
   18 | if(strcmp(type,"H")==0)t=3;
      |    ^~~~~~
a.cc:18:4: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:27:20: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [2]' to binary 'operator<<'
   27 | if(t == 0)std::sin << "S" << n%13;
      |           ~~~~~~~~~^~~~~~
a.cc:28:20: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [2]' to binary 'operator<<'
   28 | if(t == 1)std::sin << "D" << n%13;
      |           ~~~~~~~~~^~~~~~
a.cc:29:20: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [2]' to binary 'operator<<'
   29 | if(t == 2)std::sin << "C" << n%13;
      |           ~~~~~~~~~^~~~~~
a.cc:30:20: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [2]' to binary 'operator<<'
   30 | if(t == 3)std::sin << "H" << n%13;
      |           ~~~~~~~~~^~~~~~
Language: C++

#include <math.h>
#include <iostream>
int main(){
int i = 0;
std::cin >> i;

char type = '';
int num = 0;
int c =0;
bool card[52]={};
for(int n = 0;n<52;n++)card[n]= false;
for (int n = 0;n < i;n++){
std::cin >> type >> num;
int t;
if(strcmp(type,"S")==0)t=0;
if(strcmp(type,"D")==0)t=1;
if(strcmp(type,"C")==0)t=2;
if(strcmp(type,"H")==0)t=3;

card[t*13+num] = true; 

}
for(int n = 0;n<52;n++){

if(card[n]== false){
int t = floor(n/13);
if(t == 0)std::sin << "S" << n%13;
if(t == 1)std::sin << "D" << n%13;
if(t == 2)std::sin << "C" << n%13;
if(t == 3)std::sin << "H" << n%13;

}

}
return 0;
}

Compiler output:
a.cc:7:13: error: empty character constant
    7 | char type = '';
      |             ^~
a.cc: In function 'int main()':
a.cc:15:4: error: 'strcmp' was not declared in this scope
   15 | if(strcmp(type,"S")==0)t=0;
      |    ^~~~~~
a.cc:3:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <iostream>
  +++ |+#include <cstring>
    3 | int main(){
a.cc:16:4: error: 'strcmp' was not declared in this scope
   16 | if(strcmp(type,"D")==0)t=1;
      |    ^~~~~~
a.cc:16:4: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:17:4: error: 'strcmp' was not declared in this scope
   17 | if(strcmp(type,"C")==0)t=2;
      |    ^~~~~~
a.cc:17:4: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:18:4: error: 'strcmp' was not declared in this scope
   18 | if(strcmp(type,"H")==0)t=3;
      |    ^~~~~~
a.cc:18:4: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:27:20: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [2]' to binary 'operator<<'
   27 | if(t == 0)std::sin << "S" << n%13;
      |           ~~~~~~~~~^~~~~~
a.cc:28:20: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [2]' to binary 'operator<<'
   28 | if(t == 1)std::sin << "D" << n%13;
      |           ~~~~~~~~~^~~~~~
a.cc:29:20: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [2]' to binary 'operator<<'
   29 | if(t == 2)std::sin << "C" << n%13;
      |           ~~~~~~~~~^~~~~~
a.cc:30:20: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [2]' to binary 'operator<<'
   30 | if(t == 3)std::sin << "H" << n%13;
      |           ~~~~~~~~~^~~~~~
Language: C++

#include <math.h>
#include <iostream>
int main(){
int i = 0;
std::cin >> i;

char type;
int num = 0;
int c =0;
bool card[52]={};
for(int n = 0;n<52;n++)card[n]= false;
for (int n = 0;n < i;n++){
std::cin >> type >> num;
int t;
if(strcmp(type,"S")==0)t=0;
if(strcmp(type,"D")==0)t=1;
if(strcmp(type,"C")==0)t=2;
if(strcmp(type,"H")==0)t=3;

card[t*13+num] = true; 

}
for(int n = 0;n<52;n++){

if(card[n]== false){
int t = floor(n/13);
if(t == 0)std::sin << "S" << n%13;
if(t == 1)std::sin << "D" << n%13;
if(t == 2)std::sin << "C" << n%13;
if(t == 3)std::sin << "H" << n%13;

}

}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:4: error: 'strcmp' was not declared in this scope
   15 | if(strcmp(type,"S")==0)t=0;
      |    ^~~~~~
a.cc:3:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <iostream>
  +++ |+#include <cstring>
    3 | int main(){
a.cc:16:4: error: 'strcmp' was not declared in this scope
   16 | if(strcmp(type,"D")==0)t=1;
      |    ^~~~~~
a.cc:16:4: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:17:4: error: 'strcmp' was not declared in this scope
   17 | if(strcmp(type,"C")==0)t=2;
      |    ^~~~~~
a.cc:17:4: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:18:4: error: 'strcmp' was not declared in this scope
   18 | if(strcmp(type,"H")==0)t=3;
      |    ^~~~~~
a.cc:18:4: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
a.cc:27:20: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [2]' to binary 'operator<<'
   27 | if(t == 0)std::sin << "S" << n%13;
      |           ~~~~~~~~~^~~~~~
a.cc:28:20: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [2]' to binary 'operator<<'
   28 | if(t == 1)std::sin << "D" << n%13;
      |           ~~~~~~~~~^~~~~~
a.cc:29:20: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [2]' to binary 'operator<<'
   29 | if(t == 2)std::sin << "C" << n%13;
      |           ~~~~~~~~~^~~~~~
a.cc:30:20: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [2]' to binary 'operator<<'
   30 | if(t == 3)std::sin << "H" << n%13;
      |           ~~~~~~~~~^~~~~~