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

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

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


		cin >> total;

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

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

				}

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

				}

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

				}

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

				}
			}
		}

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

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

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

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

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

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

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


				}


			}

		}

	return 0;
}


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

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

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


		cin >> total;

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

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

				}

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

				}

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

				}

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

				}
			}
		}

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

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

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

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

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

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

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


				}


			}

		}

	return 0;
}


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

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

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


		cin >> total;

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

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

				}

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

				}

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

				}

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

				}
			}
		}

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

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

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

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

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

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

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


				}


			}

		}

	return 0;
}


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

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

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


		cin >> total;

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

				if (ch == 'S')
				{
					card[0][num[i]] = true;

				}

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

				}

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

				}

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

				}
			}
		}

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

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

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

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

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

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

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


				}


			}

		}

	return 0;
}


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

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

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


		cin >> total;

		//入力
		for (i = 0; i < total; i++)
		{
				cin >> ch >> num[i];
			

				if (ch == 'S')
				{
					card[0][num[i]] = true;

				}

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

				}

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

				}

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

				}
			}
		

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

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

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

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

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

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

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


				}


			}

		}

	return 0;
}


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

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

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


		cin >> total;

		//入力
		for (i = 0; i < total; i++)
		{
				cin >> ch >> num[i];
			

				if (ch == 'S')
				{
					card[0][num[i]] = true;

				}

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

				}

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

				}

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

				}
			}
		

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

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

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

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

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

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

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


				}


			}

		}

	return 0;
}


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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected unqualified-id before ',' token
    5 |     int ,x,a[4][13]={0};
      |         ^
a.cc:7:10: error: 'n' was not declared in this scope
    7 |     cin>>n;
      |          ^
a.cc:16:29: error: expected ')' before ';' token
   16 |         for(int j=0;j<13;j++;){
      |            ~                ^
      |                             )
a.cc:16:30: error: expected primary-expression before ')' token
   16 |         for(int j=0;j<13;j++;){
      |                              ^
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:16:29: error: expected ')' before ';' token
   16 |         for(int j=0;j<13;j++;){
      |            ~                ^
      |                             )
a.cc:16:30: error: expected primary-expression before ')' token
   16 |         for(int j=0;j<13;j++;){
      |                              ^
Language: C++

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

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



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

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

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



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

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

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




Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: 'i' was not declared in this scope
   11 |         for (int r = 1; i <= 13; i++)
      |                         ^
a.cc:23:25: error: 'i' was not declared in this scope
   23 |         for (int r = 1; i <= 13; i++){
      |                         ^
Language: C++

nclude <stdio.h>

int main()
{
int a[4][13]={0};//これで全てゼロクリアされます
int i, j, k, x, n;
char m;

scanf("%d", &n);

for(k = 0; k < n; k++){
    scanf(" %c%d", &m, &x);//先頭にスペースを入れておくと、スペースや改行をパスできる
    if(m == 'S')
        a[0][x - 1] = 1;
    else if(m == 'H')
        a[1][x - 1] = 1;
    else if(m == 'C')
        a[2][x - 1] = 1;
    else if(m == 'D')
        a[3][x - 1] = 1;
}
printf("\n");

for(i = 0; i < 4; i++){
    for(j = 0; j < 13; j++){
        if(a[i][j] == 0){
            if(i == 0)  
            printf("S %d\n", j + 1);
            else if(i == 1)
            printf("H %d\n", j + 1);
            else if(i == 2)
            printf("C %d\n", j + 1);
            else if(i == 3)
            printf("D %d\n", j + 1);
        }
    }
}
return 0;
}


Compiler output:
a.cc:1:1: error: 'nclude' does not name a type
    1 | nclude <stdio.h>
      | ^~~~~~
Language: C++

#include <iostream>
using namespace std;

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


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

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:27:19: error: invalid types 'int[int]' for array subscript
   27 |             card[3[a]==1;
      |                   ^
a.cc:27:25: error: expected ']' before ';' token
   27 |             card[3[a]==1;
      |                         ^
      |                         ]
Language: C++

#include<iostream>
using namespace std;
int main(){
    bool c[4][14];
    int n, r;
    char s;
    for(int i=0;i<4;i++){
        for(int j=1;j<=13;j++){
            c[i][j]=0;
        }
    }
    cin>>n;
    for(int i=0;i<n;i++){
        cin>>s>>r;
        if(s="S") c[0][r]=1;
        if(s="H") c[1][r]=1;
        if(s="C") c[2][r]=1;
        if(s="D") c[3][r]=1;
    }
    for(int i=0;i<4;i++){
        for(int j=1;j<=13;j++){
            if(c[i][j]=1){
                if(s="S")cout<<"S"<<j<<endl;
                if(s="H")cout<<"H"<<j<<endl;
                if(s="C")cout<<"C"<<j<<endl;
                if(s="D")cout<<"D"<<j<<endl;
            }
            
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   15 |         if(s="S") c[0][r]=1;
      |              ^~~
      |              |
      |              const char*
a.cc:16:14: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   16 |         if(s="H") c[1][r]=1;
      |              ^~~
      |              |
      |              const char*
a.cc:17:14: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   17 |         if(s="C") c[2][r]=1;
      |              ^~~
      |              |
      |              const char*
a.cc:18:14: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   18 |         if(s="D") c[3][r]=1;
      |              ^~~
      |              |
      |              const char*
a.cc:23:22: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   23 |                 if(s="S")cout<<"S"<<j<<endl;
      |                      ^~~
      |                      |
      |                      const char*
a.cc:24:22: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   24 |                 if(s="H")cout<<"H"<<j<<endl;
      |                      ^~~
      |                      |
      |                      const char*
a.cc:25:22: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   25 |                 if(s="C")cout<<"C"<<j<<endl;
      |                      ^~~
      |                      |
      |                      const char*
a.cc:26:22: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   26 |                 if(s="D")cout<<"D"<<j<<endl;
      |                      ^~~
      |                      |
      |                      const char*
Language: C++

#include<iostream>
using namespace std;
int main(){
    bool c[4][14];
    int n, r;
    char s;
    for(int i=0;i<4;i++){
        for(int j=1;j<=13;j++){
            c[i][j]=0;
        }
    }
    cin>>n;
    for(int i=0;i<n;i++){
        cin>>s>>r;
        if(s=="S") c[0][r]=1;
        if(s=="H") c[1][r]=1;
        if(s=="C") c[2][r]=1;
        if(s=="D") c[3][r]=1;
    }
    for(int i=0;i<4;i++){
        for(int j=1;j<=13;j++){
            if(c[i][j]=1){
                if(s="S")cout<<"S"<<j<<endl;
                if(s="H")cout<<"H"<<j<<endl;
                if(s="C")cout<<"C"<<j<<endl;
                if(s="D")cout<<"D"<<j<<endl;
            }
            
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |         if(s=="S") c[0][r]=1;
      |            ~^~~~~
a.cc:16:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |         if(s=="H") c[1][r]=1;
      |            ~^~~~~
a.cc:17:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |         if(s=="C") c[2][r]=1;
      |            ~^~~~~
a.cc:18:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |         if(s=="D") c[3][r]=1;
      |            ~^~~~~
a.cc:23:22: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   23 |                 if(s="S")cout<<"S"<<j<<endl;
      |                      ^~~
      |                      |
      |                      const char*
a.cc:24:22: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   24 |                 if(s="H")cout<<"H"<<j<<endl;
      |                      ^~~
      |                      |
      |                      const char*
a.cc:25:22: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   25 |                 if(s="C")cout<<"C"<<j<<endl;
      |                      ^~~
      |                      |
      |                      const char*
a.cc:26:22: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   26 |                 if(s="D")cout<<"D"<<j<<endl;
      |                      ^~~
      |                      |
      |                      const char*
Language: C++

#include<iostream>
using namespace std;
int main(){
    bool c[4][14];
    int n, r;
    char s;
    for(int i=0;i<4;i++){
        for(int j=1;j<=13;j++){
            c[i][j]=0;
        }
    }
    cin>>n;
    for(int i=0;i<n;i++){
        cin>>s>>r;
        if(s=="S") c[0][r]=1;
        if(s=="H") c[1][r]=1;
        if(s=="C") c[2][r]=1;
        if(s=="D") c[3][r]=1;
    }
    for(int i=0;i<4;i++){
        for(int j=1;j<=13;j++){
            if(c[i][j]=1){
                if(s=="S")cout<<"S"<<j<<endl;
                if(s=="H")cout<<"H"<<j<<endl;
                if(s=="C")cout<<"C"<<j<<endl;
                if(s=="D")cout<<"D"<<j<<endl;
            }
            
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |         if(s=="S") c[0][r]=1;
      |            ~^~~~~
a.cc:16:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |         if(s=="H") c[1][r]=1;
      |            ~^~~~~
a.cc:17:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |         if(s=="C") c[2][r]=1;
      |            ~^~~~~
a.cc:18:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |         if(s=="D") c[3][r]=1;
      |            ~^~~~~
a.cc:23:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 |                 if(s=="S")cout<<"S"<<j<<endl;
      |                    ~^~~~~
a.cc:24:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |                 if(s=="H")cout<<"H"<<j<<endl;
      |                    ~^~~~~
a.cc:25:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   25 |                 if(s=="C")cout<<"C"<<j<<endl;
      |                    ~^~~~~
a.cc:26:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   26 |                 if(s=="D")cout<<"D"<<j<<endl;
      |                    ~^~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |         if(suit=="S") c[0][rank]=1;
      |            ~~~~^~~~~
a.cc:16:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |         if(suit=="H") c[1][rank]=1;
      |            ~~~~^~~~~
a.cc:17:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |         if(suit=="C") c[2][rank]=1;
      |            ~~~~^~~~~
a.cc:18:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |         if(suit=="D") c[3][rank]=1;
      |            ~~~~^~~~~
a.cc:23:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 |                 if(suit=="S")cout<<"S"<<j<<endl;
      |                    ~~~~^~~~~
a.cc:24:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |                 if(suit=="H")cout<<"H"<<j<<endl;
      |                    ~~~~^~~~~
a.cc:25:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   25 |                 if(suit=="C")cout<<"C"<<j<<endl;
      |                    ~~~~^~~~~
a.cc:26:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   26 |                 if(suit=="D")cout<<"D"<<j<<endl;
      |                    ~~~~^~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |         if(suit=="S") c[0][rank]=1;
      |            ~~~~^~~~~
a.cc:16:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |         if(suit=="H") c[1][rank]=1;
      |            ~~~~^~~~~
a.cc:17:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |         if(suit=="C") c[2][rank]=1;
      |            ~~~~^~~~~
a.cc:18:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   18 |         if(suit=="D") c[3][rank]=1;
      |            ~~~~^~~~~
a.cc:23:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   23 |                 if(suit=="S")cout<<"S"<<j<<endl;
      |                    ~~~~^~~~~
a.cc:24:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |                 if(suit=="H")cout<<"H"<<j<<endl;
      |                    ~~~~^~~~~
a.cc:25:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   25 |                 if(suit=="C")cout<<"C"<<j<<endl;
      |                    ~~~~^~~~~
a.cc:26:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   26 |                 if(suit=="D")cout<<"D"<<j<<endl;
      |                    ~~~~^~~~~
Language: C++

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


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

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


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

#include<iostream>
using namespace std;

int main(){
    bool cards[4][14];
    int n, rank;
    char suit;
    for ( int i = 0; i < 4; i++ ){
        for ( int j = 1; j <= 13; j++){
            cards[i][j] = 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 i = 0; i < 4; i++ ){
        for ( int j = 1;j <= 13; j++ ){
            if ( cards[i][j] ) continue;
            if ( i == 0) suit = "S";
            if ( i == 1) suit = "H";
            if ( i == 2) suit = "C";
            if ( i == 3) suit = "D";
            cout << suit << " " << j << endl;
        }
    }
    return 0;
}


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

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'cards' was not declared in this scope
   10 |             cards[i][j] = 0;
      |             ^~~~~
a.cc:16:25: error: 'cards' was not declared in this scope
   16 |         if ( s == 'S' ) cards[0][r] = 1;
      |                         ^~~~~
a.cc:17:25: error: 'cards' was not declared in this scope
   17 |         if ( s == 'H' ) cards[1][r] = 1;
      |                         ^~~~~
a.cc:18:25: error: 'cards' was not declared in this scope
   18 |         if ( s == 'C' ) cards[2][r] = 1;
      |                         ^~~~~
a.cc:19:25: error: 'cards' was not declared in this scope
   19 |         if ( s == 'D' ) cards[3][r] = 1;
      |                         ^~~~~
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:23:18: error: 'c' was not declared in this scope
   23 |             if ( c[i][j] ) continue;
      |                  ^
Language: C++

#include<iostream>
using namespace std;

int main(){
    bool cards[4][14];
    int n,rank;
    char suit;

    
    for(int i=0; i<4; i++)
        for(int j=1; j<=13; j++)
            cards[i][j]=0;
    
    cin>>n;
    for(int k=0; k<n; k++){
        cin>>suit>>rank;
        if (mark=='S') cards[0][rank]=1;
        if (mark=='H') cards[1][rank]=1;
        if (mark=='C') cards[2][rank]=1;
        if (mark=='D') cards[3][rank]=1;
    }
    
    for(int s=0; s<4; s++){
        for(int t=1; t<=13; t++){
            if (cards[s][t]) continue;
            if (s==0) suit=='S';
            if (s==1) suit=='H';
            if (s==2) suit=='C';
            if (s==3) suit=='D';
            
            cout<<suit<<" "<<t<<endl;
        }
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: 'mark' was not declared in this scope
   17 |         if (mark=='S') cards[0][rank]=1;
      |             ^~~~
a.cc:18:13: error: 'mark' was not declared in this scope
   18 |         if (mark=='H') cards[1][rank]=1;
      |             ^~~~
a.cc:19:13: error: 'mark' was not declared in this scope
   19 |         if (mark=='C') cards[2][rank]=1;
      |             ^~~~
a.cc:20:13: error: 'mark' was not declared in this scope
   20 |         if (mark=='D') cards[3][rank]=1;
      |             ^~~~
Language: C++

#include<iostream>

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



Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   14 |     cin >> n;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:26:15: error: 'i' was not declared in this scope
   26 |         cards[i][j] = 1;
      |               ^
a.cc:29:22: error: 'S' was not declared in this scope
   29 |     char marks[4] = {S, H, C, D}
      |                      ^
a.cc:29:25: error: 'H' was not declared in this scope
   29 |     char marks[4] = {S, H, C, D}
      |                         ^
a.cc:29:28: error: 'C' was not declared in this scope
   29 |     char marks[4] = {S, H, C, D}
      |                            ^
a.cc:29:31: error: 'D' was not declared in this scope
   29 |     char marks[4] = {S, H, C, D}
      |                               ^
a.cc:31:18: error: 'i' was not declared in this scope
   31 |     for(int i=0; i<4; i+=1){
      |                  ^
Language: C++

#include<iostream>

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



Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   14 |     cin >> n;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:26:15: error: 'i' was not declared in this scope
   26 |         cards[i][j] = 1;
      |               ^
a.cc:31:5: error: expected ',' or ';' before 'for'
   31 |     for(int i=0; i<4; i+=1){
      |     ^~~
a.cc:31:18: error: 'i' was not declared in this scope
   31 |     for(int i=0; i<4; i+=1){
      |                  ^
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n ,x;
    int card[4][13]=0
    char mark
    for(int i=1;i<=n,i++){
        cin>>mark>>x;
        if(mark=="S"){
            card[0][i]=true;
        }
        else if(mark=="H"){
            card[1][i]=true;
        }
        else if(mark=="C"){
            card[2][i]=true;
        }
        else if(mark=="D"){
            card[3][i]=true;
        }
    }
    for(int i=1;i<=4;i++){
        for(int j=1;j<=13,j++){
            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:5:21: error: array must be initialized with a brace-enclosed initializer
    5 |     int card[4][13]=0
      |                     ^
a.cc:7:17: error: 'i' was not declared in this scope
    7 |     for(int i=1;i<=n,i++){
      |                 ^
a.cc:23:30: error: expected ';' before ')' token
   23 |         for(int j=1;j<=13,j++){
      |                              ^
      |                              ;
Language: C++

#include<iostream>
using namespace std;
int main(){
    int n ,x;
    int card[4][13]
    char mark
    for(int i=1;i<=4;i++){
        for(int j=1;j<=13;j++){
            card[i][j]=false;
        }
    }
    
    for(int i=1;i<=n,i++){
        cin>>mark>>x;
            if(mark=="S"){
                card[0][i]=true;
            }
            else if(mark=="H"){
                card[1][i]=true;
            }
            else if(mark=="C"){
                card[2][i]=true;
            }
            else if(mark=="D"){
                card[3][i]=true;
            }
    }
    for(int i=1;i<=4;i++){
        for(int j=1;j<=13,j++){
            if(card[i][j]==false){
                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:6:5: error: expected initializer before 'char'
    6 |     char mark
      |     ^~~~
a.cc:7:17: error: 'i' was not declared in this scope
    7 |     for(int i=1;i<=4;i++){
      |                 ^
a.cc:13:25: error: expected ';' before ')' token
   13 |     for(int i=1;i<=n,i++){
      |                         ^
      |                         ;
a.cc:14:14: error: 'mark' was not declared in this scope
   14 |         cin>>mark>>x;
      |              ^~~~
a.cc:16:17: error: 'card' was not declared in this scope
   16 |                 card[0][i]=true;
      |                 ^~~~
a.cc:19:17: error: 'card' was not declared in this scope
   19 |                 card[1][i]=true;
      |                 ^~~~
a.cc:22:17: error: 'card' was not declared in this scope
   22 |                 card[2][i]=true;
      |                 ^~~~
a.cc:25:17: error: 'card' was not declared in this scope
   25 |                 card[3][i]=true;
      |                 ^~~~
a.cc:29:30: error: expected ';' before ')' token
   29 |         for(int j=1;j<=13,j++){
      |                              ^
      |                              ;
a.cc:30:16: error: 'card' was not declared in this scope
   30 |             if(card[i][j]==false){
      |                ^~~~