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

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

int main(void)
{
	int n, tmp;

	cin >>n;
	vector<int> a(n);

	for (int i=0; i<a.size(); ++i) cin >> a[i];
	reverse(a.begin(), a.end());
	for (int i=0; i<n; ++i) {
		cout<< a[i];
		i != n-1 ? cout << " ": cout << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'reverse' was not declared in this scope
   13 |         reverse(a.begin(), a.end());
      |         ^~~~~~~
Language: C++

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

int main(void)
{
	int n;

	cin >>n;
	vector<int> a(n);

	for (int i=0; i<n; ++i) cin >> a[i];
	reverse(a.begin(), a.end());
	for (int i=0; i<n; ++i) {
		cout<< a[i];
		i != n-1 ? cout << " ": cout << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'reverse' was not declared in this scope
   13 |         reverse(a.begin(), a.end());
      |         ^~~~~~~
Language: C++

include<cstdio>

int main(){
   int i,k,a;
   scanf("%d",&k);
  int hako[k];
  for ( i = 0; i < k; i++ ){
    scanf("%d",&a);
    if ( a ) printf(" ");
    printf("%d", hako[a]);
}
printf("\n");
}

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

#include<iostream>
using namespace std;

int main(){
  int n;
  cin >> n;
  int a[100];
  for (int i=0; i<n; i++){
    cin >> a[i];
  }
  for(int i=0; i<n; i++){
    if (i!=0){cout << " ";}
    cout << a[n-i-l];
  }
  cout << "\n";

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:19: error: 'l' was not declared in this scope
   13 |     cout << a[n-i-l];
      |                   ^
Language: C++

#include<iostream>
#define PI 3.141592653589
using namespace std;

int main(){
  int n;
  cin >> n;
  int a[100];
  for(int i = 0; i < n; i++){
    cin>>a[i];
  }

  for(int i=0; i<n; i++){
    if (i!=0){cout << " ";}
    cout << a[n-i-l];
  }
  cout << "\n";
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:19: error: 'l' was not declared in this scope
   15 |     cout << a[n-i-l];
      |                   ^
Language: C++

#include<iostream>
using namespace srd;l

int main(){
	int i;
	for (i=0; i<n i++){
	if(i)printf(" ");
	printf(%d), a[i];
}
printf("\n");
retrun 0;
}

Compiler output:
a.cc:2:17: error: 'srd' is not a namespace-name
    2 | using namespace srd;l
      |                 ^~~
a.cc:2:21: error: 'l' does not name a type
    2 | using namespace srd;l
      |                     ^
Language: C++

#include<iostream>
using namespace std;

int main(){
	int i;
	for (i=0; i<n i++){
	if(i)printf(" ");
	printf(%d), a[i];
}
printf("\n");
retrun 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:21: error: 'n' was not declared in this scope
    6 |         for (i=0; i<n i++){
      |                     ^
a.cc:6:22: error: expected ';' before 'i'
    6 |         for (i=0; i<n i++){
      |                      ^~
      |                      ;
a.cc:8:16: error: expected primary-expression before '%' token
    8 |         printf(%d), a[i];
      |                ^
a.cc:8:17: error: 'd' was not declared in this scope
    8 |         printf(%d), a[i];
      |                 ^
a.cc:8:21: error: 'a' was not declared in this scope
    8 |         printf(%d), a[i];
      |                     ^
a.cc:11:1: error: 'retrun' was not declared in this scope
   11 | retrun 0;
      | ^~~~~~
Language: C++

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

int main(){
	int i;
	for (i=0; i<n i++){
	if(i)printf(" ");
	printf("%d", a[i])
}
printf("\n");
retrun 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: 'n' was not declared in this scope
    7 |         for (i=0; i<n i++){
      |                     ^
a.cc:7:22: error: expected ';' before 'i'
    7 |         for (i=0; i<n i++){
      |                      ^~
      |                      ;
a.cc:9:22: error: 'a' was not declared in this scope
    9 |         printf("%d", a[i])
      |                      ^
a.cc:12:1: error: 'retrun' was not declared in this scope
   12 | retrun 0;
      | ^~~~~~
Language: C++

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

int main(){
	int i;
	for (int i=0; i<n; i++){
	if(i)printf(" ");
	printf("%d", a[i])
}
printf("\n");
retrun 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: 'n' was not declared in this scope
    7 |         for (int i=0; i<n; i++){
      |                         ^
a.cc:9:22: error: 'a' was not declared in this scope
    9 |         printf("%d", a[i])
      |                      ^
a.cc:12:1: error: 'retrun' was not declared in this scope
   12 | retrun 0;
      | ^~~~~~
Language: C++

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

int main(){
	int i;
	for (i=0; i<n; i++){
	if(i)printf(" ");
	printf("%d", a[i]);
}
printf("\n");
retrun 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: 'n' was not declared in this scope
    7 |         for (i=0; i<n; i++){
      |                     ^
a.cc:9:22: error: 'a' was not declared in this scope
    9 |         printf("%d", a[i]);
      |                      ^
a.cc:12:1: error: 'retrun' was not declared in this scope
   12 | retrun 0;
      | ^~~~~~
Language: C++

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

int main(){
	int array[100];
	cin >> n;
	for(int i = 0; i < n;i++){
	cin >> array[i];
	}
	for(int j = 0; j < n; i++){
	cout << array[n-j-1];
	if(j!=n-1){
	printf(" ");
	}
	}
	return 0;
}

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

#include<iosteram>
int main(){
	int n;
	cin >> n;
	int a[n];
	for(int i=0;i<n;i++)
		cin >> a[i];
	for(int i=0;i<n;i++){
		cout<< a[n-i-1];
		if(i==n-1)break;
		cout<< " ";
	}
	return 0;
}

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

#include <iostream>
#include <array>
// #include <algorithm>

using namespace std;
const int MAX_N = 100;

int main() {
  int n;
  array <int, MAX_N> arr;

  cin >> n;
  for (int i = 0; i < n; ++i)
    {
      cin >> arr[i];
    }

  reverse(arr.begin(), next(arr.begin(),n-1));

  for (int i = n-1; i > 0; --i)
    {
      cout << arr[i] << " ";
    }

  cout << arr[0] <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:3: error: 'reverse' was not declared in this scope
   18 |   reverse(arr.begin(), next(arr.begin(),n-1));
      |   ^~~~~~~
Language: C++

include<iostream>
using namespace std;

int main(void){
cin >> n ;
int ar[n] ;
for(i=0;i<n;i++){
cin >> ar[i] ;
}

for(i=0;i<n;i++){
cout << ar[n-i] << "\n" ;
}

return 0 ;

}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin >> n ;
      | ^~~
a.cc:5:8: error: 'n' was not declared in this scope
    5 | cin >> n ;
      |        ^
a.cc:7:5: error: 'i' was not declared in this scope
    7 | for(i=0;i<n;i++){
      |     ^
a.cc:8:8: error: 'ar' was not declared in this scope; did you mean 'char'?
    8 | cin >> ar[i] ;
      |        ^~
      |        char
a.cc:11:5: error: 'i' was not declared in this scope
   11 | for(i=0;i<n;i++){
      |     ^
a.cc:12:1: error: 'cout' was not declared in this scope
   12 | cout << ar[n-i] << "\n" ;
      | ^~~~
a.cc:12:9: error: 'ar' was not declared in this scope; did you mean 'char'?
   12 | cout << ar[n-i] << "\n" ;
      |         ^~
      |         char
Language: C++

#include<stdio.h>

int main(void)
{
     int n;
     scanf("%d", &n);
     int x[n];
     for(int i = 0; i <10, ++i){
         scanf("%d", &x[i]);
     }
     for(int i = 9; i >= 0, --i){
         printf("%d", x[i]);
     }
     return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: expected ';' before ')' token
    8 |      for(int i = 0; i <10, ++i){
      |                               ^
      |                               ;
a.cc:11:32: error: expected ';' before ')' token
   11 |      for(int i = 9; i >= 0, --i){
      |                                ^
      |                                ;
Language: C++

#include<stdio.h>
 
int main(void)
{
     int n;
     scanf("%d", &n);
     int x[n];
     for(int i = 0; i <10, ++i){
         scanf("%d", &x[i]);
     }
     for(int i = 9; i >= 0, --i){
         printf("%d", x[i]);
     }
     return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: expected ';' before ')' token
    8 |      for(int i = 0; i <10, ++i){
      |                               ^
      |                               ;
a.cc:11:32: error: expected ';' before ')' token
   11 |      for(int i = 9; i >= 0, --i){
      |                                ^
      |                                ;
Language: Java

import sys

def make_all_cards():
    mark = ['S', 'H', 'C', 'D']
    cards = []
    
    for i in mark:
        for n in range(1, 14):
            cards.append(i + ' ' + str(n))

    return cards

if __name__ == '__main__':
    all_cards = make_all_cards()
    n = int(sys.stdin.readline().strip())

    for _ in range(n):
        card = sys.stdin.readline().strip()
        all_cards.remove(card)

    for i in all_cards:
        print(i)


Compiler output:
Main.java:1: error: '.' expected
import sys
          ^
Main.java:3: error: ';' expected
def make_all_cards():
   ^
Main.java:13: error: unclosed character literal
if __name__ == '__main__':
               ^
Main.java:13: error: unclosed character literal
if __name__ == '__main__':
                        ^
4 errors
Language: Java

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int total = sc.nextInt();
		List<Integer> spade = new ArrayList<Integer>();
		List<Integer> heart = new ArrayList<Integer>();
		List<Integer> club = new ArrayList<Integer>();
		List<Integer> diamond = new ArrayList<Integer>();

		for(int i=0;i<total;i++) {
			String symbol = sc.nextLine();
			int number = sc.nextInt();

			if(symbol.equals("S")) {
				spade.add(number);
			}else if(symbol.equals("H")) {
				heart.add(number);
			}else if(symbol.equals("C")) {
				club.add(number);
			}else if(symbol.equals("D")) {
				diamond.add(number);
			}
		}

		for(int i=1;i<=13;i++) {
			if(!(spade.contains(i))) {
				System.out.println("S "+i);
			}
		}
		for(int i=1;i<=13;i++) {
			if(!(heart.contains(i))) {
				System.out.println("H "+i);
			}
		}
		for(int i=1;i<=13;i++) {
			if(!(club.contains(i))) {
				System.out.println("C "+i);
			}
		}
		}
	}
}



Compiler output:
Main.java:48: error: class, interface, enum, or record expected
}
^
1 error
Language: Java




import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;




public class Main2 {

    public static void main(String[] args) {
       
        Scanner sc = new Scanner(System.in);
        
        List<Index> pie = new ArrayList<>();
        
        for(int i=1; i<=13; i++) pie.add(new Index("S",i));
        for(int i=1; i<=13; i++) pie.add(new Index("H",i));
        for(int i=1; i<=13; i++) pie.add(new Index("C",i));
        for(int i=1; i<=13; i++) pie.add(new Index("D",i));
        
        int n = sc.nextInt();
        
        
        for(int j=0; j<n; j++){
            String mo = sc.next();
            int bu = sc.nextInt();
         for(Index ewq : pie){
          if(ewq.x.equals( mo )  && ewq.y == bu){
                 ewq.exist = true;
          }}}
        for(Index ewq : pie){
            if(!ewq.exist){
                System.out.println(ewq.x +" "+ ewq.y);
            }
        }
    }
    
    public static class Index {
        
         boolean exist;
         String x;
         int y;
         
         Index(String x, int y){
         this.x = x;
         this.y = y;
         exist = false;
        
        }
    }
}



        
    

       

   




Compiler output:
Main.java:11: error: class Main2 is public, should be declared in a file named Main2.java
public class Main2 {
       ^
1 error
Language: Java

import java.util.Scanner;
class Main
{
public static void main(String[] args)
 {
 Scanner sc = new Scanner(System.in);
  int  n  = sc.nextInt();
  int  i;
  
  for(i=0; i<n; i++){
   a[i] = sc.nextInt();
   }
   
  //for(i=0; i<n; i++){
   
   




Compiler output:
Main.java:12: error: reached end of file while parsing
   }
    ^
1 error
Language: Java

import java.util.Scanner;
class Main
{
public static void main(String[] args)
 {
 Scanner sc = new Scanner(System.in);
  int  n  = sc.nextInt();
  int  i;
  
  for(i=0; i<n; i++){
   a[i] = sc.nextInt();
   }
   
  //for(i=0; i<n; i++){
   
 }
}
   




Compiler output:
Main.java:11: error: cannot find symbol
   a[i] = sc.nextInt();
   ^
  symbol:   variable a
  location: class Main
1 error
Language: Java

import java.util.Scanner;
class Main
{
public static void main(String[] args)
 {
 Scanner sc = new Scanner(System.in);
  int  n  = sc.nextInt();
  int  i,j;
  boolean[][] card = new boolean[4][13];

 for(i=0;i<n;i++){
  char suit = sc.next().charAt(0);
  int num = nextInt();
   switch(suit){
   case 'S': card[0][num-1]=true;
   break;
   case 'H': card[1][num-1]=true;
   break;
   case 'C': card[2][num-1]=true;
   break;
   case 'D': card[3][num-1]=true;
   break;
   }
}
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     if(card[i][j]==false)System.out.println("SHCD"[i]+" "+(i+1));

  // if(false)System.out.println(card);
   } 
 }
}
   




Compiler output:
Main.java:32: error: reached end of file while parsing
}
 ^
1 error
Language: Java

import java.util.Scanner;
class Main
{
public static void main(String[] args)
 {
 Scanner sc = new Scanner(System.in);
  int  n  = sc.nextInt();
  int  i,j;
  boolean[][] card = new boolean[4][13];

 for(i=0;i<n;i++){
  char suit = sc.next().charAt(0);
  int num = nextInt();
   switch(suit){
   case 'S': card[0][num-1]=true;
   break;
   case 'H': card[1][num-1]=true;
   break;
   case 'C': card[2][num-1]=true;
   break;
   case 'D': card[3][num-1]=true;
   break;
   }
}
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     if(card[i][j]==false)System.out.println("SHCD"[i]+" "+(i+1));
}

} 
 }
}
   




Compiler output:
Main.java:13: error: cannot find symbol
  int num = nextInt();
            ^
  symbol:   method nextInt()
  location: class Main
Main.java:27: error: array required, but String found
     if(card[i][j]==false)System.out.println("SHCD"[i]+" "+(i+1));
                                                   ^
2 errors
Language: Java

public class Main{

	/**
	 * プログラムのエントリポイント
	 *
	 * @param args
	 */
	public static void main(String[] args) {

		// スペード
		int[] intMarkS = new int[13];

		// ハート
		int[] intMarkH = new int[13];

		// クローバー
		int[] intMarkC = new int[13];

		// ダイヤ
		int[] intMarkD = new int[13];

		// カードの数字
		int intNum = 0;

		// 1行目を読み込む
		try {
			BufferedReader insBR = new BufferedReader(new InputStreamReader(
					System.in));

			insBR.readLine();

			// 2行目以降を読み込む
			while (true) {
				String strLine = insBR.readLine();

				// 終了条件
				if (strLine.equals("")) {
					break;
				}

				// 分解する
				String[] strAry = strLine.split(" ");


				if (strAry[0].equals("S")) {
					intNum = Integer.parseInt(strAry[1]);

					intMarkS[intNum - 1] = 1;

					// ハート
				} else if (strAry[0].equals("H")) {
					intNum = Integer.parseInt(strAry[1]);

					intMarkH[intNum - 1] = 1;

					// クローバー
				} else if (strAry[0].equals("C")) {
					intNum = Integer.parseInt(strAry[1]);

					intMarkC[intNum - 1] = 1;

					// ダイヤ
				} else if (strAry[0].equals("D")) {
					intNum = Integer.parseInt(strAry[1]);

					intMarkD[intNum - 1] = 1;
				}

			}

			// 出力
			for (int i = 0; i < intMarkS.length; i++) {
				if (intMarkS[i] == 0) {
					System.out.println("S " + (i + 1));
				}
			}

			for (int i = 0; i < intMarkH.length; i++) {
				if (intMarkH[i] == 0) {
					System.out.println("H " + (i + 1));
				}
			}

			for (int i = 0; i < intMarkC.length; i++) {
				if (intMarkC[i] == 0) {
					System.out.println("C " + (i + 1));
				}
			}

			for (int i = 0; i < intMarkD.length; i++) {
				if (intMarkD[i] == 0) {
					System.out.println("D " + (i + 1));
				}
			}

		} catch (IOException e) {
			System.out.println(e);
		} catch (NumberFormatException e) {
			System.out.println("数字で入力して下さい");
		}
	}
}

Compiler output:
Main.java:27: error: cannot find symbol
			BufferedReader insBR = new BufferedReader(new InputStreamReader(
			^
  symbol:   class BufferedReader
  location: class Main
Main.java:27: error: cannot find symbol
			BufferedReader insBR = new BufferedReader(new InputStreamReader(
			                           ^
  symbol:   class BufferedReader
  location: class Main
Main.java:27: error: cannot find symbol
			BufferedReader insBR = new BufferedReader(new InputStreamReader(
			                                              ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:96: error: cannot find symbol
		} catch (IOException e) {
		         ^
  symbol:   class IOException
  location: class Main
4 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


public class Lesson6B2 {

	/**
	 * プログラムのエントリポイント
	 *
	 * @param args
	 */
	public static void main(String[] args) {

		// スペード
		int[] intMarkS = new int[13];

		// ハート
		int[] intMarkH = new int[13];

		// クローバー
		int[] intMarkC = new int[13];

		// ダイヤ
		int[] intMarkD = new int[13];

		// カードの数字
		int intNum = 0;

		// 1行目を読み込む
		try {
			BufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));

			insBR.readLine();

			// 2行目以降を読み込む
			while (true) {
				String strLine = insBR.readLine();

				// 終了条件
				if (strLine.equals("")) {
					break;
				}

				// 分解する
				String[] strAry = strLine.split(" ");


				// スペード
				if (strAry[0].equals("S")) {
					intNum = Integer.parseInt(strAry[1]);

					intMarkS[intNum - 1] = 1;

					// ハート
				} else if (strAry[0].equals("H")) {
					intNum = Integer.parseInt(strAry[1]);

					intMarkH[intNum - 1] = 1;

					// クローバー
				} else if (strAry[0].equals("C")) {
					intNum = Integer.parseInt(strAry[1]);

					intMarkC[intNum - 1] = 1;

					// ダイヤ
				} else if (strAry[0].equals("D")) {
					intNum = Integer.parseInt(strAry[1]);

					intMarkD[intNum - 1] = 1;
				}

			}

			// 出力
			for (int i = 0; i < intMarkS.length; i++) {
				if (intMarkS[i] == 0) {
					System.out.println("S " + (i + 1));
				}
			}

			for (int i = 0; i < intMarkH.length; i++) {
				if (intMarkH[i] == 0) {
					System.out.println("H " + (i + 1));
				}
			}

			for (int i = 0; i < intMarkC.length; i++) {
				if (intMarkC[i] == 0) {
					System.out.println("C " + (i + 1));
				}
			}

			for (int i = 0; i < intMarkD.length; i++) {
				if (intMarkD[i] == 0) {
					System.out.println("D " + (i + 1));
				}
			}

		} catch (IOException e) {
			System.out.println(e);
		} catch (NumberFormatException e) {
			System.out.println("数字で入力して下さい");
		}
	}
}

Compiler output:
Main.java:6: error: class Lesson6B2 is public, should be declared in a file named Lesson6B2.java
public class Lesson6B2 {
       ^
1 error
Language: Java


import java.io.*;
public class ITP1_B {
	public static void main(String[] args)throws IOException {
		BufferedReader a=new BufferedReader(new InputStreamReader(System.in));
		String n=a.readLine();
		int s=Integer.parseInt(n);
		int[] k;k=new int[53];int e=0;
		for(int z=1;z<=s;z++){
			String x=a.readLine();
			String[] i=x.split(" ");
			e=Integer.parseInt(i[1]);
			if (i[0].equals("S"))k[e]=1;
			else if(i[0].equals("H"))k[e+13]=1;
			else if(i[0].equals("C"))k[e+26]=1;
			else if(i[0].equals("D"))k[e+39]=1;
		}
		int m=52-s;int c=0;int f=0;
		for(int z=1;z<=52;z++){
			if(k[z]==1)continue;
			e=z/13;f=z-e*13;
			if(e==0)
				System.out.println("S "+f);
			else if(e==1)
				System.out.println("H "+f);
			else if(e==2)
				System.out.println("C "+f);
			else if(e==3)
				System.out.println("D "+f);
			c++;
			if(m==c)break;
		}
	}
}

Compiler output:
Main.java:3: error: class ITP1_B is public, should be declared in a file named ITP1_B.java
public class ITP1_B {
       ^
1 error
Language: Java

package helloworld;
import java.util.*;

class FindingMissingCards {
	public static void main(String args[]){
		
		//カード絵柄ごとに配列を用意し、それぞれ１から１３までを格納しておく
		ArrayList cardS = new ArrayList();
		for(int i = 0; i < 13; i++){
			cardS.add(i+1);
		}
		ArrayList cardH = new ArrayList();
		for(int i = 0; i < 13; i++){
			cardH.add(i+1);
		}
		ArrayList cardC = new ArrayList();
		for(int i = 0; i < 13; i++){
			cardC.add(i+1);
		}
		ArrayList cardD = new ArrayList();
		for(int i = 0; i < 13; i++){
			cardD.add(i+1);
		}
		
		Scanner sc = new Scanner(System.in);
		
		//カードの枚数nを受け取る
		String s1 = sc.next();
        int n = Integer.parseInt(s1);
        
        //入力されたカードの絵柄と数字を受け取り配列内の値とそれぞれ比べて、一致したものは配列から削除する
        for(int i = 0; i < n; i++){
        	String E = sc.next();
        	String snum = sc.next();
        	int num = Integer.parseInt(snum);
        	if(E.equals("S")){
        		int jc = cardS.size();
        		for(int j = 0 ; j < jc; j++){
                    if(num == (int)(cardS.get(j))){
        				cardS.remove(j);
        				jc--;
        				j--;
        			}
        		}
        	}
        	
        	else if(E.equals("H")){
        		int jc = cardH.size();
        		for(int j = 0 ; j < jc; j++){
                    if(num == (int)(cardH.get(j))){
        				cardH.remove(j);
        				jc--;
        				j--;
        			}
        		}
        	}
        	else if(E.equals("C")){
        		int jc = cardC.size();
        		for(int j = 0 ; j < jc; j++){
                    if(num == (int)(cardC.get(j))){
        				cardC.remove(j);
        				jc--;
        				j--;
        			}
        		}
        	}
        	else if(E.equals("D")){
        		int jc = cardD.size();
        		for(int j = 0 ; j < jc; j++){
                    if(num == (int)(cardD.get(j))){
        				cardD.remove(j);
        				jc--;
        				j--;
        			}
        		}
        	}
        }
        
        //足りないカードをスペード、ハート、クラブ、ダイヤ、さらに数の小さいものから順に表示していく
        for(int i = 0; i < cardS.size(); i++){
        	System.out.println("S " + cardS.get(i));
        }
        for(int i = 0; i < cardH.size(); i++){
        	System.out.println("H " + cardH.get(i));
        }
        for(int i = 0; i < cardC.size(); i++){
        	System.out.println("C " + cardC.get(i));
        }
        for(int i = 0; i < cardD.size(); i++){
        	System.out.println("D " + cardD.get(i));
        }
        
	}

}

Compiler output:
Note: Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Language: Java

import java.util.Scanner;

public class test00 {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int intNum = scan.nextInt();
		boolean[] isS = new boolean[13];
		boolean[] isH = new boolean[13];
		boolean[] isC = new boolean[13];
		boolean[] isD = new boolean[13];
		String strPic = "";
		for(int i = 0; i < intNum; i++){
			strPic = scan.next();
			if("S".equals(strPic)){
				isS[scan.nextInt()-1] = true;
			}else if("H".equals(strPic)){
				isH[scan.nextInt()-1] = true;
			}else if("C".equals(strPic)){
				isC[scan.nextInt()-1] = true;
			}else if("D".equals(strPic)){
				isD[scan.nextInt()-1] = true;
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isS[i]){
				System.out.println("S " + (i + 1));
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isH[i]){
				System.out.println("H " + (i + 1));
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isC[i]){
				System.out.println("C " + (i + 1));
			}
		}
		for(int i = 0; i < 13; i++){
			if(!isD[i]){
				System.out.println("D " + (i + 1));
			}
		}
		scan.close();
	}
}

Compiler output:
Main.java:3: error: class test00 is public, should be declared in a file named test00.java
public class test00 {
       ^
1 error
Language: Java

import java.io.*;

class Card{
 char mark;
 int num;
 boolean have = false;
 static List<Card> allCards = new ArrayList<Card>();

 Card(char mark, int num){
	this.mark = mark;
	this.num = num;
	
}
}

public class Main{
public static void main(String[] args){

 char[] marks ={'S','H','C','D'};
 
	for(char mark: marks){
		for(int i = 0; i < 12; i++){
		 Card.allCards.add(new Card(mark, i+1));
		}
	}

	try{
	 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	 int n = Integer.parseInt(br.readLine());
	 	while(true){
	  	 String[] str = br.readLine().split(" ");
		 	for(Card c : Card.allCards){
				if(c.mark != str[0].charAt(0)){
					continue;
				}
				if(c.num == Integer.parseInt(str[1])){
					c.have = true;
				}
			}
		}
	}catch(IOException e){
	 System.out.println(e);
	}

	for(Card c : Card.allCards){
		if(c.have == false){
		 System.out.println(c.mark + " " + c.num);
		}
	}
}
}

Compiler output:
Main.java:7: error: cannot find symbol
 static List<Card> allCards = new ArrayList<Card>();
        ^
  symbol:   class List
  location: class Card
Main.java:7: error: cannot find symbol
 static List<Card> allCards = new ArrayList<Card>();
                                  ^
  symbol:   class ArrayList
  location: class Card
2 errors
Language: Java

import java.util.*;
import java.io.*;

class Card{
 char mark;
 int num;
 boolean have = false;
 static List<Card> allCards = new ArrayList<Card>();

 Card(char mark, int num){
	this.mark = mark;
	this.num = num;
	
}
}

public class Main{
public static void main(String[] args){
try{
 char[] marks ={'S','H','C','D'};
 
	for(char mark: marks){
		for(int i = 0; i < 12; i++){
		 Card.allCards.add(new Card(mark, i+1));
		}
	}

	 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	 int n = Integer.parseInt(br.readLine());
	 	while(true){
	  	 String[] str = br.readLine().split(" ");
		 	for(Card c : Card.allCards){
				if(c.mark != str[0].charAt(0)){
					continue;
				}
				if(c.num == Integer.parseInt(str[1])){
					c.have = true;
				}
			}
		}
	

	for(Card c : Card.allCards){
		if(c.have == false){
		 System.out.println(c.mark + " " + c.num);
		}
	}
}catch(IOException e){
	 System.out.println(e);
	}}
}

Compiler output:
Main.java:43: error: unreachable statement
	for(Card c : Card.allCards){
	^
1 error
Language: Java

import java.util.*;
public class ITP1_6_B
{
	public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
		int n = input.nextInt();
		int d;
		char ch;
		int[] s = new int[52];
		for(int i = 0; i < n; i++){
			ch = input.next().charAt(0);
			d = input.nextInt();
			if (ch == 'S')s[d] = 1;
			if (ch == 'H')s[d+13] = 1;
			if (ch == 'C')s[d+26] = 1;
			if (ch == 'D')s[d+39] = 1;
		}
		for(int i = 0; i < 52; i++)
		{
			if(s[i] == 0) 
			{
				if (i < 14)System.out.println("S " + i+1);
				else if (i < 27)System.out.println("H " + (i-12));
				else if (i < 40)System.out.println("C " + (i-25));
				else System.out.println("D " + (i-38));
			}
		}
	}
}

Compiler output:
Main.java:2: error: class ITP1_6_B is public, should be declared in a file named ITP1_6_B.java
public class ITP1_6_B
       ^
1 error
Language: Java

import java.util.Scanner;

 

public class Main{

public static void main(String args){

Scanner sc=new Scanner(System.in);

 

int cards[]=new int[4][13];

int n=sc.nextInt();

 

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

String k=sc.next();

int rank=sc.nextInt();

if(k.equals("S")){

cards[0][rank-1]=1;

}else if(k.equals("H")){

cards[1][rank-1]=1;

}else if(k.equals("C")){

cards[2][rank-1]=1;

}else if(k.equals("D")){

cards[3][rank-1]=1;

}

}

 

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

for(int j=0;j<13;j++){

if(cards[a][j]==0&&a==0){

System.out.println("S "+(j+1));

}else if(cards[a][j]==0&&a==1){

System.out.println("H "+(j+1));

}else if(cards[a][j]==0&&a==2){

System.out.println("C "+(j+1));

}else if(cards[a][j]==0&&a==3){

System.out.println("D "+(j+1));

}

}

}

}

}

Compiler output:
Main.java:13: error: incompatible types: int[][] cannot be converted to int[]
int cards[]=new int[4][13];
            ^
Main.java:27: error: array required, but int found
cards[0][rank-1]=1;
        ^
Main.java:31: error: array required, but int found
cards[1][rank-1]=1;
        ^
Main.java:35: error: array required, but int found
cards[2][rank-1]=1;
        ^
Main.java:39: error: array required, but int found
cards[3][rank-1]=1;
        ^
Main.java:51: error: array required, but int found
if(cards[a][j]==0&&a==0){
           ^
Main.java:55: error: array required, but int found
}else if(cards[a][j]==0&&a==1){
                 ^
Main.java:59: error: array required, but int found
}else if(cards[a][j]==0&&a==2){
                 ^
Main.java:63: error: array required, but int found
}else if(cards[a][j]==0&&a==3){
                 ^
9 errors
Language: Java

import java.util.Scanner;
public class sample6b {

	public static void main(String[] args) {
		Scanner scan =new Scanner(System.in);

		int cards[][];
		cards = new int [4][13]; //????¬??????§4*13=52
		int i,j,x,b,c;
		b = 0;
			for (i = 0; i < 4; i++) { //??\??????????????´??°????????§???????????£????????????
				for (j=0 ; j<13; j++){
					cards[i][j] = 0;
				}//?????????
			}
			x =scan.nextInt(); //??????????????°??\???

			for (i=0 ;i < x; i++){
				String k = scan.next(); //Stroing??§??????
				int rank = scan.nextInt(); //??????????????°???
					if(k == "S"){
						cards[0][rank-1] =1;
					} else if (k == "H") {
						cards[1][rank-1] =1;
					} else if (k == "C") {
						cards[2][rank-1] =1;
					} else if (k == "D"){
						cards[3][rank-1] =1;
					}
			}
					for (i = 0; i < 4; i++) {
						for (j = 0; j < 13; j++){
							 if (cards[i][j] == 0 && i==0){
								 System.out.println("S "+(j+1));
							 } else if (cards[i][j] == 0 && i == 1){
								 System.out.println("H "+(j+1));
							 } else if (cards[i][j] == 0 && i == 2){
								 System.out.println("C "+(j+1));
							 } else if (cards[i][j] == 0 && i == 3){
								 System.out.println("D "+(j+1));
							 }
						}
					}
			}
	}

Compiler output:
Main.java:2: error: class sample6b is public, should be declared in a file named sample6b.java
public class sample6b {
       ^
1 error
Language: Java

import java.util.Arrays;
import java.util.Scanner;

public class ITP1_6B {

	public static void main(String[] args) {
		String[] flCd = new String[]{
			"S 1", "S 2", "S 3", "S 4", "S 5", "S 6", "S 7", "S 8",  "S 9", "S 10", "S 11", "S 12", "S 13",
			"H 1", "H 2", "H 3", "H 4", "H 5", "H 6", "H 7", "H 8",  "H 9", "H 10", "H 11", "H 12", "H 13",
			"C 1", "C 2", "C 3", "C 4", "C 5", "C 6", "C 7", "C 8",  "C 9", "C 10", "C 11", "C 12", "C 13",
			"D 1", "D 2", "D 3", "D 4", "D 5", "D 6", "D 7", "D 8",  "D 9", "D 10", "D 11", "D 12", "D 13"
		};
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String[] hvCd = new String[n];
		//sc.useDelimiter("\\r\\n");
		for (int i=0; i < n; i++) {
			hvCd[i] = sc.nextLine();
		}
		for (int i = 0; i < 52; i++) {
			if (!Arrays.asList(hvCd).contains(flCd[i])) {
				System.out.println(flCd[i]);
			}
		}
	}
}

Compiler output:
Main.java:4: error: class ITP1_6B is public, should be declared in a file named ITP1_6B.java
public class ITP1_6B {
       ^
1 error
Language: Java

import java.io.*;

class Main
{
    public static void main (String[ ] args) throws Exception
    {
        boolean[][] b = new boolean[4][13];
        String[] s = new {"S", "H", "C", "D"};
        BufferedReader br = new BufferedReader (new InputStreamReader (System.in));
        
        int n = Integer.parseInt(br.readLine());
        for(int i = 0; i < n; i++)
        {
            String[] strArr = (br.readLine()).split(" ");
            int rank = Integer.parseInt(strArr[1]);
            if("S".equals(strArr[0]))
            {
                b[0][rank - 1] = true;
            }
            else if("H".equals(strArr[0]))
            {
                b[1][rank - 1] = true;
            }
            else if("C".equals(strArr[0]))
            {
                b[2][rank - 1] = true;
            }
            else if("D".equals(strArr[0]))
            {
                b[3][rank - 1] = true;
            }
        }
        
        for(int i = 0; i < 4; i++)
        {
            for(int j = 0; i < 13; i++)
            {
                if(true != b[i][j])
                {
                    System.out.println(s[i] + " " + j);
                }
            }
        }
    }
}

Compiler output:
Main.java:8: error: <identifier> expected
        String[] s = new {"S", "H", "C", "D"};
                        ^
Main.java:8: error: '(' or '[' expected
        String[] s = new {"S", "H", "C", "D"};
                         ^
Main.java:8: error: not a statement
        String[] s = new {"S", "H", "C", "D"};
                          ^
Main.java:8: error: ';' expected
        String[] s = new {"S", "H", "C", "D"};
                             ^
4 errors
Language: Java

import java.util.Scanner;                                                                                                                   
class Main{
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int cards[][] = new int[4][13];
        for(int i = 0; i < 4; i++){
            for(int j = 0; j < 13; j++){
                cards[i][j] = 0;
            }
        }
        for(int c = 0; c < n; c++){
            String mark = scan.next();
            int val = scan.nextInt();
            switch(mark){
                case "S":
                    cards[0][val -1] = 1;
                    break;
                case "H":
                    cards[1][val -1] = 1;
                    break;
                case "C":
                    cards[2][val -1] = 1;
                    break;
                case "D":
                    cards[3][val -1] = 1;
            }
        }
        for(int i = 0; i < 4; i++){
            for(int j = 0; j < 13; j++){
                if(cards[i][j] == 0){
                    switch(i){
                        case 0:
                            System.out.println("S" + " " + (j + 1));
                            break;
                        case 1:
                            System.out.println("H" + " " + (j + 1));
                            break;
                        case 2:
                            System.out.println("C" + " " + (j + 1));
                            break;
                        case 3:
                            System.out.println("D" + " " + (j + 1));
                    }
                }
            }
        }
    }
}                            

Compiler output:
Main.java:13: error: cannot find symbol
            String mark = scan.next();
                          ^
  symbol:   variable scan
  location: class Main
Main.java:14: error: cannot find symbol
            int val = scan.nextInt();
                      ^
  symbol:   variable scan
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

class Main
{
	public static void main ( String[] args ) {
		
		Scanner  sc = new Scanner ( System.in );
		StringBuilder str = new StringBuilder ();
		
		boolean [][] cards = new boolean[ 4 ][ 13 ];
		
		int n = sc.nextInt ();
		
		for ( int i = 0; i < n; i++ ) {
			String art = sc.next ();
			int rank = sc.nextInt ();
			
			if ( art.equals ( "S" ) ) {
				cards[ 0 ][ rank - 1 ] = true;
			} else if ( art.equals ( "H" ) ) {
				cards[ 1 ][ rank - 1 ] = true;
			} else if ( art.equals ( "C" ) ) {
				cards[ 2 ][ rank - 1 ] = true;
			} else {
				cards[ 3 ][ rank - 1 ] = true;
			}
			
			for ( int i = 0; i < 4; i++ ) {
				for ( int j = 0; j < 13; j++ ) {
					if ( !cards[ i ][ j ] ) {
						if ( i == 0 ) {
							System.out.println ( "S" + ( j + 1 ) );
						} else if ( i == 1 ) {
							System.out.println ( "H" + ( j + 1 ) );
						} else if ( i == 2 ) {
							System.out.println ( "C" + ( j + 1 ) );
						} else {
							System.out.println ( "D" + ( j + 1 ) );
						}
					}
				}
			}
		}
	}
}

Compiler output:
Main.java:28: error: variable i is already defined in method main(String[])
			for ( int i = 0; i < 4; i++ ) {
			          ^
1 error
Language: Java

import java.util.Scanner;


public class Main2 {


	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		
		int[] num = new int[52];
		String[] mark = new String[52];

		int[] s = new int[14];
		int[] h = new int[14];
		int[] c = new int[14];
		int[] d = new int[14];

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


		for(int i=0;i<n;i++){
			mark[i]=scan.next();
			num[i]=scan.nextInt();
		}

		for(int i=0;i<n;i++){
			if(mark[i].equals("S")) s[num[i]] = 0;
			if(mark[i].equals("H")) h[num[i]] = 0;
			if(mark[i].equals("C")) c[num[i]] = 0;
			if(mark[i].equals("D")) d[num[i]] = 0;
		}


		for(int i=1;i<=13;i++){
			if(s[i] !=0 )System.out.println("S "+s[i]);
		}
		for(int i=1;i<=13;i++){
			if(h[i] !=0 )System.out.println("H "+h[i]);
		}
		for(int i=1;i<=13;i++){
			if(c[i] !=0 )System.out.println("C "+c[i]);
		}
		for(int i=1;i<=13;i++){
			if(d[i] !=0 )System.out.println("D "+d[i]);
		}
	}

}

Compiler output:
Main.java:4: error: class Main2 is public, should be declared in a file named Main2.java
public class Main2 {
       ^
1 error
Language: Java

import java.util.Scanner;

public class Main{
	public static void main(String[] args){

		int scan = new Scanner(System.in);

		int number = scan.nextInt();

		int cards[][] = new cards[4][13];

		int m;
		int n;

		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				m = scan.nextInt();
				n = scan.nextInt();
				cards[m][n] = n;
			}
		}

		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(cards[i][j] == 0){
					if(i == 0){
						System.out.print('S' + " " + j);
					}else if(i == 1){
						System.out.print('H' + " " + j);
					}else if(i == 2){
						System.out.print('C' + " " + j);
					}else if(i == 3){
						System.out.print('D' + " " + j);
					}
				}
			}
		}
	}
}

Compiler output:
Main.java:6: error: incompatible types: Scanner cannot be converted to int
		int scan = new Scanner(System.in);
		           ^
Main.java:8: error: int cannot be dereferenced
		int number = scan.nextInt();
		                 ^
Main.java:10: error: cannot find symbol
		int cards[][] = new cards[4][13];
		                    ^
  symbol:   class cards
  location: class Main
Main.java:17: error: int cannot be dereferenced
				m = scan.nextInt();
				        ^
Main.java:18: error: int cannot be dereferenced
				n = scan.nextInt();
				        ^
5 errors
Language: Java

import java.util.Scanner;

public class Main{
	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);

		int number = scan.nextInt();

		int cards[][] = new int[4][13];
		int m;
		int n;

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

		for(int k = 0; k < number; k++){
			m = scan.nextInt();
			n = scan.nextInt();

			cards[m][n] = 1;
		}

		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(cards[i][j] != 1){
					if(i == 0){
						m = 'S';
					}else if(i == 1){
						m = 'H';
					}else if(i == 2){
						m = 'C';
					}else if(i == 3){
						m = 'D';
					}
				}
				System.out.println(cards[m][j]);
			}
		}
	}
}

Compiler output:
Main.java:40: error: variable m might not have been initialized
				System.out.println(cards[m][j]);
				                         ^
1 error
Language: Java

import java.util.Scanner;

public class Main{
	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);

		int number = scan.nextInt();

		int cards[][] = new int[4][13];
		int m;
		int n;
		char l = '';

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

		for(int k = 0; k < number * 2; k++){
			m = scan.nextInt();
			n = scan.nextInt();
			cards[m][n] = 1;
		}

		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				if(cards[i][j] == 0){
					if(i == 0){
						l = 'S';
					}else if(i == 1){
						l = 'H';
					}else if(i == 2){
						l = 'C';
					}else if(i == 3){
						l = 'D';
					}
				}
				System.out.println(l + " " + j);
			}
		}
	}
}

Compiler output:
Main.java:13: error: empty character literal
		char l = '';
		         ^
1 error
Language: Java

import java.util.*;
public class MissCard {
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		String[] suit = {"S","H","C","D"};
		String[] rank = {"1","2","3","4","5","6","7","8","9","10","11","12","13"};
		int n = sc.nextInt();
		String[][] card = new String[4][13];
		for (int i = 0; i < n; i ++ ){
			String s = sc.next();
			String r = sc.next();
			int sIdx = Arrays.asList(suit).indexOf(s);
			int rIdx = Arrays.asList(rank).indexOf(r);
			System.out.println(sIdx + " " + rIdx);
			card[sIdx][rIdx] = "ok";
		}
		for (int i = 0; i < 4; i ++ ){
			for (int k = 0; k < 13; k ++ ){
				if (card[i][k] == null){
					System.out.println(suit[i] + " " + rank[k]);
				}
			}
		}
		sc.close();
	}
}

Compiler output:
Main.java:2: error: class MissCard is public, should be declared in a file named MissCard.java
public class MissCard {
       ^
1 error
Language: Java

import java.util.*;
public class MissCard {
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		String[] suit = {"S","H","C","D"};
		String[] rank = {"1","2","3","4","5","6","7","8","9","10","11","12","13"};
		int n = sc.nextInt();
		String[][] card = new String[4][13];
		for (int i = 0; i < n; i ++ ){
			String s = sc.next();
			String r = sc.next();
			int sIdx = Arrays.asList(suit).indexOf(s);
			int rIdx = Arrays.asList(rank).indexOf(r);
//			System.out.println(sIdx + " " + rIdx);
			card[sIdx][rIdx] = "ok";
		}
		for (int i = 0; i < 4; i ++ ){
			for (int k = 0; k < 13; k ++ ){
				if (card[i][k] == null){
					System.out.println(suit[i] + " " + rank[k]);
				}
			}
		}
		sc.close();
	}
}

Compiler output:
Main.java:2: error: class MissCard is public, should be declared in a file named MissCard.java
public class MissCard {
       ^
1 error
Language: Java

import java.util.*;

public class Main{
	public static void main(String[] args){

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

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String[] card = String[n];
		for(int i = 0; i < n; i++){
			card[i] = scan.nextLine();
			String[] div = card[i].split("\\s");
			char m = (char) div[0];
			int number = Integer.parseInt(div[1]);
			switch(m){
				case 'S' :
					s[number - 1] = true;
					break;
				case 'H' :
					h[number - 1] = true;
					break;
				case 'C' :
					c[number - 1] = true;
					break;
				case 'D' :
					d[number - 1] = true;
					break;
				default :
					break;
			}
		}

		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				switch(i){
					case 0 :
						if(s[j] == false){
							System.out.printf("S %d\n", j + 1);
						}
						break;
					case 1 :
						if(h[j] == false){
							System.out.printf("H %d\n", j + 1);
						}
						break;
					case 2 :
						if(c[j] == false){
							System.out.printf("C %d\n", j + 1);
						}
						break;
					case 3 :
						if(d[j] == false){
							System.out.printf("D %d\n", j + 1);
						}
				}
			}
		}
	}
}

Compiler output:
Main.java:6: error: ']' expected
		boolean[] s = boolean[13];
		                      ^
Main.java:7: error: ']' expected
		boolean[] h = boolean[13];
		                      ^
Main.java:8: error: ']' expected
		boolean[] c = boolean[13];
		                      ^
Main.java:9: error: ']' expected
		boolean[] d = boolean[13];
		                      ^
4 errors
Language: Java

import java.util.*;

public class Main{
	public static void main(String[] args){

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

		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		String[] card = String[n];
		for(int i = 0; i < n; i++){
			card[i] = scan.nextLine();
			String[] div = card[i].split("\\s");
			char m = (char) div[0];
			int number = Integer.parseInt(div[1]);
			switch(m){
				case 'S' :
					s[number - 1] = true;
					break;
				case 'H' :
					h[number - 1] = true;
					break;
				case 'C' :
					c[number - 1] = true;
					break;
				case 'D' :
					d[number - 1] = true;
					break;
				default :
					break;
			}
		}

		for(int i = 0; i < 4; i++){
			for(int j = 0; j < 13; j++){
				switch(i){
					case 0 :
						if(s[j] == false){
							System.out.printf("S %d\n", j + 1);
						}
						break;
					case 1 :
						if(h[j] == false){
							System.out.printf("H %d\n", j + 1);
						}
						break;
					case 2 :
						if(c[j] == false){
							System.out.printf("C %d\n", j + 1);
						}
						break;
					case 3 :
						if(d[j] == false){
							System.out.printf("D %d\n", j + 1);
						}
				}
			}
		}
	}
}

Compiler output:
Main.java:19: error: cannot find symbol
		String[] card = String[n];
		                ^
  symbol:   variable String
  location: class Main
Main.java:23: error: incompatible types: String cannot be converted to char
			char m = (char) div[0];
			                   ^
2 errors
Language: Java

package internship;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

public class array2 {

	/*
	 * ???52???
	 *
	 * ???????????????????????????????????????????????? ??????????????? ???n <= 52???
	 *
	 */
	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		// ?????±??\???
		String card = sc.next();
		int rank = Integer.parseInt(card);

		ArrayList<Integer> S_card = new ArrayList<Integer>(); // ????????????
		ArrayList<Integer> H_card = new ArrayList<Integer>(); // ?????????
		ArrayList<Integer> C_card = new ArrayList<Integer>(); // ?????????
		ArrayList<Integer> D_card = new ArrayList<Integer>(); // ?????????

		for (int i = 0; i < rank; i++) {
			// ??????
			String Shape = sc.next();
			String No = sc.next();
			int choice = Integer.parseInt(No);
			if (Shape.equals("S")) {
				S_card.add(choice);
			} else if (Shape.equals("H")) {
				H_card.add(choice);
			} else if (Shape.equals("C")) {
				C_card.add(choice);
			} else if (Shape.equals("D")) {
				D_card.add(choice);
			}
		}

		// ??¢?´¢
		// ?¶???????????????????
		Collections.sort(S_card);// ex : 1 2 3 4 5 8 9 10 11 12 13 // 6 7
		for (int i = S_card.size() - 1; i >= 0; i--)
			for (int j = 13; j >= 0; j--) {

				if (j != i)
					System.out.println("S" + "" + j);
			}
		Collections.sort(H_card);
		for (int i = H_card.size() - 1; i >= 0; i--) {
			for (int j = 13; j >= 0; j--) {

				if (j != i)
					System.out.println("H" + "" + j);
			}
		}
		Collections.sort(C_card);
		for (int i = C_card.size() - 1; i >= 0; i--) {
			for (int j = 13; j >= 0; j--) {

				if (j != i)
					System.out.println("C" + "" + j);
			}
		}
		Collections.sort(D_card);
		for (int i = D_card.size() - 1; i >= 0; i--) {
			for (int j = 13; j >= 0; j--) {

				if (j != i)
					System.out.println("D" + "" + j);
			}
		}
	}
}

Compiler output:
Main.java:7: error: class array2 is public, should be declared in a file named array2.java
public class array2 {
       ^
1 error