criyle/codenet-compile-errors huggingface dataset:
Language: Java


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

public class main {

	/*
	 * ???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--) {// ex : 7 6

				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:6: error: class main is public, should be declared in a file named main.java
public class main {
       ^
1 error
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);
			}
		}

		// ??¢?´¢
		// ?¶???????????????????

		String[] cardShape = new String[] { "S", "H", "C", "D" };
		String swi = "";
		for (int i = 0; i < cardShape.length; i++) {
			swi = cardShape[i];
			if (swi == "S")
				swi_method(swi, S_card);
			else if(swi == "S")
				swi_method(swi, H_card);
			else if(swi == "S")
				swi_method(swi, C_card);
			else
				swi_method(swi, D_card);

		}

	}

	static void check(String cardShape, ArrayList<Integer> cArd_N) {
		Collections.sort(cArd_N);
		boolean[] chk_arr = new boolean[13];
		for (int i = 1; i < 13; i++) {
			for (int j = 0; j <= cArd_N.size(); j++) {
				if (i != j)
					chk_arr[i] = false;
				else
					chk_arr[i] = true;
			}
		}
		for (int j = 0; j < chk_arr.length; j++) {
			if (chk_arr[j] == false)
				System.out.println(cardShape + "" + (j + 1));
		}
	}

	static void swi_method(String swi, ArrayList<Integer> cArd_N) {
		switch (swi) {
		case "S":
			check(swi, cArd_N);
			break;
		case "H":
			check(swi, cArd_N);
			break;
		case "C":
			check(swi, cArd_N);
			break;
		case "D":
			check(swi, cArd_N);
			break;
		}
	}
}

Compiler output:
Main.java:7: error: class array2 is public, should be declared in a file named array2.java
public class array2 {
       ^
1 error
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);
			}
		}

		// ??¢?´¢
		// ?¶???????????????????

		String[] cardShape = new String[] { "S", "H", "C", "D" };
		String swi = "";
		for (int i = 0; i < cardShape.length; i++) {
			swi = cardShape[i];
			if (swi == "S")
				swi_method(swi, S_card);
			else if(swi == "H")
				swi_method(swi, H_card);
			else if(swi == "C")
				swi_method(swi, C_card);
			else
				swi_method(swi, D_card);

		}

	}

	static void check(String cardShape, ArrayList<Integer> cArd_N) {
		Collections.sort(cArd_N);
		boolean[] chk_arr = new boolean[13];
		for (int i = 1; i < 13; i++) {
			for (int j = 0; j <= cArd_N.size(); j++) {
				if (i != j)
					chk_arr[i] = false;
				else
					chk_arr[i] = true;
			}
		}
		for (int j = 0; j < chk_arr.length; j++) {
			if (chk_arr[j] == false)
				System.out.println(cardShape + "" + (j + 1));
		}
	}

	static void swi_method(String swi, ArrayList<Integer> cArd_N) {
		switch (swi) {
		case "S":
			check(swi, cArd_N);
			break;
		case "H":
			check(swi, cArd_N);
			break;
		case "C":
			check(swi, cArd_N);
			break;
		case "D":
			check(swi, cArd_N);
			break;
		}
	}
}

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

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		boolean[][] trump = new boolean[4][13];
		static final int
			S = 0, H = 1, C = 2, D = 3;
		int n = scan.nextInt();
		for(int i = 0; i < n; i++){
			String m = scan.next();
			int num = scan.nextInt();
			char c = m.charAt(0);
			int a = 0;
			switch(c){
				case 'S' :
					a = S;
					break;
				case 'H' :
					a = H;
					break;
				case 'C' :
					a = C;
					break;
				case 'D' :
					a = D;
					break;
				default :
					break;
			}
			trump[a][num - 1] = true;
		}

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

Compiler output:
Main.java:8: error: illegal start of expression
		static final int
		^
Main.java:11: error: illegal start of type
		for(int i = 0; i < n; i++){
		^
Main.java:11: error: > or ',' expected
		for(int i = 0; i < n; i++){
		                    ^
Main.java:11: error: <identifier> expected
		for(int i = 0; i < n; i++){
		                       ^
Main.java:35: error: illegal start of type
		for(int i = 0; i < 4; i++){
		^
Main.java:35: error: illegal start of type
		for(int i = 0; i < 4; i++){
		                   ^
Main.java:35: error: <identifier> expected
		for(int i = 0; i < 4; i++){
		                       ^
Main.java:41: error: ';' expected
							c = 'S'
							       ^
Main.java:60: error: class, interface, enum, or record expected
}
^
9 errors
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		boolean[][] trump = new boolean[4][13];
		public static final int
			S = 0, H = 1, C = 2, D = 3;
		int n = scan.nextInt();
		for(int i = 0; i < n; i++){
			String m = scan.next();
			int num = scan.nextInt();
			char c = m.charAt(0);
			int a = 0;
			switch(c){
				case 'S' :
					a = S;
					break;
				case 'H' :
					a = H;
					break;
				case 'C' :
					a = C;
					break;
				case 'D' :
					a = D;
					break;
				default :
					break;
			}
			trump[a][num - 1] = true;
		}

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

Compiler output:
Main.java:8: error: illegal start of expression
		public static final int
		^
Main.java:11: error: illegal start of type
		for(int i = 0; i < n; i++){
		^
Main.java:11: error: > or ',' expected
		for(int i = 0; i < n; i++){
		                    ^
Main.java:11: error: <identifier> expected
		for(int i = 0; i < n; i++){
		                       ^
Main.java:35: error: illegal start of type
		for(int i = 0; i < 4; i++){
		^
Main.java:35: error: illegal start of type
		for(int i = 0; i < 4; i++){
		                   ^
Main.java:35: error: <identifier> expected
		for(int i = 0; i < 4; i++){
		                       ^
Main.java:60: error: class, interface, enum, or record expected
}
^
8 errors
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);
	public static final int
		S = 0, H = 1, C = 2, D = 3;

	public static void main(String[] args){
		boolean[][] trump = new boolean[4][13];
		int n = scan.nextInt();
		for(int i = 0; i < n; i++){
			String m = scan.next();
			int num = scan.nextInt();
			char c = m.charAt(0);
			int a = 0;
			switch(c){
				case 'S' :
					a = S;
					break;
				case 'H' :
					a = H;
					break;
				case 'C' :
					a = C;
					break;
				case 'D' :
					a = D;
					break;
				default :
					break;
			}
			trump[a][num - 1] = true;
		}

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

Compiler output:
Main.java:38: error: incompatible types: <null> cannot be converted to char
					char c = null;
					         ^
1 error
Language: Java

package zisyu;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class Card {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        String line = br.readLine();
        int num = Integer.parseInt(line);

        ArrayList<String> list = new ArrayList<String>();
        
        for (int i = 0; i < num; i++) {
            list.add(br.readLine());
        }

        
        findCard("S", list);
        findCard("H", list);
        findCard("C", list);
        findCard("D", list);

        /*
       
        for (int i = 1; i <= 13; i++) {
            if(list.contains("S " + i) == false){
                System.out.println("S " + i);
            }
        }

        for (int i = 1; i <= 13; i++) {
            if(list.contains("H " + i) == false){
                System.out.println("H " + i);
            }
        }

        for (int i = 1; i <= 13; i++) {
            if(list.contains("C " + i) == false){
                System.out.println("C " + i);
            }
        }

        for (int i = 1; i <= 13; i++) {
            if(list.contains("D " + i) == false){
                System.out.println("D " + i);
            }
        }
        */
    }
    
    static void findCard(String mark, ArrayList list){
    	for (int i = 1; i <= 13; i++) {
            if(list.contains(mark + " " + i) == false){
                System.out.println(mark + " " + i);
            }
        }
    }
    
}

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


import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class Card {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        String line = br.readLine();
        int num = Integer.parseInt(line);

        ArrayList<String> list = new ArrayList<String>();

        for (int i = 0; i < num; i++) {
            list.add(br.readLine());
        }


        findCard("S", list);
        findCard("H", list);
        findCard("C", list);
        findCard("D", list);

        /*

        for (int i = 1; i <= 13; i++) {
            if(list.contains("S " + i) == false){
                System.out.println("S " + i);
            }
        }

        for (int i = 1; i <= 13; i++) {
            if(list.contains("H " + i) == false){
                System.out.println("H " + i);
            }
        }

        for (int i = 1; i <= 13; i++) {
            if(list.contains("C " + i) == false){
                System.out.println("C " + i);
            }
        }

        for (int i = 1; i <= 13; i++) {
            if(list.contains("D " + i) == false){
                System.out.println("D " + i);
            }
        }
        */
    }

    static void findCard(String mark, ArrayList list){
    	for (int i = 1; i <= 13; i++) {
            if(list.contains(mark + " " + i) == false){
                System.out.println(mark + " " + i);
            }
        }
    }

}

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

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        String line = br.readLine();
        int num = Integer.parseInt(line);

        ArrayList<String> list = new ArrayList<String>();

        for (int i = 0; i < num; i++) {
            list.add(br.readLine());
        }


        findCard("S", list);
        findCard("H", list);
        findCard("C", list);
        findCard("D", list);

    static void findCard(String mark, ArrayList list){
    	for (int i = 1; i <= 13; i++) {
            if(list.contains(mark + " " + i) == false){
                System.out.println(mark + " " + i);
            }
        }
    }

}

Compiler output:
Main.java:24: error: illegal start of expression
    static void findCard(String mark, ArrayList list){
    ^
1 error
Language: Java



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

public class Main {
	public static void main(String[] args){
		//????????£?????????????????????
		Scanner sc = new Scanner (System.in);
		//ArrayList
		ArrayList<String> array = new ArrayList<String>();
		//????????????????????°?????????
		int card = sc.nextInt();
		//???????????????????????°???????´? i <= card ??????????????¨???????????\?????????
		for(int i = 0; i <= card; i++){
			//??????????????? ArrayList?????¶???
			array.add(sc.nextLine());
		}

		//???S??? ???????????? ???????????????????????¨??? 1??????????????????????????§14?????§ ????????????????????°???1????????????13???
		for(int i = 1; i <= 13; i++){
			//???????????????????????¨("????????? " ????????????????????????)????????´????????????????????° -1??????????????? false??¨?????????-1?????????
			//-1(???????????????)????£?????????°??¨???
			if(array.contains("S " + i) ==false){
				System.out.println("S " + i);
			}
		}
		//???H??? ????????? ???????????????????????¨???
		for(int i = 1; i <= 13; i++){
			//???????????????????????¨("????????? " ????????????????????????)????????´????????????????????° -1??????????????? false??¨?????????-1?????????
			//-1(???????????????)????£?????????°??¨???
			if(array.contains("H " + i) ==false){
				System.out.println("H " + i);
			}
		}
		//???C??? ??????????????? ???????????????????????¨???
		for(int i = 1; i <= 13; i++){
			//???????????????????????¨("????????? " ????????????????????????)????????´????????????????????° -1??????????????? false??¨?????????-1?????????
			//-1(???????????????)????£?????????°??¨???
			if(array.contains("C " + i) ==false){
				System.out.println("C " + i);
			}
		}
		//???D??? ????????? ???????????????????????¨???
		for(int i = 1; i <= 13; i++){
			//???????????????????????¨("????????? " ????????????????????????)????????´????????????????????° -1??????????????? false??¨?????????-1?????????
			//-1(???????????????)????£?????????°??¨???
			if(array.contains("D " + i) ==false){
				System.out.println("D " + i);
			}
		}
	}
}
6Br.txt
Google ????????\????????? ??§??????
6Br.txt ?????¨?????????????????????

Compiler output:
Main.java:54: error: class, interface, enum, or record expected
6Br.txt
^
Main.java:55: error: illegal character: '\'
Google ????????\????????? ?????????
               ^
Main.java:55: error: illegal character: '\u00a7'
Google ????????\????????? ?????????
                            ^
Main.java:56: error: illegal character: '\u00a8'
6Br.txt ???????????????????????????
             ^
4 errors
Language: Java

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  int num,i,j,suite;
  num = Integer.parseInt(br.readLine());
  int cards[4][13];
   
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     cards[i][j]=0;
   }

   for(i=0;i<num;i++){ 
     strAry = br.readLine().split(" ");
    String op = strAry[0];
    int number = strAry[1];

    if(op.equals("S")){   
      suite=0;     
    }else if(op.equals("H")){
      suite=1;
    }else if(op.equals("C")){
      suite=2;
    }else if(op.equals("D")){
      suite=3;
    }
    cards[suite][number]=1;
   }
    
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     if(cards[i][j]==0){
       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 if(i==3){
         System.out.println("D "+ (j+1));
       }
    }
   }
   

 }
}

Compiler output:
Main.java:8: error: ']' expected
  int cards[4][13];
            ^
Main.java:49: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  int num,i,j,suite;
  num = Integer.parseInt(br.readLine());
  int cards[4][13];
   
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     cards[i][j]=0;
   }

   for(i=0;i<num;i++){ 
     strAry = br.readLine().split(" ");
    String op = strAry[0];
    int number = strAry[1]-1;

    if(op.equals("S")){   
      suite=0;     
    }else if(op.equals("H")){
      suite=1;
    }else if(op.equals("C")){
      suite=2;
    }else if(op.equals("D")){
      suite=3;
    }
    cards[suite][number]=1;
   }
    
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     if(cards[i][j]==0){
       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 if(i==3){
         System.out.println("D "+ (j+1));
       }
    }
   }
   

 }
}

Compiler output:
Main.java:8: error: ']' expected
  int cards[4][13];
            ^
Main.java:49: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  int num,i,j,suite;
  num = Integer.parseInt(br.readLine());
  int[4][13] cards;
   
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     cards[i][j]=0;
   }

   for(i=0;i<num;i++){ 
     strAry = br.readLine().split(" ");
    String op = strAry[0];
    int number = strAry[1]-1;

    if(op.equals("S")){   
      suite=0;     
    }else if(op.equals("H")){
      suite=1;
    }else if(op.equals("C")){
      suite=2;
    }else if(op.equals("D")){
      suite=3;
    }
    cards[suite][number]=1;
   }
    
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     if(cards[i][j]==0){
       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 if(i==3){
         System.out.println("D "+ (j+1));
       }
    }
   }
   

 }
}

Compiler output:
Main.java:8: error: ']' expected
  int[4][13] cards;
      ^
Main.java:8: error: not a statement
  int[4][13] cards;
     ^
Main.java:8: error: not a statement
  int[4][13] cards;
             ^
Main.java:49: error: reached end of file while parsing
}
 ^
4 errors
Language: Java

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  int num,i,j,suite;
  num = Integer.parseInt(br.readLine());
  int[][] cards;

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

   for(i=0;i<num;i++){ 
     strAry = br.readLine().split(" ");
    String op = strAry[0];
    int number = strAry[1]-1;

    if(op.equals("S")){   
      suite=0;     
    }else if(op.equals("H")){
      suite=1;
    }else if(op.equals("C")){
      suite=2;
    }else if(op.equals("D")){
      suite=3;
    }
    cards[suite][number]=1;
   }
    
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     if(cards[i][j]==0){
       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 if(i==3){
         System.out.println("D "+ (j+1));
       }
    }
   }
   

 }
}

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

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  int num,i,j,suite;
  num = Integer.parseInt(br.readLine());
  int[][] cards;

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

   for(i=0;i<num;i++){ 
     strAry = br.readLine().split(" ");
    String op = strAry[0];
    int number = strAry[1]-1;

    if(op.equals("S")){   
      suite=0;     
    }else if(op.equals("H")){
      suite=1;
    }else if(op.equals("C")){
      suite=2;
    }else if(op.equals("D")){
      suite=3;
    }
    cards[suite][number]=1;
   }
    
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     if(cards[i][j]==0){
       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 if(i==3){
         System.out.println("D "+ (j+1));
       }
    }
   }
   

 }
}

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

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  int num,i,j,suite;
  num = Integer.parseInt(br.readLine());
  int[][] cards;

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

   for(i=0;i<num;i++){ 
     strAry = br.readLine().split(" ");
    String op = strAry[0];
    int number = strAry[1]-1;

    if(op.equals("S")){   
      suite=0;     
    }else if(op.equals("H")){
      suite=1;
    }else if(op.equals("C")){
      suite=2;
    }else if(op.equals("D")){
      suite=3;
    }
    cards[suite][number]=1;
   }
    
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     if(cards[i][j]==0){
       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 if(i==3){
         System.out.println("D "+ (j+1));
       }
    }
   }
   
  }
 }
}

Compiler output:
Main.java:19: error: cannot find symbol
     strAry = br.readLine().split(" ");
     ^
  symbol:   variable strAry
  location: class Main
Main.java:20: error: cannot find symbol
    String op = strAry[0];
                ^
  symbol:   variable strAry
  location: class Main
Main.java:21: error: cannot find symbol
    int number = strAry[1]-1;
                 ^
  symbol:   variable strAry
  location: class Main
3 errors
Language: Java

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  int num,i,j,suite;
  num = Integer.parseInt(br.readLine());
  int[][] cards;

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

   for(i=0;i<num;i++){ 
     String str = br.readLine(); 
     strAry = br.readLine().split(" ");
    String op = strAry[0];
    int number = strAry[1]-1;

    if(op.equals("S")){   
      suite=0;     
    }else if(op.equals("H")){
      suite=1;
    }else if(op.equals("C")){
      suite=2;
    }else if(op.equals("D")){
      suite=3;
    }
    cards[suite][number]=1;
   }
    
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     if(cards[i][j]==0){
       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 if(i==3){
         System.out.println("D "+ (j+1));
       }
    }
   }
   
  }
 }
}

Compiler output:
Main.java:20: error: cannot find symbol
     strAry = br.readLine().split(" ");
     ^
  symbol:   variable strAry
  location: class Main
Main.java:21: error: cannot find symbol
    String op = strAry[0];
                ^
  symbol:   variable strAry
  location: class Main
Main.java:22: error: cannot find symbol
    int number = strAry[1]-1;
                 ^
  symbol:   variable strAry
  location: class Main
3 errors
Language: Java

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  int num,i,j,suite;
  num = Integer.parseInt(br.readLine());
  int[][] cards;

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

   for(i=0;i<num;i++){ 
     String str = br.readLine(); 
    String[] strAry = br.readLine().split(" ");
    String op = strAry[0];
    int number = strAry[1]-1;

    if(op.equals("S")){   
      suite=0;     
    }else if(op.equals("H")){
      suite=1;
    }else if(op.equals("C")){
      suite=2;
    }else if(op.equals("D")){
      suite=3;
    }
    cards[suite][number]=1;
   }
    
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     if(cards[i][j]==0){
       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 if(i==3){
         System.out.println("D "+ (j+1));
       }
    }
   }
   
  }
 }
}

Compiler output:
Main.java:22: error: bad operand types for binary operator '-'
    int number = strAry[1]-1;
                          ^
  first type:  String
  second type: int
1 error
Language: Java

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  int num,i,j,suite;
  num = Integer.parseInt(br.readLine());
  int[][] cards;

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

   for(i=0;i<num;i++){ 
    String str = br.readLine(); 
    String[] strAry = br.readLine().split(" ");
    String op = strAry[0];
    int number = strAry[1]-1;

    if(op.equals("S")){   
      suite=0;     
    }else if(op.equals("H")){
      suite=1;
    }else if(op.equals("C")){
      suite=2;
    }else if(op.equals("D")){
      suite=3;
    }
    cards[suite][number]=1;
   }
    
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     if(cards[i][j]==0){
       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 if(i==3){
         System.out.println("D "+ (j+1));
       }
    }
   }
   
  }
 }
}

Compiler output:
Main.java:22: error: bad operand types for binary operator '-'
    int number = strAry[1]-1;
                          ^
  first type:  String
  second type: int
1 error
Language: Java

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  int num,i,j,suite;
  num = Integer.parseInt(br.readLine());
  int[][] cards;

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

   for(i=0;i<num;i++){ 
    String str = br.readLine(); 
    String[] strAry = br.readLine().split(" ");
    String op = strAry[0];
    int number = Integer.parseInt(strAry[1])-1;

    if(op.equals("S")){   
      suite=0;     
    }else if(op.equals("H")){
      suite=1;
    }else if(op.equals("C")){
      suite=2;
    }else if(op.equals("D")){
      suite=3;
    }
    cards[suite][number]=1;
   }
    
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     if(cards[i][j]==0){
       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 if(i==3){
         System.out.println("D "+ (j+1));
       }
    }
   }
   
  }
 }
}

Compiler output:
Main.java:33: error: variable suite might not have been initialized
    cards[suite][number]=1;
          ^
1 error
Language: Java

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  int num,i,j,suite;
  num = Integer.parseInt(br.readLine());
  int[][] cards;

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

   for(i=0;i<num;i++){ 
    String str = br.readLine(); 
    String[] strAry = br.readLine().split(" ");
    String op = strAry[0];
    int number = Integer.parseInt(strAry[1]);
    number--;   

    if(op.equals("S")){   
      suite=0;     
    }else if(op.equals("H")){
      suite=1;
    }else if(op.equals("C")){
      suite=2;
    }else if(op.equals("D")){
      suite=3;
    }
    cards[suite][number]=1;
   }
    
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     if(cards[i][j]==0){
       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 if(i==3){
         System.out.println("D "+ (j+1));
       }
    }
   }
   
  }
 }
}

Compiler output:
Main.java:34: error: variable suite might not have been initialized
    cards[suite][number]=1;
          ^
1 error
Language: Java

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  int num,i,j;
  num = Integer.parseInt(br.readLine());
  int[][] cards = new int[4][13];   
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     cards[i][j]=0;
    }
   }

   for(i=0;i<num;i++){ 
    String str = br.readLine(); 
    String[] strAry = br.readLine().split(" ");
    String op = strAry[0];
    int number = Integer.parseInt(strAry[1]);
    number--;   

    if(strAry[0].charAt(0).equals("S")){            
      cards[0][number]=1; 
    }else if(op.equals("H")){
      cards[1][number]=1;
    }else if(op.equals("C")){
      cards[2][number]=1;
    }else if(op.equals("D")){
      cards[3][number]=1;
    }

   }
    
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     if(cards[i][j]==0){
       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 if(i==3){
         System.out.println("D "+ (j+1));
       }
    }
   }
   
  }
 }
}

Compiler output:
Main.java:22: error: char cannot be dereferenced
    if(strAry[0].charAt(0).equals("S")){            
                          ^
1 error
Language: Java

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  int num,i,j;
  num = Integer.parseInt(br.readLine());
  int[][] cards = new int[4][13];   
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     cards[i][j]=0;
    }
   }

   for(i=0;i<num;i++){ 
    String str = br.readLine(); 
    String[] strAry = br.readLine().split(" ");
    String op = strAry[0];
    int number = Integer.parseInt(strAry[1]);
    number--;   

    if(op.equals("S")){            
      cards[0][number]=1; 
    }else if(op.equals("H")){
      cards[1][number]=1;
    }else if(op.equals("C")){
      cards[2][number]=1;
    }else if(op.equals("D")){
      cards[3][number]=1;
    }

   }
    
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     
    }
   }
   
  }
 }
}

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

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  int num,i,j;
  num = Integer.parseInt(br.readLine());
  int[][] cards = new int[4][13];   
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     cards[i][j]=0;
    }
   }

   for(i=0;i<num;i++){ 
    String str = br.readLine(); 
    String[] strAry = br.readLine().split(" ");
    String op = strAry[0];
    int number = Integer.parseInt(strAry[1]);
    number--;   

    if(op.equals("S")){            
      cards[0][number]=1; 
    }else if(op.equals("H")){
      cards[1][number]=1;
    }else if(op.equals("C")){
      cards[2][number]=1;
    }else if(op.equals("D")){
      cards[3][number]=1;
    }

   }
    
      
  }
 }
}

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

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  int num,i,j;
  num = Integer.parseInt(br.readLine());
  int[][] cards = new int[4][13];   
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     cards[i][j]=0;
    }
   }

   for(i=0;i<num;i++){ 
    String str = br.readLine(); 
    String[] strAry = br.readLine().split(" ");
    String op = strAry[0];
    int number = Integer.parseInt(strAry[1]);
    number--;   

    if(op.equals("S")){            
      cards[0][number]=1; 
    }else if(op.equals("H")){
      cards[1][number]=1;
    }else if(op.equals("C")){
      cards[2][number]=1;
    }else if(op.equals("D")){
      cards[3][number]=1;
    }

   }
    
      
  }
  System.out.println("5");
 }
}

Compiler output:
Main.java:36: error: <identifier> expected
  System.out.println("5");
                    ^
Main.java:36: error: illegal start of type
  System.out.println("5");
                     ^
Main.java:38: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  int num,i,j;
  num = Integer.parseInt(br.readLine());
  int[][] cards = new int[4][13];   
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     cards[i][j]=0;
    }
   }

   for(i=0;i<num;i++){ 
    String str = br.readLine(); 
    String[] strAry = br.readLine().split(" ");
    String op = strAry[0];
    int number = Integer.parseInt(strAry[1]);
    number--;   

    if(op.equals("S")){            
      cards[0][number]=1; 
    }else if(op.equals("H")){
      cards[1][number]=1;
    }else if(op.equals("C")){
      cards[2][number]=1;
    }else if(op.equals("D")){
      cards[3][number]=1;
    }

   }
    
      
  }
  
 }
}

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

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  int num,i,j;
  num = Integer.parseInt(br.readLine());
  int[][] cards = new int[4][13];   
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     cards[i][j]=0;
    }
   }

   for(int i=0;i<num;i++){ 
    String str = br.readLine(); 
    String[] strAry = br.readLine().split(" ");
    String op = strAry[0];
    int number = Integer.parseInt(strAry[1]);
    number--;   

    if(op.equals("S")){            
      cards[0][number]=1; 
    }else if(op.equals("H")){
      cards[1][number]=1;
    }else if(op.equals("C")){
      cards[2][number]=1;
    }else if(op.equals("D")){
      cards[3][number]=1;
    }

   }
    
   for(int i=0;i<4;i++){
    for(int j=0;j<11;j++){
     if(cards[i][j]==0){
       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 if(i==3){
         System.out.println("D "+ (j+1));
       }
    }
   }
   
  }
 }
}

Compiler output:
Main.java:15: error: variable i is already defined in method main(String[])
   for(int i=0;i<num;i++){ 
           ^
Main.java:34: error: variable i is already defined in method main(String[])
   for(int i=0;i<4;i++){
           ^
Main.java:35: error: variable j is already defined in method main(String[])
    for(int j=0;j<11;j++){
            ^
3 errors
Language: Java

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  int num,i,j;
  num = Integer.parseInt(br.readLine());
  int[][] cards = new int[4][13];   
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     cards[i][j]=0;
    }
   }

   for(int i=0;i<num;i++){ 
    String str = br.readLine(); 
    String[] strAry = br.readLine().split(" ");
    String op = strAry[0];
    int number = Integer.parseInt(strAry[1]);
    number--;   

    if(op.equals("S")){            
      cards[0][number]=1; 
    }else if(op.equals("H")){
      cards[1][number]=1;
    }else if(op.equals("C")){
      cards[2][number]=1;
    }else if(op.equals("D")){
      cards[3][number]=1;
    }

   }
    
System.out.println("D "+ 5);
 }
}

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

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  int num,i,j;
  num = Integer.parseInt(br.readLine());
  int[][] cards = new int[4][13];   
   for(int i=0;i<4;i++){
    for(j=0;j<13;j++){
     cards[i][j]=0;
    }
   }

   for(int i=0;i<num;i++){ 
    String str = br.readLine(); 
    String[] strAry = br.readLine().split(" ");
    String op = strAry[0];
    int number = Integer.parseInt(strAry[1]);
    number--;   

    if(op.equals("S")){            
      cards[0][number]=1; 
    }else if(op.equals("H")){
      cards[1][number]=1;
    }else if(op.equals("C")){
      cards[2][number]=1;
    }else if(op.equals("D")){
      cards[3][number]=1;
    }

   }
    
System.out.println("D "+ 5);
 }
}

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

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  int num,i,j;
  num = Integer.parseInt(br.readLine());
  int[][] cards = new int[4][13];   
   for(int i=0;i<4;i++){
    for(j=0;j<13;j++){
     cards[i][j]=0;
    }
   }

   for(int h=0;h<num;h++){ 
    String str = br.readLine(); 
    String[] strAry = br.readLine().split(" ");
    String op = strAry[0];
    int number = Integer.parseInt(strAry[1]);
    number--;   

    if(op.equals("S")){            
      cards[0][number]=1; 
    }else if(op.equals("H")){
      cards[1][number]=1;
    }else if(op.equals("C")){
      cards[2][number]=1;
    }else if(op.equals("D")){
      cards[3][number]=1;
    }

   }
    
System.out.println("D "+ 5);
 }
}

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

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  int num,i,j;
  num = Integer.parseInt(br.readLine());
  int[][] cards = new int[4][13]; 
  
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     cards[i][j]=0;
    }
   }
  
   for(int i=0;i<num;i++){ 
    String str = br.readLine(); 
    String[] strAry = br.readLine().split(" ");
    String op = strAry[0];
    int number = Integer.parseInt(strAry[1]);
    number--;   

    if(op.equals("S")){            
      cards[0][number]=1; 
    }else if(op.equals("H")){
      cards[1][number]=1;
    }else if(op.equals("C")){
      cards[2][number]=1;
    }else if(op.equals("D")){
      cards[3][number]=1;
    }
   }


  
 }
}

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

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  int num,i,j;
  num = Integer.parseInt(br.readLine());
  int[][] cards = new int[4][13];   
   for(i=0;i<4;i++){
    for(j=0;j<13;j++){
     cards[i][j]=0;
    }
   }

   for(int i=0;i<num;i++){ 
    String str = br.readLine(); 
    String[] strAry = str.split(" ");
    String op = strAry[0];
    int number = Integer.parseInt(strAry[1]);
    number--;   

    if(op.equals("S")){            
      cards[0][number]=1; 
    }else if(op.equals("H")){
      cards[1][number]=1;
    }else if(op.equals("C")){
      cards[2][number]=1;
    }else if(op.equals("D")){
      cards[3][number]=1;
    }
   }
    
   for(int i=0;i<4;i++){
    for(int j=0;j<13;j++){
     if(cards[i][j]==0){
       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 if(i==3){
         System.out.println("D "+ (j+1));
       }
    }
   }
   
  }
 }
}

Compiler output:
Main.java:15: error: variable i is already defined in method main(String[])
   for(int i=0;i<num;i++){ 
           ^
Main.java:33: error: variable i is already defined in method main(String[])
   for(int i=0;i<4;i++){
           ^
Main.java:34: error: variable j is already defined in method main(String[])
    for(int j=0;j<13;j++){
            ^
3 errors
Language: Java

import java.io.*;

class Main{
 public static void main(String[] args)throws IOException{
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  int num,i,j;
  num = Integer.parseInt(br.readLine());
  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 i=0;i<num;i++){ 
    String str = br.readLine(); 
    String[] strAry = str.split(" ");
    String op = strAry[0];
    int number = Integer.parseInt(strAry[1]);
    number--;   

    if(op.equals("S")){            
      cards[0][number]=1; 
    }else if(op.equals("H")){
      cards[1][number]=1;
    }else if(op.equals("C")){
      cards[2][number]=1;
    }else if(op.equals("D")){
      cards[3][number]=1;
    }
   }
    
   for(int i=0;i<4;i++){
    for(int j=0;j<13;j++){
     if(cards[i][j]==0){
       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 if(i==3){
         System.out.println("D "+ (j+1));
       }
    }
   }
   
  }
 }
}

Compiler output:
Main.java:9: error: variable i is already defined in method main(String[])
   for(int i=0;i<4;i++){
           ^
Main.java:10: error: variable j is already defined in method main(String[])
    for(int j=0;j<13;j++){
            ^
Main.java:15: error: variable i is already defined in method main(String[])
   for(int i=0;i<num;i++){ 
           ^
Main.java:33: error: variable i is already defined in method main(String[])
   for(int i=0;i<4;i++){
           ^
Main.java:34: error: variable j is already defined in method main(String[])
    for(int j=0;j<13;j++){
            ^
5 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		ArrayList<String> suite = new ArrayList<String>();
		ArrayList<Integer> number = new ArrayList<Integer>();
		String n =scan.nextLine();
		int saizu =0;
		while(scan.hasNextLine()){
			Srring x = scan.next();
			suite.add(x);
			int y = scan.nextInt();
			number.add(y);
			
		}
			//System.out.println("");
	}
}

Compiler output:
Main.java:12: error: cannot find symbol
			Srring x = scan.next();
			^
  symbol:   class Srring
  location: class Main
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		ArrayList<String> suite = new ArrayList<String>();
		ArrayList<Integer> number = new ArrayList<Integer>();
		String n =scan.nextLine();
		while(scan.hasNext()){
			String x = scan.next();
			suite.add(x);
			int y = scan.nextInt();
			number.add(y);
		}
		
		for(int i=1; i!=14; i++ ){//???????????????1-13?????¢???
			for (int ii=0;ii<suite.size();ii++)
			{
				if(suite.get(ii) =='S' && number.get(ii) == number.get(i)){
					//???????????????????????¨??????
					break;
				}
				else{
					System.out.print(suite.get(i)+" "+number.get(i));
				}
			}
		}
	System.out.println("");
	}
}

Compiler output:
Main.java:20: error: bad operand types for binary operator '=='
				if(suite.get(ii) =='S' && number.get(ii) == number.get(i)){
				                 ^
  first type:  String
  second type: char
1 error