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

#include <math.h>
#include <iostream>
#include <string.h>
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:16:11: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   16 | if(strcmp(type,"S")==0)t=0;
      |           ^~~~
      |           |
      |           char
In file included from a.cc:3:
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
a.cc:17:11: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   17 | if(strcmp(type,"D")==0)t=1;
      |           ^~~~
      |           |
      |           char
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
a.cc:18:11: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   18 | if(strcmp(type,"C")==0)t=2;
      |           ^~~~
      |           |
      |           char
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
a.cc:19:11: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
   19 | if(strcmp(type,"H")==0)t=3;
      |           ^~~~
      |           |
      |           char
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
a.cc:28:20: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [2]' to binary 'operator<<'
   28 | if(t == 0)std::sin << "S" << 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 == 1)std::sin << "D" << 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 == 2)std::sin << "C" << n%13;
      |           ~~~~~~~~~^~~~~~
a.cc:31:20: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [2]' to binary 'operator<<'
   31 | if(t == 3)std::sin << "H" << n%13;
      |           ~~~~~~~~~^~~~~~
Language: C++

#include <math.h>
#include <iostream>
#include <string.h>
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(const_cast<char*>(type),"S")==0)t=0;
if(strcmp(const_cast<char*>(type),"D")==0)t=1;
if(strcmp(const_cast<char*>(type),"C")==0)t=2;
if(strcmp(const_cast<char*>(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:16:11: error: invalid 'const_cast' from type 'char' to type 'char*'
   16 | if(strcmp(const_cast<char*>(type),"S")==0)t=0;
      |           ^~~~~~~~~~~~~~~~~~~~~~~
a.cc:17:11: error: invalid 'const_cast' from type 'char' to type 'char*'
   17 | if(strcmp(const_cast<char*>(type),"D")==0)t=1;
      |           ^~~~~~~~~~~~~~~~~~~~~~~
a.cc:18:11: error: invalid 'const_cast' from type 'char' to type 'char*'
   18 | if(strcmp(const_cast<char*>(type),"C")==0)t=2;
      |           ^~~~~~~~~~~~~~~~~~~~~~~
a.cc:19:11: error: invalid 'const_cast' from type 'char' to type 'char*'
   19 | if(strcmp(const_cast<char*>(type),"H")==0)t=3;
      |           ^~~~~~~~~~~~~~~~~~~~~~~
a.cc:28:20: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [2]' to binary 'operator<<'
   28 | if(t == 0)std::sin << "S" << 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 == 1)std::sin << "D" << 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 == 2)std::sin << "C" << n%13;
      |           ~~~~~~~~~^~~~~~
a.cc:31:20: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [2]' to binary 'operator<<'
   31 | if(t == 3)std::sin << "H" << n%13;
      |           ~~~~~~~~~^~~~~~
Language: C++

#include <math.h>
#include <iostream>
#include <string.h>
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(const_cast<char>(type),"S")==0)t=0;
if(strcmp(const_cast<char>(type),"D")==0)t=1;
if(strcmp(const_cast<char>(type),"C")==0)t=2;
if(strcmp(const_cast<char>(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:16:11: error: invalid use of 'const_cast' with type 'char', which is not a pointer, reference, nor a pointer-to-data-member type
   16 | if(strcmp(const_cast<char>(type),"S")==0)t=0;
      |           ^~~~~~~~~~~~~~~~~~~~~~
a.cc:17:11: error: invalid use of 'const_cast' with type 'char', which is not a pointer, reference, nor a pointer-to-data-member type
   17 | if(strcmp(const_cast<char>(type),"D")==0)t=1;
      |           ^~~~~~~~~~~~~~~~~~~~~~
a.cc:18:11: error: invalid use of 'const_cast' with type 'char', which is not a pointer, reference, nor a pointer-to-data-member type
   18 | if(strcmp(const_cast<char>(type),"C")==0)t=2;
      |           ^~~~~~~~~~~~~~~~~~~~~~
a.cc:19:11: error: invalid use of 'const_cast' with type 'char', which is not a pointer, reference, nor a pointer-to-data-member type
   19 | if(strcmp(const_cast<char>(type),"H")==0)t=3;
      |           ^~~~~~~~~~~~~~~~~~~~~~
a.cc:28:20: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [2]' to binary 'operator<<'
   28 | if(t == 0)std::sin << "S" << 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 == 1)std::sin << "D" << 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 == 2)std::sin << "C" << n%13;
      |           ~~~~~~~~~^~~~~~
a.cc:31:20: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [2]' to binary 'operator<<'
   31 | if(t == 3)std::sin << "H" << n%13;
      |           ~~~~~~~~~^~~~~~
Language: C++

#include <iostream>
#include <string.h>

int main(){
	int i = 0;
	std::cin >> i;

	char type[2];
	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"))t = 0;
		if (!strcmp(type, "D"))t = 1;
		if (!strcmp(type, "C"))t = 2;
		if (!strcmp(type, "H"))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::cout << "S " << n % 13;
			if (t == 1)std::cout << "D " << n % 13;
			if (t == 2)std::cout << "C " << n % 13;
			if (t == 3)std::cout << "H " << n % 13;

		}

	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:33: error: 'floor' was not declared in this scope
   27 |                         int t = floor(n / 13);
      |                                 ^~~~~
Language: C++

#include<iostream>
#include<cstdio>
using namespace std ;
int main(){
  int n,m,a;
  char c,;
  cin>>n;  
  int cards[4][14]={0};
  for(int i=0;i<n;i++){
    cin>>c>>m;
    if(c=='S')a=0;
    if(c=='H')a=1;
    if(c=='C')a=2;
    if(c=='D')a=3;
    cards[a][m]=1;
 }
  for(int x=0;x<4;x++){
    char e;
    int d;
    if(a==0)e='S';
    if(a==1)e='H';
    if(a==2)e='C';
    if(a==3)e='D';
    for(int j=0;j<14;j++){
    if(cards[a][d]=0){
      cout<<e<<d<<endl;
    }
    }
  }
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected unqualified-id before ';' token
    6 |   char c,;
      |          ^
Language: C++

#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<iostream>
#include<string>
#include<vector>
#include<map>
#include<set>
#include<stack>
#include<list>
#include<queue>
#include<deque>
#include<algorithm>
#include<numeric>
#include<utility>
#include<complex>
#include<functional>
 
using namespace std;

const int CN = 4;
const int RN = 13;
const char scs[] = {'S','H','C','D'};

bool cs[CN][RN]
int main(){
	int n;
	cin >> n;
	
	for(int i = 0; i < n; i++){
		char sc;
		int c,r;
		cin >> sc >> r;
		
		switch(sc){
			case 'S': c = 0; break;
			case 'H': c = 1; break;
			case 'C': c = 2; break;
			case 'D': c = 3; break;
		}
		
		cs[c][r-1] = true;
	}
	
	for(int c = 0; c < CN; c++)
		for(int r = 0; r < RN; r++)
			if(! cs[c][r]) printf("%c %d\n", scs[c], r + 1);
		return 0;
}
	

Compiler output:
a.cc:27:1: error: expected initializer before 'int'
   27 | int main(){
      | ^~~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <playtime.h>

#define SPACE string(" ")
using namespace std;

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

	string str;
	vector<string> card;
	while (getline(cin, str)) {
		card.push_back(str);
	}

	vector<string> trump;
	for (int i = 1; i <= 52; i++) {
		string buf;
		if (i <= 13) {
			buf = string("S ") + to_string(i);
		}
		else if (i <= 26) {
			buf = string("H ") + to_string(i - 13);
		}
		else if (i <= 39) {
			buf = string("C ") + to_string(i - 26);
		}
		else {
			buf = string("D ") + to_string(i - 39);
		}
		trump.push_back(buf);
	}

	vector<string>::iterator ti;
	for (int j = 0; j < card.size(); j++) {
		for (ti = trump.begin(); ti != trump.end();) {
			if (card[j] == *ti) {
				trump.erase(ti);
				break;
			}
			else {
				ti++;
			}
		}
	}

	for (int k = 0; k < trump.size(); k++) {
		cout << trump[k] << endl;
	}

	return 0;
}

Compiler output:
a.cc:4:10: fatal error: playtime.h: No such file or directory
    4 | #include <playtime.h>
      |          ^~~~~~~~~~~~
compilation terminated.
Language: C++

int main{
        int cards[4][13], x, y, z, n, j, k, l;
        cin >> n;
        for(int i = 0; i < n; i++) {
                cin >> x >> y;
                if (x = 'S') z = 0;
                else if (x = 'H') z = 1;
                else if (x = 'C') z = 2;
                else z = 3;
                cards[z][y] = 1;
        }       
        for(j = 0; j < 4; j++) {
                for(k = 0; k < 13; k++) {
                        if(cards[j][k] == 0) {
                                if (j == 0) l = 'S';
                                else if (j == 1) l = 'H';
                                else if (j == 2) l = 'C';
                                else l = 'D'; 
                                cout << l << " " << k + 1 << endl;
                        }       
                }       
        }       
}       

Compiler output:
a.cc:1:5: error: cannot declare '::main' to be a global variable
    1 | int main{
      |     ^~~~
a.cc:2:9: error: expected primary-expression before 'int'
    2 |         int cards[4][13], x, y, z, n, j, k, l;
      |         ^~~
a.cc:2:9: error: expected '}' before 'int'
a.cc:1:9: note: to match this '{'
    1 | int main{
      |         ^
a.cc:3:9: error: 'cin' does not name a type
    3 |         cin >> n;
      |         ^~~
a.cc:4:9: error: expected unqualified-id before 'for'
    4 |         for(int i = 0; i < n; i++) {
      |         ^~~
a.cc:4:24: error: 'i' does not name a type
    4 |         for(int i = 0; i < n; i++) {
      |                        ^
a.cc:4:31: error: 'i' does not name a type
    4 |         for(int i = 0; i < n; i++) {
      |                               ^
a.cc:12:9: error: expected unqualified-id before 'for'
   12 |         for(j = 0; j < 4; j++) {
      |         ^~~
a.cc:12:20: error: 'j' does not name a type
   12 |         for(j = 0; j < 4; j++) {
      |                    ^
a.cc:12:27: error: 'j' does not name a type
   12 |         for(j = 0; j < 4; j++) {
      |                           ^
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^
Language: C++

#include<iostream>;
using namespace std;

int main{
        int cards[4][13], x, y, z, n, j, k, l;
        cin >> n;
        for(int i = 0; i < n; i++) {
                cin >> x >> y;
                if (x = 'S') z = 0;
                else if (x = 'H') z = 1;
                else if (x = 'C') z = 2;
                else z = 3;
                cards[z][y] = 1;
        }       
        for(j = 0; j < 4; j++) {
                for(k = 0; k < 13; k++) {
                        if(cards[j][k] == 0) {
                                if (j == 0) l = 'S';
                                else if (j == 1) l = 'H';
                                else if (j == 2) l = 'C';
                                else l = 'D'; 
                                cout << l << " " << k + 1 << endl;
                        }       
                }       
        }       
}       

Compiler output:
a.cc:1:19: warning: extra tokens at end of #include directive
    1 | #include<iostream>;
      |                   ^
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:9: error: expected primary-expression before 'int'
    5 |         int cards[4][13], x, y, z, n, j, k, l;
      |         ^~~
a.cc:5:9: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:9: error: 'cin' does not name a type
    6 |         cin >> n;
      |         ^~~
a.cc:7:9: error: expected unqualified-id before 'for'
    7 |         for(int i = 0; i < n; i++) {
      |         ^~~
a.cc:7:24: error: 'i' does not name a type
    7 |         for(int i = 0; i < n; i++) {
      |                        ^
a.cc:7:31: error: 'i' does not name a type
    7 |         for(int i = 0; i < n; i++) {
      |                               ^
a.cc:15:9: error: expected unqualified-id before 'for'
   15 |         for(j = 0; j < 4; j++) {
      |         ^~~
a.cc:15:20: error: 'j' does not name a type
   15 |         for(j = 0; j < 4; j++) {
      |                    ^
a.cc:15:27: error: 'j' does not name a type
   15 |         for(j = 0; j < 4; j++) {
      |                           ^
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

int main{
        int cards[4][13], x, y, z, n, j, k, l;
        cin >> n;
        for(int i = 0; i < n; i++) {
                cin >> x >> y;
                if (x = 'S') z = 0;
                else if (x = 'H') z = 1;
                else if (x = 'C') z = 2;
                else z = 3;
                cards[z][y] = 1;
        }       
        for(j = 0; j < 4; j++) {
                for(k = 0; k < 13; k++) {
                        if(cards[j][k] == 0) {
                                if (j == 0) l = 'S';
                                else if (j == 1) l = 'H';
                                else if (j == 2) l = 'C';
                                else l = 'D'; 
                                cout << l << " " << k + 1 << endl;
                        }       
                }       
        }       
}       

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:9: error: expected primary-expression before 'int'
    5 |         int cards[4][13], x, y, z, n, j, k, l;
      |         ^~~
a.cc:5:9: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:9: error: 'cin' does not name a type
    6 |         cin >> n;
      |         ^~~
a.cc:7:9: error: expected unqualified-id before 'for'
    7 |         for(int i = 0; i < n; i++) {
      |         ^~~
a.cc:7:24: error: 'i' does not name a type
    7 |         for(int i = 0; i < n; i++) {
      |                        ^
a.cc:7:31: error: 'i' does not name a type
    7 |         for(int i = 0; i < n; i++) {
      |                               ^
a.cc:15:9: error: expected unqualified-id before 'for'
   15 |         for(j = 0; j < 4; j++) {
      |         ^~~
a.cc:15:20: error: 'j' does not name a type
   15 |         for(j = 0; j < 4; j++) {
      |                    ^
a.cc:15:27: error: 'j' does not name a type
   15 |         for(j = 0; j < 4; j++) {
      |                           ^
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
Language: C++

#include<iostream>;
using namespace std;

int main{
        int cards[4][13], y, z, n, j, k, ii, jj;
        char x, l;
        cin >> n;
        for (ii = 0; ii < 4; ii++) {
                for (jj = 0; jj < 13; jj++) {
                        cards[ii][jj] = 0;
                }
        }
        for(int i = 0; i < n; i++) {
                cin >> x >> y;
                if (x = 'S') z = 0;
                else if (x = 'H') z = 1;
                else if (x = 'C') z = 2;
                else z = 3;
                cards[z][y] = 1;
        }
        for(j = 0; j < 4; j++) {
                for(k = 0; k < 13; k++) {
                        if(cards[j][k] == 0) {
                                if (j == 0) l = 'S';
                                else if (j == 1) l = 'H';
                                else if (j == 2) l = 'C';
                                else l = 'D';
                                cout << l << " " << k + 1 << endl;
                        }
                }
        }
}

Compiler output:
a.cc:1:19: warning: extra tokens at end of #include directive
    1 | #include<iostream>;
      |                   ^
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:9: error: expected primary-expression before 'int'
    5 |         int cards[4][13], y, z, n, j, k, ii, jj;
      |         ^~~
a.cc:5:9: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:7:9: error: 'cin' does not name a type
    7 |         cin >> n;
      |         ^~~
a.cc:8:9: error: expected unqualified-id before 'for'
    8 |         for (ii = 0; ii < 4; ii++) {
      |         ^~~
a.cc:8:22: error: 'ii' does not name a type
    8 |         for (ii = 0; ii < 4; ii++) {
      |                      ^~
a.cc:8:30: error: 'ii' does not name a type
    8 |         for (ii = 0; ii < 4; ii++) {
      |                              ^~
a.cc:13:9: error: expected unqualified-id before 'for'
   13 |         for(int i = 0; i < n; i++) {
      |         ^~~
a.cc:13:24: error: 'i' does not name a type
   13 |         for(int i = 0; i < n; i++) {
      |                        ^
a.cc:13:31: error: 'i' does not name a type
   13 |         for(int i = 0; i < n; i++) {
      |                               ^
a.cc:21:9: error: expected unqualified-id before 'for'
   21 |         for(j = 0; j < 4; j++) {
      |         ^~~
a.cc:21:20: error: 'j' does not name a type
   21 |         for(j = 0; j < 4; j++) {
      |                    ^
a.cc:21:27: error: 'j' does not name a type
   21 |         for(j = 0; j < 4; j++) {
      |                           ^
a.cc:32:1: error: expected declaration before '}' token
   32 | }
      | ^
Language: C++

#include<iostream>;
using namespace std;

int main{
        int cards[4][13], y, z, n, j, k, ii, jj;
        char x, l;
        cin >> n;
        for (ii = 0; ii < 4; ii++) {
                for (jj = 0; jj < 13; jj++) {
                        cards[ii][jj] = 0;
                }
        }
        for(int i = 0; i < n; i++) {
                cin >> x >> y;
                if (x = 'S') z = 0;
                else if (x = 'H') z = 1;
                else if (x = 'C') z = 2;
                else z = 3;
                cards[z][y] = 1;
        }
        for(j = 0; j < 4; j++) {
                for(k = 0; k < 13; k++) {
                        if(cards[j][k] == 0) {
                                if (j == 0) l = 'S';
                                else if (j == 1) l = 'H';
                                else if (j == 2) l = 'C';
                                else l = 'D';
                                cout << l << " " << k + 1 << endl;
                        }
                }
        }
        return 0;
}

Compiler output:
a.cc:1:19: warning: extra tokens at end of #include directive
    1 | #include<iostream>;
      |                   ^
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:9: error: expected primary-expression before 'int'
    5 |         int cards[4][13], y, z, n, j, k, ii, jj;
      |         ^~~
a.cc:5:9: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:7:9: error: 'cin' does not name a type
    7 |         cin >> n;
      |         ^~~
a.cc:8:9: error: expected unqualified-id before 'for'
    8 |         for (ii = 0; ii < 4; ii++) {
      |         ^~~
a.cc:8:22: error: 'ii' does not name a type
    8 |         for (ii = 0; ii < 4; ii++) {
      |                      ^~
a.cc:8:30: error: 'ii' does not name a type
    8 |         for (ii = 0; ii < 4; ii++) {
      |                              ^~
a.cc:13:9: error: expected unqualified-id before 'for'
   13 |         for(int i = 0; i < n; i++) {
      |         ^~~
a.cc:13:24: error: 'i' does not name a type
   13 |         for(int i = 0; i < n; i++) {
      |                        ^
a.cc:13:31: error: 'i' does not name a type
   13 |         for(int i = 0; i < n; i++) {
      |                               ^
a.cc:21:9: error: expected unqualified-id before 'for'
   21 |         for(j = 0; j < 4; j++) {
      |         ^~~
a.cc:21:20: error: 'j' does not name a type
   21 |         for(j = 0; j < 4; j++) {
      |                    ^
a.cc:21:27: error: 'j' does not name a type
   21 |         for(j = 0; j < 4; j++) {
      |                           ^
a.cc:32:9: error: expected unqualified-id before 'return'
   32 |         return 0;
      |         ^~~~~~
a.cc:33:1: error: expected declaration before '}' token
   33 | }
      | ^
Language: C++

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

string mark[4] = {"S", "H", "C", "D"};

int n;
string m;
int num;
int cards[4][13];

int main() {
  cin >> n;
  for(int i = 0; i < n; i++){
    cin >> m >> num;
    if(mark == "S")      cards[0][num-1] = 1;
    else if(mark == "H") cards[1][num-1] = 1;
    else if(mark == "C") cards[2][num-1] = 1;
    else if(mark == "D") cards[3][num-1] = 1;
  }

  for(int i = 0; i < 4; i++){
    for(int j = 0; j < 13; j++){
      if(cards[i][j] != 1){
        cout << mark[i] << " " <<  j+1 << endl;
      }
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: comparison between distinct pointer types 'std::string*' {aka 'std::__cxx11::basic_string<char>*'} and 'const char*' lacks a cast
   16 |     if(mark == "S")      cards[0][num-1] = 1;
      |        ~~~~~^~~~~~
a.cc:17:18: error: comparison between distinct pointer types 'std::string*' {aka 'std::__cxx11::basic_string<char>*'} and 'const char*' lacks a cast
   17 |     else if(mark == "H") cards[1][num-1] = 1;
      |             ~~~~~^~~~~~
a.cc:18:18: error: comparison between distinct pointer types 'std::string*' {aka 'std::__cxx11::basic_string<char>*'} and 'const char*' lacks a cast
   18 |     else if(mark == "C") cards[2][num-1] = 1;
      |             ~~~~~^~~~~~
a.cc:19:18: error: comparison between distinct pointer types 'std::string*' {aka 'std::__cxx11::basic_string<char>*'} and 'const char*' lacks a cast
   19 |     else if(mark == "D") cards[3][num-1] = 1;
      |             ~~~~~^~~~~~
Language: C++

#!usr/bin/env python3

import sys


def main():
    # S: spades
    # H: hearts
    # C: clubs
    # D: diamonds
    card_deck = {'S': [], 'H': [], 'C': [], 'D': []}
    card_symbols = ['S', 'H', 'C', 'D']

    n = int(sys.stdin.readline())
    lst = [card for card in sys.stdin.readline().split()]
    card_deck[lst[0]].append(lst[1])

    for key, value in card_deck.items():
        card_deck[key].sort()

    for i in card_symbols:
        for card in range(1, 13):
            if not str(card) in card_deck[i]:
                print(i, card)


if __name__ == '__main__':
    main()

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #!usr/bin/env python3
      |  ^
a.cc:7:7: error: invalid preprocessing directive #S
    7 |     # S: spades
      |       ^
a.cc:8:7: error: invalid preprocessing directive #H
    8 |     # H: hearts
      |       ^
a.cc:9:7: error: invalid preprocessing directive #C
    9 |     # C: clubs
      |       ^
a.cc:10:7: error: invalid preprocessing directive #D
   10 |     # D: diamonds
      |       ^
a.cc:27:16: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   27 | if __name__ == '__main__':
      |                ^~~~~~~~~~
a.cc:3:1: error: 'import' does not name a type
    3 | import sys
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:12:5: error: 'card_symbols' does not name a type
   12 |     card_symbols = ['S', 'H', 'C', 'D']
      |     ^~~~~~~~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
 int n,i,j;
 char a;
 int cards[4][14]={};
 cin >> n;
 for(int k=1;k<=n;++k){
  cin >> a >> j;
  if(a=="S") i=0;
  else if(a=="H") i=1;
  else if(a=="C") i=2;
  else i=3;

  cards[i][j]=1;
 }
 for(i=0;i<=3;++i){
  for(j=1;j<=13;++j){
   if(cards[i][j]==0){
    cout << i << " " << j;
   }
  }
 }
 cout << endl;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |   if(a=="S") i=0;
      |      ~^~~~~
a.cc:12:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   else if(a=="H") i=1;
      |           ~^~~~~
a.cc:13:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   else if(a=="C") i=2;
      |           ~^~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
 int n,i,j;
 char a;
 int cards[4][14]={};
 cin >> n;
 for(int k=1;k<=n;++k){
  cin >> a >> j;
  if(a=='S') i=0;
  else if(a=='H') i=1;
  else if(a=='C') i=2;
  else i=3;

  cards[i][j]=1;
 }
 for(i=0;i<=3;++i){
  for(j=1;j<=13;++j){
   if(cards[i][j]==0){
    if(i==0) cout << "S " << j;
    else if(i==1) cout << "H " << j;
    elee if(i==2) cout << "C " << j;
    else cout << "D " << j;
   }
  }
 }
 cout << endl;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:5: error: 'elee' was not declared in this scope
   23 |     elee if(i==2) cout << "C " << j;
      |     ^~~~
a.cc:24:5: error: expected '}' before 'else'
   24 |     else cout << "D " << j;
      |     ^~~~
a.cc:20:22: note: to match this '{'
   20 |    if(cards[i][j]==0){
      |                      ^
a.cc: At global scope:
a.cc:28:2: error: 'cout' does not name a type
   28 |  cout << endl;
      |  ^~~~
a.cc:29:2: error: expected unqualified-id before 'return'
   29 |  return 0;
      |  ^~~~~~
a.cc:30:1: error: expected declaration before '}' token
   30 | }
      | ^
Language: C++

import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {
	public static void main (String[] args){
		Scanner sc=new Scanner(new InputStreamReader(System.in));
		int n=sc.nextInt();
		boolean[][] a=new boolean[4][13];
		for(int i=0;i<n;i++){
			String shape=sc.next();
			int num=sc.nextInt();
			if(shape.equals("S")) a[0][num]=true;
			if(shape.equals("H")) a[1][num]=true;
			if(shape.equals("C")) a[2][num]=true;
			if(shape.equals("D")) a[3][num]=true;
		}
		sc.close();
		for(int i=0;i<13;i++){
			if(a[0][i]==false) System.out.println("S "+i);
		}
		for(int i=0;i<13;i++){
			if(a[1][i]==false) System.out.println("H "+i);
		}
		for(int i=0;i<13;i++){
			if(a[2][i]==false) System.out.println("C "+i);
		}
		for(int i=0;i<13;i++){
			if(a[3][i]==false) System.out.println("D "+i);
		}
		}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.InputStreamReader;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.Scanner;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: expected unqualified-id before 'public'
    4 | public class Main {
      | ^~~~~~
Language: C++

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

int main(){
  int n, tgt, card[52] = {};
  int num;
  string soot;
  cin >> n;
  for (int i = 0; i < n; i++) {
    tgt = -1;
    cin >> soot >> num;
    if (soot == "S") {
      tgt += 0;
    } else if (soot == "H") {
      tgt += 13;
    } else if (soot == "C") {
      tgt += 13 * 2;
    } else if (soot == "D") {
      tgt += 13 * 3;
    }
    tgt += num;
    card[tgt] = 1;
  }
  for (int i = 0; i < 52; i++) {
    if (card[i] == 0) {
      switch (i / 13) {
        case 0:
          cout << "S " << i % 13 << endl;
          break;
        case 1:
          cout << "H " << i % 13 << endl;
          break;
        case 2:
          cout << "C " << i % 13 << endl;
          break;
        case 3:
          cout << "D " << i % 13 << endl;
          break;
        default;
      }
    } 
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:41:16: error: expected ':' before ';' token
   41 |         default;
      |                ^
      |                :
Language: C++

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

int main(){
  int n, tgt, card[52] = {};
  int num;
  string soot;
  cin >> n;
  for (int i = 0; i < n; i++) {
    tgt = -1;
    cin >> soot >> num;
    if (soot == "S") {
      tgt += 0;
    } else if (soot == "H") {
      tgt += 13;
    } else if (soot == "C") {
      tgt += 13 * 2;
    } else if (soot == "D") {
      tgt += 13 * 3;
    }
    tgt += num;
    card[tgt] = 1;
  }
  for (int i = 0; i < 52; i++) {
    if (card[i] == 0) {
      switch (i / 13) {
        case 0:
          cout << "S " << i % 13 << endl;
          break;
        case 1:
          cout << "H " << i % 13 << endl;
          break;
        case 2:
          cout << "C " << i % 13 << endl;
          break;
        case 3:
          cout << "D " << i % 13 << endl;
          break;
        default:
      }
    } 
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:42:7: error: expected primary-expression before '}' token
   42 |       }
      |       ^
Language: C++

#include <stdio.h>

int main() {
	struct Card
	{
		char Mark;
		int rank[12];
	};

	Card card[4];
	
	int num;
	char mark_;
	int buf,count[4];
	for (int i = 0; i < 4; i++)
	{
		for (int j = 0; j < 12; j++)
		{
			card[i].rank[j] = 0;
		}
		count[i] = 0;
	}
	scanf_s("%d", &num);
	if (num <= 52) {
		for (int i = 0; i < num; i++)
		{
			scanf_s(" %c %d", &mark_, &buf);
			printf("%c\n %d\n", mark_,buf);
			switch (mark_)
			{
			case 'S':
			case 's':
				card[0].Mark = mark_;
				card[0].rank[count[0]] = buf;
				count[0]++;
				break;
			case 'H':
			case 'h':
				card[1].Mark = mark_;
				card[1].rank[count[1]] = buf;
				count[1]++;
				break;
			case 'C':
			case 'c':
				card[2].Mark = mark_;
				card[2].rank[count[2]] = buf;
				count[2]++;
				break;
			case 'D':
			case 'd':
				card[3].Mark = mark_;
				card[3].rank[count[3]] = buf;
				count[3]++;
				break;
			default:
				printf("No corresponding mark\n");
				i--;
				break;
			}
		}
		for (int i; i < 4; i++) {
			for (int j = 1; j <= 12; j++)
			{
				for (int k = 0; k < 12; k++)
				{
					if (j == card[i].rank[k]) {
						break;
					}
					else if(card[i].rank[k]==0){
						printf("%c %d", card[i].Mark, j);
						break;
					}
				}
			}
		}
	}

	return 0;
}

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

#include<stdio.h>
#include<string.h>
void check(int n, char k[52], int a[52], const char *w) {
	int i, j;
	int b[13] = { 0,0,0,0,0,0,0,0,0,0,0,0,0 };
	for (i = 0; i<n; i++) {
		if (!strcmp(k[i], w)) {
			for (j = 1; j <= 13; j++) {
				if (a[i] == j) {
					b[j] == 1;
				}
			}
			for (j = 1; j <= 13; j++)
			{
				if (b[j] == 0) {
					printf("%s %d\n", w, j);
				}
			}
		}
	}
}
int main() {
	int n;
	int a[52];
	char k[52];
	int i, j;
	scanf("%d", &n);
	for (i = 0; i<n; i++) {
		scanf("%s %d", &k[i], &a[i]);
	}
	check(n, k, a, "S");
	check(n, k, a, "H");
	check(n, k, a, "C");
	check(n, k, a, "D");
	return 0;
}

Compiler output:
a.cc: In function 'void check(int, char*, int*, const char*)':
a.cc:7:32: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    7 |                 if (!strcmp(k[i], w)) {
      |                             ~~~^
      |                                |
      |                                char
In file included from a.cc:2:
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
Language: C++

#include<iostream>
using namespace std;
main(k){
   char c;
   int a[53]={0};
   cin>>a[0];
   for(int i=1;i<=a[0];i++){
      cin>>c>>k;
      if(c=='S')a[k]=1;
      if(c=='H')a[13+k]=1;
      if(c=='C')a[26+k]=1;
      if(c=='D')a[39+k]=1;
   }
   for(int i=1;i<53;i++){
      if(a[i]==0){
         if(i<14)cout<<"S "<<i<<endl;
         if(13<i&&i<27)cout<<"H "<<i-13<<endl;
         if(26<i&&i<40)cout<<"C "<<i-26<<endl;
         if(39<i)cout<<"D "<<i-39<<endl;
      }
   }
   return 0;
}

Compiler output:
a.cc:3:5: error: expected constructor, destructor, or type conversion before '(' token
    3 | main(k){
      |     ^
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
int n;
char a[52];
int b[52];
bool have[4][52];
int main(){
	scanf("%d",&n);
	for(int i=0;i<n;i++){
		scaf("%d%d",&a[i],&b[i]);
		}
	for(int i=0;i<n;i++){
		if(a[i]=='S') have[0][b[i]]=true;
		if(a[i]=='H') have[1][b[i]]=true;
		if(a[i]=='C') have[2][b[i]]=true;
		if(a[i]=='D') have[3][b[i]]=true;
		}
	for(int i=0;i<4;i++){
		for(int j=0;j<n;j++){
			if(have[i][j]==false) printf("%d %d",i,j);
			}
			}
			return 0;
			}

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

# include <iostream>

int main(){

	int n;
	std::cin >> n;

	int s[13];
	int h[13];
	int c[13];
	int d[13];

	for(int i = 0; i < 13; i++){
		s[i] = 0;
		h[i] = 0;
		c[i] = 0;
		d[i] = 0;
	}

	for(int i = 0; i < n; i++){
		char ch;
		int number;
		std::cin >> ch >> number;
		switch(ch){
			case 'S':
				s[number-1] = 1;
				break;
			case 'H':
				c[number-1] = 1;
				break;
			case 'D':
				d[number-1] = 1;
				break;
			case 'C':
				c[number-1] = 1;
				break;
		}
	}

	for(int i = 0; i < 13; i++){
		if( s[i] == 0)
			std::cout << "S " << i+1 << std::endl;
	}

	for(int i = 0; i < 13; i++){
		if( h[i] == 0)
			std::cout << "H " << i+1 << std::endl;
	}

	for(int i = 0; i < 13; i++){
		if( C[i] == 0)
			std::cout << "C " << i+1 << std::endl;
	}

	for(int i = 0; i < 13; i++){
		if( D[i] == 0)
			std::cout << "D " << i+1 << std::endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:51:21: error: 'C' was not declared in this scope
   51 |                 if( C[i] == 0)
      |                     ^
a.cc:56:21: error: 'D' was not declared in this scope
   56 |                 if( D[i] == 0)
      |                     ^
Language: C++

#include <iostream>
using namespace std;

int main(void){
    
    int n = 47;
    char type;
    int number;
    
    cin >> n;

    bool c[3][12] = {};
    
    for(int i = 0; i < 4; i++) {
        for(int j = 0; j < 13; j++) {
            c[i][j] = false;   
        }
    }
    
    while(n) {
        // cout << n;
        
        cin >> type >> number;
        
        // if(type == 'S' || type == 's' && 0 < number && number < 14) {
            
            if(c[0][number] != true) {
            
                c[0][number] = true;
                // n--;
                
            }
            
        // } else if(type == 'H' || type == 'h' && 0 < number && number < 14) {
            
            if(c[1][number] != true) {
            
                c[1][number] = true;
                // n--;
                
            }
            
        // } else if(type == 'C' || type == 'c' && 0 < number && number < 14) {
            
            if(c[2][number] != true) {
            
                c[2][number] = true;
                // n--;
                
            }
            
        // } else if(type == 'D' || type == 'd' && 0 < number && number < 14) {
            
            if(c[3][number] != true) {
            
                c[3][number] = true;
                // n--;
                
            }
            
        }
        
        n--;
    }
    
    for(int i = 0; i < 4; i++) {
        for(int j = 0; j < 13; j++) {
            if(c[i][j] == false) {
                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 if(i == 3) {
                    cout << "D" << " " << j + 1 << endl;
                }
            }
        }
    }
        
    return 0;
    
}

Compiler output:
a.cc:66:5: error: expected unqualified-id before 'for'
   66 |     for(int i = 0; i < 4; i++) {
      |     ^~~
a.cc:66:20: error: 'i' does not name a type
   66 |     for(int i = 0; i < 4; i++) {
      |                    ^
a.cc:66:27: error: 'i' does not name a type
   66 |     for(int i = 0; i < 4; i++) {
      |                           ^
a.cc:82:5: error: expected unqualified-id before 'return'
   82 |     return 0;
      |     ^~~~~~
a.cc:84:1: error: expected declaration before '}' token
   84 | }
      | ^
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main() {
    uint16_t n, suit, num;
    vector<bool> cards(52, false);

    cin >> n;

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

        switch (suit) {
            case 'S':
                cards[0 * 13 + num] = true;
                break;
            case 'H':
                cards[1 * 13 + num] = true;
                break;
            case 'C':
                cards[2 * 13 + num] = true;
                break;
            case 'D':
                cards[3 * 13 + num] = true;
                break;
        }
    }

    for (uint16_t i = 0; i < 52; i++) {
        if (!cards[i]) {
            switch (i / 13) {
                case 0:
                    cout << "S";
                    break;
                case 1:
                    cout << "H";
                    break;
                case 2:
                    cout << "C";
                    break;
                case 3:
                    cout << "D";
                    break;
            }
        }
        cout << " " << i % 13 + 1 << endl;
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'uint16_t' was not declared in this scope
    7 |     uint16_t n, suit, num;
      |     ^~~~~~~~
a.cc:3:1: note: 'uint16_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
    2 | #include <vector>
  +++ |+#include <cstdint>
    3 | 
a.cc:10:12: error: 'n' was not declared in this scope
   10 |     cin >> n;
      |            ^
a.cc:12:18: error: expected ';' before 'i'
   12 |     for (uint16_t i = 0; i < n; i++) {
      |                  ^~
      |                  ;
a.cc:12:26: error: 'i' was not declared in this scope
   12 |     for (uint16_t i = 0; i < n; i++) {
      |                          ^
a.cc:13:16: error: 'suit' was not declared in this scope
   13 |         cin >> suit >> num;
      |                ^~~~
a.cc:13:24: error: 'num' was not declared in this scope; did you mean 'enum'?
   13 |         cin >> suit >> num;
      |                        ^~~
      |                        enum
a.cc:31:18: error: expected ';' before 'i'
   31 |     for (uint16_t i = 0; i < 52; i++) {
      |                  ^~
      |                  ;
a.cc:31:26: error: 'i' was not declared in this scope
   31 |     for (uint16_t i = 0; i < 52; i++) {
      |                          ^
Language: C++

#include <iostream>
int main() {
    char si;
    int n,mi;
    int v[4][13]=0;
	std::cin >> n;
    for(int a=0;a<n;a++){
        std::cin >> si >> mi;
        if(si=='S')v[0][mi]=1;
        if(si=='H')v[1][mi]=1;
        if(si=='C')v[2][mi]=1;
        if(si=='D')v[3][mi]=1;
    }
    for(int s=0;s<4;s++){
        for(int m=0;m<14;m++){
            if(v[s][m]!=1 && m!=0){
                if(s==0)std::cout << "S " << m << std::endl;
                if(s==1)std::cout << "H " << m << std::endl;
                if(s==2)std::cout << "C " << m << std::endl;
                if(s==3)std::cout << "D " << m << std::endl;
            }
        }
    }

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: array must be initialized with a brace-enclosed initializer
    5 |     int v[4][13]=0;
      |                  ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int ar[26][1000];
	
	int n;
	cin>>n;
	for (int i =0; i < n; i++)
	{
		int a;
		char s;
		cin>>s>>a;
		switch (s)
	{
	case 'S': 
		{
			ar[1][a] = 1;
			break;
		}
		case 'H': 
		{
			ar[2][a] = 1;
			
			break;
		}
		case 'C': 
		{
			ar[3][a] = 1;
		
			break;
		}
		case 'D': 
		{
			ar[4][a] = 1;
			
			break;
		}
	}
	}
	for ( int i = 0; i < 4; i++ )
	{
		for(int j = 0; j < 13 ; j++)
		{
            if(ar[i][j]==0)
			{
                switch(i)
				{
					case 0:
					   s='H';
					  break;
					case 1:
					   s='S';
					   break;
					case 2:
					    s='C';
					  break;
					case 3:
					   s='D';
                    break;
                }
                cout<<s<<" "<<j<<endl;
            }
         }
    }
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:51:44: error: 's' was not declared in this scope
   51 |                                            s='H';
      |                                            ^
a.cc:63:23: error: 's' was not declared in this scope
   63 |                 cout<<s<<" "<<j<<endl;
      |                       ^
Language: C++

#include<stdio.h>
int main(){
    int n;
    int i, j;
    char m[4]={'S', 'H', 'C', 'D'};
    int nmb[52];
    char mn[52];
    int check[][13]={0};
    scanf("%d", &n);
    for(i=0; i<n; i++){
        scanf("%c %d", &mn[i], &n[i] );
        for(j=0; j<4; j++){
            if(mn[i] == m[j]) check[j][n[i]-1]=1;
        }
    }
    for(i=0; i<4; i++){
        for(j=0; j<13; j++){
            if(!(check[i][j])) printf("%c %d\n", &mn[i], &j+1);
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:34: error: invalid types 'int[int]' for array subscript
   11 |         scanf("%c %d", &mn[i], &n[i] );
      |                                  ^
a.cc:13:41: error: invalid types 'int[int]' for array subscript
   13 |             if(mn[i] == m[j]) check[j][n[i]-1]=1;
      |                                         ^
Language: C++

#include <iostream>
int main(){
    int tuyosa,zenntai,a,b;
    char kigou;
    int x[4][13] = {0};
                   std::cin >> zenntai;
    for(int d = 0;d < zenntai;d++){
        std::cin >> kigou;
        if(kigou == 'S'){
            a = 0;
        }
        if(kigou == 'H'){
            a = 1;
        }
        if(kigou == 'C'){
            a = 2;
        }
        if(kigou == 'D'){
            a = 3;
        }
        std::cin >> tuyosa;
        b = tuyosa - 1;
        x[a][b] = 1;
    }
    for(int e = 0;e < 4;e++){
        for(int f = 0;f < 13;f++){
            if(x[e][f]==0){
            std::cout << kigou <<" "<< tuyosa<<std::endl;
            }
        }
}

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

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

int main() {
	int N, a, n[10][100];
	char c;

	cin >> N;

	for (int i = 0; i < N; i++) {
		cin >> c >> a;

		if (c == 'S')
			n[0][a] = a;

		else if (c == 'H')
			n[1][a] = a;

		else if (c == 'C')
			n[2][a] = a;

		else if(c=='D')
			n[3][a] = a;
	}

	for (int i = 1; i <= 13; i++) {
		if (n[0][i]!= i)
			cout << 'S' << ' ' << i << endl;

		if (n[1][i] != i)
			cout << 'H' << ' ' << i << endl;

		if (n[2][i] != i)
			cout << 'C' << ' ' << i << endl;

		if (n[3][i] !=i);
		    cout << 'D' << ' ' << i << endl;
	}
}

Compiler output:
a.cc:1:10: fatal error:  stdio.h : No such file or directory
    1 | #include < stdio.h >
      |          ^~~~~~~~~~~
compilation terminated.
Language: C++

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

int main() {
	int N, a, n[10][100];
	char c;

	cin >> N;

	for (int i = 0; i < N; i++) {
		cin >> c >> a;

		if (c == 'S')
			n[0][a] = a;

		else if (c == 'H')
			n[1][a] = a;

		else if (c == 'C')
			n[2][a] = a;

		else if(c=='D')
			n[3][a] = a;
	}

	for (int i = 1; i <= 13; i++) {
		if (n[0][i]!= i)
			cout << 'S' << ' ' << i << endl;

		if (n[1][i] != i)
			cout << 'H' << ' ' << i << endl;

		if (n[2][i] != i)
			cout << 'C' << ' ' << i << endl;

		if (n[3][i] !=i);
		    cout << 'D' << ' ' << i << endl;
	}
	return 0;
}

Compiler output:
a.cc:1:10: fatal error:  stdio.h : No such file or directory
    1 | #include < stdio.h >
      |          ^~~~~~~~~~~
compilation terminated.
Language: C++

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

int main() {
	int N, a, n[10][100];
	char c;

	cin >> N;

	for (int i = 0; i < N; i++) {
		cin >> c >> a;

		if (c == 'S')
			n[0][a] = a;

		else if (c == 'H')
			n[1][a] = a;

		else if (c == 'C')
			n[2][a] = a;

		else if(c=='D')
			n[3][a] = a;
	}

	for (int i = 1; i <= 13; i++) {
		if (n[0][i]!= i)
			cout << 'S' << ' ' << i << endl;

		if (n[1][i] != i)
			cout << 'H' << ' ' << i << endl;

		if (n[2][i] != i)
			cout << 'C' << ' ' << i << endl;

		if (n[3][i] !=i)
		    cout << 'D' << ' ' << i << endl;
	}
	return 0;
}

Compiler output:
a.cc:1:10: fatal error:  stdio.h : No such file or directory
    1 | #include < stdio.h >
      |          ^~~~~~~~~~~
compilation terminated.