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

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

int main(){
	int a, d;
	char b;
	bool c[4][14];
	for(int i=0 ;i<4; i++){
		for(int j=0 ;j<14; j++){
			c[i][j]=0;
		}
	}
	cin >> a;
	for(int k=0 ;k<a; k++){
		cin >> b >> d;
		if(b=='S'){
			c[0][d]=1;
		}else if(b=='H'){
			c[1][d]=1;
		}else if(b=='C'){
			c[2][d]=1;
		}else if(b=='D'){
			c[3][d]=1;
		}
	}
	for(int m=0 ;m<4; m++){
		for(int n=1 ;n<14; n++){
			if(c[m][n]==1){
				continue;
			}
			if(c[m][n]==0){
				if(m==0){
					cout <<"S" << " " << n << endl; 
				}else if(m==1){
					cout << "H" << " " << n << endl;
				}else if(m==2){
					cout << "C" << " " << n << endl;
				}else if(m==3){
					cout << "D" << " " << n << endl;
				}
			}	
		}
	}
	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:45:18: error: expected '}' at end of input
   45 |         return 0;
      |                  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
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;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |                 if (suit == "S") cards[0][rank] = 1;
      |                     ~~~~~^~~~~~
a.cc:17:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |                 if (suit == "H") cards[1][rank] = 1;
      |                     ~~~~~^~~~~~
a.cc:18:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |                 if (suit == "C") cards[2][rank] = 1;
      |                     ~~~~~^~~~~~
a.cc:19:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |                 if (suit == "D") cards[3][rank] = 1;
      |                     ~~~~~^~~~~~
a.cc:24:46: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   24 |                         if ( s == 0 ) suit = "S";
      |                                              ^~~
      |                                              |
      |                                              const char*
a.cc:25:46: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   25 |                         if ( s == 1 ) suit = "H";
      |                                              ^~~
      |                                              |
      |                                              const char*
a.cc:26:46: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   26 |                         if ( s == 2 ) suit = "C";
      |                                              ^~~
      |                                              |
      |                                              const char*
a.cc:27:46: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   27 |                         if ( s == 3 ) suit = "D";
      |                                              ^~~
      |                                              |
      |                                              const char*
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;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |                 if (suit == "S") cards[0][rank] = 1;
      |                     ~~~~~^~~~~~
a.cc:17:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |                 if (suit == "H") cards[1][rank] = 1;
      |                     ~~~~~^~~~~~
a.cc:18:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |                 if (suit == "C") cards[2][rank] = 1;
      |                     ~~~~~^~~~~~
a.cc:19:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |                 if (suit == "D") cards[3][rank] = 1;
      |                     ~~~~~^~~~~~
a.cc:24:46: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   24 |                         if ( s == 0 ) suit = "S";
      |                                              ^~~
      |                                              |
      |                                              const char*
a.cc:25:46: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   25 |                         if ( s == 1 ) suit = "H";
      |                                              ^~~
      |                                              |
      |                                              const char*
a.cc:26:46: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   26 |                         if ( s == 2 ) suit = "C";
      |                                              ^~~
      |                                              |
      |                                              const char*
a.cc:27:46: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   27 |                         if ( s == 3 ) suit = "D";
      |                                              ^~~
      |                                              |
      |                                              const char*
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;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |                 if (suit == "S") cards[0][rank] = 1;
      |                     ~~~~~^~~~~~
a.cc:17:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |                 if (suit == "H") cards[1][rank] = 1;
      |                     ~~~~~^~~~~~
a.cc:18:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |                 if (suit == "C") cards[2][rank] = 1;
      |                     ~~~~~^~~~~~
a.cc:19:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |                 if (suit == "D") cards[3][rank] = 1;
      |                     ~~~~~^~~~~~
a.cc:24:46: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   24 |                         if ( s == 0 ) suit = "S";
      |                                              ^~~
      |                                              |
      |                                              const char*
a.cc:25:46: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   25 |                         if ( s == 1 ) suit = "H";
      |                                              ^~~
      |                                              |
      |                                              const char*
a.cc:26:46: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   26 |                         if ( s == 2 ) suit = "C";
      |                                              ^~~
      |                                              |
      |                                              const char*
a.cc:27:46: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   27 |                         if ( s == 3 ) suit = "D";
      |                                              ^~~
      |                                              |
      |                                              const char*
Language: C++

#include<iostream>
#include<studio.h>

using namespace std;

int main(){

	char mark;
	int card[4][13];
	int i, j, n , num;

	cin >> n;

	for (i = 0; i < n; i++){
		cin >> mark >> num;
		switch (mark){
		case'S':
			card[0][num] = 1;
				break;
		case'H':
			card[1][num] = 1;
				break;
		case'C':
			card[2][num] = 1;
				break;
		case'D':
			card[3][num] = 1;
				break;
		}
	}


	for (i = 0; i < 4; i++){
		for (j = 1; j < 14; j++){
				if (card[i][j] != 1){

					if (i == 0){
						cout << "S " << j << endl;
					}
					if (i == 1){
						cout << "H " << j << endl;
					}
					if (i == 2){
						cout << "C " << j << endl;
					}
					if (i == 3){
						cout << "D " << j << endl;
					}

			}
		}
	}
	return 0;
}

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:33: error: 'mark' was not declared in this scope
   10 |                 scanf("%c,%d", &mark, &no);
      |                                 ^~~~
Language: C++

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

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

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

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

#include<iostream>
using namespace std;
int main() {
    int n, y, s[13], h[13], c[13], d[13];
    char x;
    cin >> n;
    for (int i = 0;i < n;i++) {
        cin >> x;
        cin >> y;
        if (x == 'S') {
            s[y - 1] = y;
        }
        if (x == 'H') {
            h[y - 1] = y;
        }
        if (x == 'C') {
            c[y - 1] = y;
        }
        if (x == 'D') {
            d[y - 1] = y;
        }
    }
    for (int i2 = 0;i2 < 13;i2++) {
        if (s[i2] != i2 + 1) {
            cout << "S " << i2 + 1 << endl;
        }
    }
    for (int i2 = 0;i2 < 13;i2++) {
        if (h[i2] != i2 + 1) {
            cout << "H " << i2 + 1 << endl;
        }
    }

    for (int i2 = 0;i2 < 13;i2++) {
        if (c[i2] != i2 + 1) {
            cout << "C " << i2 + 1 << endl;
        }
    }

    for (int i2 = 0;i2 < 13;i2++) {
        if (d[i2] != i2 + 1) {
            cout << "D " << i2 + 1 << endl;
        }
    }

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

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

Compiler output:
a.cc:28:7: warning: trigraph ??/ ignored, use -trigraphs to enable [-Wtrigraphs]
   28 | ????????//0:S
a.cc:35:7: warning: trigraph ??/ ignored, use -trigraphs to enable [-Wtrigraphs]
   35 | ????????//1:H
a.cc:42:7: warning: trigraph ??/ ignored, use -trigraphs to enable [-Wtrigraphs]
   42 | ????????//2:C
a.cc:49:7: warning: trigraph ??/ ignored, use -trigraphs to enable [-Wtrigraphs]
   49 | ????????//3:D
a.cc:3:1: error: expected unqualified-id before '?' token
    3 | ??
      | ^
Language: C++

#include <iostream>
using namespace std;
??
int main(){
    int n;
    ??
    bool l[4][13];
    for(int i = 0; i < 4; i++){
        for(int j = 0; j < 13; j++){
            l[i][j] = false;
        }
    }

    cin >> n;
??
????????for(int i = 0; i < n; i++){
????????????????char mark;
????????????????int number;
????????????????cin >> mark >> number;
????????????????switch(mark){
????????????????????????case 'S': l[0][number-1] = true; break;
????????????????????????case 'H': l[1][number-1] = true; break;
????????????????????????case 'C': l[2][number-1] = true; break;
????????????????????????case 'D': l[3][number-1] = true; break;
????????????????}
????????}
??
????????//0:S
????????for(int j = 0; j < 13; j++){
????????????????if(l[0][j] == false){
????????????????????????cout << "S " << j+1 << endl;
????????????????}
????????}
??
????????//1:H
????????for(int j = 0; j < 13; j++){
????????????????if(l[1][j] == false){
????????????????????????cout << "H " << j+1 << endl;
????????????????}
????????}
??
????????//2:C
????????for(int j = 0; j < 13; j++){
????????????????if(l[2][j] == false){
????????????????????????cout << "C " << j+1 << endl;
????????????????}
????????}
??
????????//3:D
????????for(int j = 0; j < 13; j++){
????????????????if(l[3][j] == false){
????????????????????????cout << "D " << j+1 << endl;
????????????????}
????????}
??
????????return(0);
}

Compiler output:
a.cc:28:7: warning: trigraph ??/ ignored, use -trigraphs to enable [-Wtrigraphs]
   28 | ????????//0:S
a.cc:35:7: warning: trigraph ??/ ignored, use -trigraphs to enable [-Wtrigraphs]
   35 | ????????//1:H
a.cc:42:7: warning: trigraph ??/ ignored, use -trigraphs to enable [-Wtrigraphs]
   42 | ????????//2:C
a.cc:49:7: warning: trigraph ??/ ignored, use -trigraphs to enable [-Wtrigraphs]
   49 | ????????//3:D
a.cc:3:1: error: expected unqualified-id before '?' token
    3 | ??
      | ^
Language: C++

#include <iostream>
using namespace std;
??
int main(){
    int n;
??????????
    bool l[4][13];
    for(int i = 0; i < 4; i++){
        for(int j = 0; j < 13; j++){
            l[i][j] = false;
        }
    }
    
    cin >> n;

    for(int i = 0; i < n; i++){
        char mark;
        int number;
        cin >> mark >> number;
        switch(mark){
            case 'S': l[0][number-1] = true; break;
            case 'H': l[1][number-1] = true; break;
            case 'C': l[2][number-1] = true; break;
            case 'D': l[3][number-1] = true; break;
        }
    }

    //0:S
    for(int j = 0; j < 13; j++){
        if(l[0][j] == false){
            cout << "S " << j+1 << endl;
        }
    }

    //1:H
    for(int j = 0; j < 13; j++){
        if(l[1][j] == false){
            cout << "H " << j+1 << endl;
        }
    }

    //2:C
    for(int j = 0; j < 13; j++){
        if(l[2][j] == false){
            cout << "C " << j+1 << endl;
        }
    }

    //3:D
    for(int j = 0; j < 13; j++){
        if(l[3][j] == false){
            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;

    bool l[4][13];
    for(int i = 0; i < 4; i++){
        for(int j = 0; j < 13; j++){
            l[i][j] = false;
        }
    }
    
    cin >> n;

    for(int i = 0; i < n; i++){
        char mark;
        int number;
        cin >> mark >> number;
        switch(mark){
            case 'S': l[0][number-1] = true; break;
            case 'H': l[1][number-1] = true; break;
            case 'C': l[2][number-1] = true; break;
            case 'D': l[3][number-1] = true; break;
        }
    }

    //0:S
    for(int j = 0; j < 13; j++){
        if(l[0][j] == false){
            cout << "S " << j+1 << endl;
        }
    }

    //1:H
    for(int j = 0; j < 13; j++){
        if(l[1][j] == false){
            cout << "H " << j+1 << endl;
        }
    }

    //2:C
    for(int j = 0; j < 13; j++){
        if(l[2][j] == false){
            cout << "C " << j+1 << endl;
        }
    }

    //3:D
    for(int j = 0; j < 13; j++){
        if(l[3][j] == false){
            cout << "D " << j+1 << endl;
        }
    }

    return(0);
}

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

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

return 0;
}

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

if( a == 'H' ) card[1][b-1] = 1;
    if( a == 'C' ) card[2][b-1] = 1;
    if( a == 'D' ) card[3][b-1] = 1;
  }

  for( int i = 0; i < 13; ++i){
    if( !card[0][i] ) cout << "S " << i+1 << endl;
    if( !card[1][i] ) cout << "H " << i+1 << endl;
    if( !card[2][i] ) cout << "C " << i+1 << endl;
    if( !card[3][i] ) cout << "D " << i+1 << en
  }
  return 0;
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'if'
    1 | if( a == 'H' ) card[1][b-1] = 1;
      | ^~
a.cc:2:5: error: expected unqualified-id before 'if'
    2 |     if( a == 'C' ) card[2][b-1] = 1;
      |     ^~
a.cc:3:5: error: expected unqualified-id before 'if'
    3 |     if( a == 'D' ) card[3][b-1] = 1;
      |     ^~
a.cc:4:3: error: expected declaration before '}' token
    4 |   }
      |   ^
a.cc:6:3: error: expected unqualified-id before 'for'
    6 |   for( int i = 0; i < 13; ++i){
      |   ^~~
a.cc:6:19: error: 'i' does not name a type
    6 |   for( int i = 0; i < 13; ++i){
      |                   ^
a.cc:6:27: error: expected unqualified-id before '++' token
    6 |   for( int i = 0; i < 13; ++i){
      |                           ^~
a.cc:12:3: error: expected unqualified-id before 'return'
   12 |   return 0;
      |   ^~~~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

#include <iostream>

using namespace std;

int main(){
  int card[4][13] = {};
  int n;
  char a;
  int b;
  
  cin >> n;
  for( int i = 0; i < n; ++i){
    cin >> a >> b;
    if( a == 'S' ) card[0][b-1] = 1;
    if( a == 'H' ) card[1][b-1] = 1;
    if( a == 'C' ) card[2][b-1] = 1;
    if( a == 'D' ) card[3][b-1] = 1;
  }

  for( int i = 0; i < 13; ++i){
    if( !card[0][i] ) cout << "S " << i+1 << endl;
    if( !card[1][i] ) cout << "H " << i+1 << endl;
    if( !card[2][i] ) cout << "C " << i+1 << endl;
    if( !card[3][i] ) cout << "D " << i+1 << en
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:46: error: 'en' was not declared in this scope; did you mean 'n'?
   24 |     if( !card[3][i] ) cout << "D " << i+1 << en
      |                                              ^~
      |                                              n
Language: C++

47
S 10
S 11
S 12
S 13
H 1
H 2
S 6
S 7
S 8
S 9
H 6
H 8
H 9
H 10
H 11
H 4
H 5
S 2
S 3
S 4
S 5
H 12
H 13
C 1
C 2
D 1
D 2
D 3
D 4
D 5
D 6
D 7
C 3
C 4
C 5
C 6
C 7
C 8
C 9
C 10
C 11
C 13
D 9
D 10
D 11
D 12
D 13

Compiler output:
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 47
      | ^~
Language: C++

#include<bits/stdc++.h>
using iostream 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[0][rank] = 1;
  if ( suit == 'C' ) cards[0][rank] = 1;
  if ( suit == 'D' ) cards[0][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;
 }
}
return 0:
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'iostream'
    2 | using iostream std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:10:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 |  cin >> n;
      |  ^~~
      |  std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:25:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   25 |    cout << suit << " " << r << endl;
      |    ^~~~
      |    std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:25:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   25 |    cout << suit << " " << r << endl;
      |                                ^~~~
      |                                std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:28:9: error: expected ';' before ':' token
   28 | return 0:
      |         ^
      |         ;
a.cc:28:9: error: expected primary-expression before ':' token
Language: C++

#include<bits/stdc++.h>
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[0][rank] = 1;
  if ( suit == 'C' ) cards[0][rank] = 1;
  if ( suit == 'D' ) cards[0][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;
 }
}
return 0:
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:9: error: expected ';' before ':' token
   28 | return 0:
      |         ^
      |         ;
a.cc:28:9: error: expected primary-expression before ':' token
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
    bool tramp[4][13];
    for(int a = 0; a < 4; ++a) {
        for(int b = 0; b < 13; ++b) {
            tramp[a][b] = false;
        }
    }
    
    int N;
    char kind;
    int number,e;

    cin >> N;

    for(int c = 0; c < N; ++c) {
        cin >> kind >> number;
        switch(kind) {
            case S:
             e = 0;
             break;
            case H:
             e = 1;
             break;
            case C:
             e = 2;
             break;
            case D:
             e = 3;
             break;
        }
        tramp[e][number] = true;
    }

    char kind2;

    for(int f = 0; f < 4; ++f) {
        for(int g = 0; g < 4; ++ g) {
            if(number[f][g] == false) {
                switch(f) {
                    case 0:
                     kind2 = "S";
                     break
                    case 1:
                     kind2 = "H";
                     break;
                    case 2:
                     kind2 = "C";
                     break;
                    case 3:
                     kind2 = "D";
                     break; 
                }
                cout << kind2 << " " << g << endl;
            }
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:18: error: 'S' was not declared in this scope
   21 |             case S:
      |                  ^
a.cc:24:18: error: 'H' was not declared in this scope
   24 |             case H:
      |                  ^
a.cc:27:18: error: 'C' was not declared in this scope
   27 |             case C:
      |                  ^
a.cc:30:18: error: 'D' was not declared in this scope
   30 |             case D:
      |                  ^
a.cc:41:22: error: invalid types 'int[int]' for array subscript
   41 |             if(number[f][g] == false) {
      |                      ^
a.cc:44:30: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   44 |                      kind2 = "S";
      |                              ^~~
      |                              |
      |                              const char*
a.cc:45:27: error: expected ';' before 'case'
   45 |                      break
      |                           ^
      |                           ;
   46 |                     case 1:
      |                     ~~~~   
a.cc:47:30: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   47 |                      kind2 = "H";
      |                              ^~~
      |                              |
      |                              const char*
a.cc:50:30: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   50 |                      kind2 = "C";
      |                              ^~~
      |                              |
      |                              const char*
a.cc:53:30: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   53 |                      kind2 = "D";
      |                              ^~~
      |                              |
      |                              const char*
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
    bool tramp[4][13];
    for(int a = 0; a < 4; ++a) {
        for(int b = 0; b < 13; ++b) {
            tramp[a][b] = false;
        }
    }
    
    int N;

    cin >> N;

    for(int c = 0; c < N; ++c) {
        char kind;
        int number;
        cin >> kind >> number;
        switch(kind) {
            case 'S': tramp[0][number-1] = true;
             break;
            case 'H': tramp[1][number-1] = true;
             break;
            case 'C': tramp[2][number-1] = true;
             break;
            case 'D': tramp[3][number-1] = true;
             break
        }
    }

    for(int f = 0; f < 4; ++f) {
        for(int g = 0; g < 4; ++ g) {
            if(tramp[f][g] == false) {
                char kind2;
                if(f == 0) {
                    kind2 = 'S';
                }else if(f == 1) {
                    kind2 = 'H';
                }else if(f == 2) {
                    kind = 'C';
                }else if(f == 3) {
                    kind = 'D';
                }
                cout << kind2 << " " << g << endl;
            }
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:19: error: expected ';' before '}' token
   28 |              break
      |                   ^
      |                   ;
   29 |         }
      |         ~          
a.cc:41:21: error: 'kind' was not declared in this scope; did you mean 'kind2'?
   41 |                     kind = 'C';
      |                     ^~~~
      |                     kind2
a.cc:43:21: error: 'kind' was not declared in this scope; did you mean 'kind2'?
   43 |                     kind = 'D';
      |                     ^~~~
      |                     kind2
Language: C++

listS=[1,2,3,4,5,6,7,8,9,10,11,12,13]
listH=[1,2,3,4,5,6,7,8,9,10,11,12,13]
listC=[1,2,3,4,5,6,7,8,9,10,11,12,13]
listD=[1,2,3,4,5,6,7,8,9,10,11,12,13]

n=int(input())

for i in range(n):
    m, s = map(str,input().split())

    if m == "S":
        listS.remove(int(s))

    elif  m == "H":
        listH.remove(int(s))

    elif m == "C":
        listC.remove(int(s))

    else:
        listD.remove(int(s))

for i in listS:
    print("S "+str(i))
for i in listH:
    print("H "+str(i))
for i in listC:
    print("C "+str(i))
for i in listD:
    print("D "+str(i))

Compiler output:
a.cc:1:1: error: 'listS' does not name a type
    1 | listS=[1,2,3,4,5,6,7,8,9,10,11,12,13]
      | ^~~~~
Language: C++

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

int main(){
	int data[4][13];
	int n, m, i, j;
	char c;
	memset(data, 1, sizeof(data));
	scanf("%d", &n);
	for (i = 0; i<n; i++){
		scanf(" %c %d", &c, &m);

		printf("%d  ", m);
		if (c == 'S'){ data [0][m] = 99; }
		else if (c == 'H'){ data[1][m] = 99; }
		else if (c == 'C'){ data[2][m] = 99; }
		else if (c == 'D'){ data[3][m] = 99; }
	}
	for (i = 0; i < 3; i++){
		for (j = 1; j < 14; j++){
			if (data[i][j] != 99){
				if (i == 0){ printf("S;%d"); }
				else if (i == 1){
					printf("H;%d");
				}
				else if (i == 2){
					printf("C;%d");
				}
				else if (i == 3){
					printf("D;%d");
				}
			}
		}
	}
	printf("\n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'memset' was not declared in this scope
    9 |         memset(data, 1, sizeof(data));
      |         ^~~~~~
a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <iostream>
  +++ |+#include <cstring>
    3 | using namespace std;
Language: C++

#include <iostream> 
using namespace std;

int main(){
	int data[4][13] = {};
	int n, m, i, j;
	char c;
	cin >> n;
	for (i = 0; i<n; i++){
		cin >> c >> m;
		
		if (c == 'S'){ data [0][m] = 99; }
		else if (c == 'H'){ data[1][m] = 99; }
		else if (c == 'C'){ data[2][m] = 99; }
		else if (c == 'D'){ data[3][m] = 99; }
	}
	for (i = 0; i < 4; i++){
		for (j = 1; j < 14; j++){
			if (data[i][j] != 99){
				if (i == 0){ cout << "S" <<" "<< j << endl; }
				else if (i == 1){
					cout << "H" <<" "<< j << endl;
				}
				else if (i == 2){
					cout << "C" <<" "<< j << endl;
				}
				else if (i == 3){
					cout << "D" <<" "<< j << endl;
				}
			}
		}
	}
	return 0;

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

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

int main(void)
{		
	int n;
	int trump[4][13] = {0};
	cin >> n;
	for (int i = 0; i < n; i++) {
		char mark;
		int mark_n;
		cin >> mark;
		if (mark == 'S') mark_n = 0;
		else if (mark == 'H') mark_n = 1;
		else if (mark == 'C') mark_n = 2;
		else if (mark == 'D') mark_n = 3;
		
		int rank;
		cin >> rank;
		trump[mark_n][rank - 1] = 1;
	}
	
	char marks[4] = {'S', 'H', 'C', 'D'};
	for (int j = 0; j < 4; j++) {
		for (int k = 0; k < 13; k++) {
			if (trump[j][k] == 0) {
				cout << marks[j] << " " << k + 1 << endl;
			}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:2: error: expected '}' at end of input
   31 | }
      |  ^
a.cc:25:37: note: to match this '{'
   25 |         for (int j = 0; j < 4; j++) {
      |                                     ^
a.cc:31:2: error: expected '}' at end of input
   31 | }
      |  ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include<cstdio>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:25:10: error: expected ';' before 'if'
   25 |         s//printf("a[%d]=%d\n",i,a[i]);
      |          ^
      |          ;
   26 |         if(c[i]=='S'){
      |         ~~
a.cc:28:10: error: 'else' without a previous 'if'
   28 |         }else if(c[i]=='H'){
      |          ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |                 if(mark == "S")cards[1][rank]=1;
      |                    ~~~~~^~~~~~
a.cc:12:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |                 else if(mark == "H")cards[1][rank]=1;
      |                         ~~~~~^~~~~~
a.cc:13:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |                 else if(mark == "C")cards[1][rank]=1;
      |                         ~~~~~^~~~~~
a.cc:14:32: error: expected primary-expression before '=' token
   14 |                 else if(mark = ="D")cards[1][rank]=1;
      |                                ^
Language: C++

#include <iostream>
#include <vector>
using namespace std;
#define B

#ifdef B
#define _MAX 52
int main(void)
{
	int n;
	int dis;
	bool arr[_MAX];
	cin >> n;
	vector<int> arr(_MAX);
	for (size_t i = 0; i < n; i++)
	{
		char m;
		int num;
		cin >> m >> num;
		switch (m)
		{
		default:
			break;
		case 'S':
			num += 0;
			break;
		case 'H':
			num += 13;
			break;
		case 'C':
			num += 26;
			break;
		case 'D':
			num += 36;
			break;
		}

		arr[num--] = true;

	}
	for (size_t i = 0; i < _MAX; i++)
	{
		if (!arr[i]) {
			switch (i / 13)
			{
			default:
				break;
			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;
}

#endif


#ifdef A

int main(void)
{
	int n;
	cin >> n;
	vector<int> arr(n);
	for (auto &a : arr)
	{
		cin >> a;
	}
	for (int i = n - 1; i >= 0; i--)
	{
		cout <<arr[i] ;
		if (i != 0)
			cout << " ";
	}
	cout << endl;
	return 0;
}
#endif // A

Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: conflicting declaration 'std::vector<int> arr'
   14 |         vector<int> arr(_MAX);
      |                     ^~~
a.cc:12:14: note: previous declaration as 'bool arr [52]'
   12 |         bool arr[_MAX];
      |              ^~~
Language: C++

import java.io.*;
class Main{
public static void main(String[] args)throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String str=br.readLine();
int n=Integer.parseInt(str);
int[] Scard=new int[13];
int[] Hcard=new int[13];
int[] Ccard=new int[13];
int[] Dcard=new int[13];
for(int i=0; i<n; i++){
String str2=br.readLine();
String[] card=str2.split(" ");
switch(card[0]){
case "S": Scard=numCheck(card[1],Scard);
          break;
case "H": Hcard=numCheck(card[1],Hcard);
          break;
case "C": Ccard=numCheck(card[1],Ccard);
          break;
case "D": Dcard=numCheck(card[1],Dcard);
          break;
default: break;
}
}
cardPrint(Scard,"S");
cardPrint(Hcard,"H");
cardPrint(Ccard,"C");
cardPrint(Dcard,"D");
System.out.println();
br.close();
}
static int[] numCheck(String num,int[] arr2){
int c=Integer.parseInt(num);
arr2[c]=1;
return arr2;
}
static void cardPrint(int[] tramp, String suit){
for(int j=0; j<13; j++){
if(tramp[j]==0)  System.out.println(suit+" "+j);
}
}
} 

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:7: error: expected ':' before 'static'
    3 | public static void main(String[] args)throws IOException{
      |       ^~~~~~~
      |       :
a.cc:3:25: error: 'String' has not been declared
    3 | public static void main(String[] args)throws IOException{
      |                         ^~~~~~
a.cc:3:34: error: expected ',' or '...' before 'args'
    3 | public static void main(String[] args)throws IOException{
      |                                  ^~~~
a.cc:3:38: error: expected ';' at end of member declaration
    3 | public static void main(String[] args)throws IOException{
      |                                      ^
      |                                       ;
a.cc:3:39: error: 'throws' does not name a type
    3 | public static void main(String[] args)throws IOException{
      |                                       ^~~~~~
a.cc:33:11: error: expected unqualified-id before '[' token
   33 | static int[] numCheck(String num,int[] arr2){
      |           ^
a.cc:38:29: error: expected ',' or '...' before 'tramp'
   38 | static void cardPrint(int[] tramp, String suit){
      |                             ^~~~~
a.cc:43:2: error: expected ';' after class definition
   43 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::cardPrint(int*)':
a.cc:40:4: error: 'tramp' was not declared in this scope
   40 | if(tramp[j]==0)  System.out.println(suit+" "+j);
      |    ^~~~~
a.cc:40:18: error: 'System' was not declared in this scope
   40 | if(tramp[j]==0)  System.out.println(suit+" "+j);
      |                  ^~~~~~
a.cc:40:37: error: 'suit' was not declared in this scope
   40 | if(tramp[j]==0)  System.out.println(suit+" "+j);
      |                                     ^~~~
Language: C++

#include <iostream>
using namespace std;

const char *suits = "SHCD";

int c2i(char c)
{
    int i = 0;
    for(const char *s = suits; *s != 0; s++, i++)
    {
        if(*s == c)
        {
            return i;
        }
    }
    return -1;
}

const char i2c(int i)
{
    return suits[i];
}

int main()
{
    const int SUIT_SIZE = 4;
    const int RANK_SIZE = 14;
    bool cards[SUIT_SIZE][RANK_SIZE];

    char s;
    int c, n;

    memset(cards, 0, sizeof(cards));

    cin >> n;

    for(int i = 0; i < n; i++)
    {
        cin >> s >> c;
        cards[c2i(s)][c] = true;
    }

    for(int i = 0; i < SUIT_SIZE; i++)
    {
        for(int j = 1; j < RANK_SIZE; j++)
        {
            if(cards[i][j] == false)
                cout << i2c(i)  << " " << j << endl;
        }
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:5: error: 'memset' was not declared in this scope
   33 |     memset(cards, 0, sizeof(cards));
      |     ^~~~~~
a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
Language: C++

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

const char *suits = "SHCD";

int c2i(char c)
{
    int i = 0;
    for(const char *s = suits; *s != 0; s++, i++)
    {
        if(*s == c)
        {
            return i;
        }
    }
    return -1;
}

const char i2c(int i)
{
    return suits[i];
}

int main()
{
    const int SUIT_SIZE = 4;
    const int RANK_SIZE = 14;
    bool cards[SUIT_SIZE][RANK_SIZE];

    char s;
    int c, n;

    memset(cards, 0, sizeof(cards));

    cin >> n;

    for(int i = 0; i < n; i++)
    {
        cin >> s >> c;
        cards[c2i(s)][c] = true;
    }

    for(int i = 0; i < SUIT_SIZE; i++)
    {
        for(int j = 1; j < RANK_SIZE; j++)
        {
            if(cards[i][j] == false)
                cout << i2c(i)  << " " << j << endl;
        }
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:5: error: 'memset' was not declared in this scope
   34 |     memset(cards, 0, sizeof(cards));
      |     ^~~~~~
a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | #include <string>
Language: C++

#include <iostream>
using namespace std;

int main(){
 int n,x,i,j;
 char s;
 int cards[4][13]=0;

 cin >> n;
 for(i=0;i<n;i++){
  cin >> s >> x;
  switch(s){
   case 'S' : cards[0][x-1]=1;
   case 'H' : cards[1][x-1]=1;
   case 'C' : cards[2][x-1]=1;
   case 'D' : cards[3][x-1]=1;
  }
 }

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

 return 0;
}

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

#include<stdio.h>

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

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: array must be initialized with a brace-enclosed initializer
    5 |   int card[4][13]=0;
      |                   ^
a.cc:11:12: error: conversion from 'const char*' to 'int' in a converted constant expression
   11 |       case "S":card[0][x-1]=x;break;
      |            ^~~
a.cc:11:12: error: could not convert '"S"' from 'const char [2]' to 'int'
   11 |       case "S":card[0][x-1]=x;break;
      |            ^~~
      |            |
      |            const char [2]
a.cc:12:12: error: conversion from 'const char*' to 'int' in a converted constant expression
   12 |       case "H":card[1][x-1]=x;break;
      |            ^~~
a.cc:12:12: error: could not convert '"H"' from 'const char [2]' to 'int'
   12 |       case "H":card[1][x-1]=x;break;
      |            ^~~
      |            |
      |            const char [2]
a.cc:13:12: error: conversion from 'const char*' to 'int' in a converted constant expression
   13 |       case "C":card[2][x-1]=x;break;
      |            ^~~
a.cc:13:12: error: could not convert '"C"' from 'const char [2]' to 'int'
   13 |       case "C":card[2][x-1]=x;break;
      |            ^~~
      |            |
      |            const char [2]
a.cc:14:12: error: conversion from 'const char*' to 'int' in a converted constant expression
   14 |       case "D":card[3][x-1]=x;break;
      |            ^~~
a.cc:14:12: error: could not convert '"D"' from 'const char [2]' to 'int'
   14 |       case "D":card[3][x-1]=x;break;
      |            ^~~
      |            |
      |            const char [2]
a.cc:18:9: error: 'j' was not declared in this scope
   18 |     for(j=0;j<13;j++){
      |         ^
Language: C++

#include <iostream>
int _tmain(int argc, _TCHAR* argv[])
{
	int n;
	scanf("%d",&n);
	printf("%d\n",52-n);
#include <iostream>
int _tmain(int argc, _TCHAR* argv[])
{
	int n;
	scanf("%d",&n);
	printf("%d\n",52-n);

	return 0;
}


	return 0;
}

Compiler output:
a.cc:2:22: error: '_TCHAR' has not been declared
    2 | int _tmain(int argc, _TCHAR* argv[])
      |                      ^~~~~~
a.cc: In function 'int _tmain(int, int**)':
a.cc:8:22: error: '_TCHAR' has not been declared
    8 | int _tmain(int argc, _TCHAR* argv[])
      |                      ^~~~~~
a.cc:9:1: error: a function-definition is not allowed here before '{' token
    9 | {
      | ^
Language: C++

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

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

  scanf("%d",&n);

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

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

  return 0;
}

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