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

public class Main {
    public static void main(String[] args) {
        Scanner stdIn = new Scanner(System.in);
        int numOfCards = stdIn.nextInt();

        boolean[] spadeCardsExitsance = new boolean[13];
        boolean[] hartCardsExitsance = new boolean[13];
        boolean[] clubCardsExitsance = new boolean[13];
        boolean[] diamondCardsExitsance = new boolean[13];

        for(int i = 0; i < numOfCards; i++) {
            String suit = stdIn.next();
            int rank = stdIn.nextInt();
            
            switch(suit) {
            case "S":
                spadeCardsExitsance[rank - 1] = true;
                break;
            case "H":
                hartCardsExitsance [rank - 1] = true;
                break;
            case "C":
                clubCardsExitsance [rank - 1] = true;
                break;
            case "D":
                diamondCardsExitsance [rank - 1] = true;
                break;
            default:
                break;
            }
        }

        for(int i = 0; i < 13; i++) {
            if(!spadeCardsExitsance[i]) {
                System.out.println("S " + (i + 1));
            }
        }
        for(int i = 0; i < 13; i++) {
            if(!hartCardsExitsance[i]) {
                System.out.println("H " + (i + 1));
            }
        }
        for(int i = 0; i < 13; i++) {
            if(!clubCardsExitsance[i]) {
                System.out.println("S " + (i + 1));
            }
        }
        for(int i = 0; i < 13; i++) {
            if(!diamondCardsExitsance[i]) {
                System.out.println("S " + (i + 1));
            }
        }
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
        Scanner stdIn = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner stdIn = new Scanner(System.in);
                            ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

package Hello_world;

import java.util.Scanner;

public class Chessboard {

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		String temp = scanner.nextLine();
		String[] a = temp.split(" ");

		int H = Integer.parseInt(a[0]);
		int W = Integer.parseInt(a[1]);
		int flag = 0;

		while ((1 <= H && 300 >= H) && (1 <= W && 300 >= W)) {
			for (int x = 0; x < H; x++) {
				for (int y = 0; y < W; y++) {
					if (y % 2 == flag) {
						System.out.print("#");
					} else {
						System.out.print(".");
					}

				}
				if (flag == 1)
					flag = 0;
				else
					flag = 1;
				// System.out.println(flag);
				System.out.println(" ");
			}
			flag =0;
			String temp1 = scanner.nextLine();
			String[] a1 = temp1.split(" ");
			H = Integer.parseInt(a1[0]);
			W = Integer.parseInt(a1[1]);
		}

	}
}

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

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

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

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
 
public class Main {
    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        int n = Integer.parseInt(str);
 
        String inputList[] = new String[n];
        for (int i = 0; i < n; i++) {
            String str2 = scan.nextLine();
            inputList[i] = str2;
        }
        scan.close();
 
        ArrayList<String> allCardList[][] = new ArrayList<String>();
        
        
        String [][] ali = new String[4][13];
        String Card[]= {"S","H","C","D"};
        
        for ( int i=0;i<4 ; i++>){
        	ali[i][]= Card[i];
        	
        	for(int j= 0;j<52;j++){
        		ali[][j]= j+1 ;
        	}
//
//    for (int i =0; i<52;i++){
//    	if (! )
//    }
        
        for (int i = 1; i <= 13; i++) {
            allCardList.add("S" + " " + i);
        }
        for (int i = 1; i <= 13; i++) {
            allCardList.add("H" + " " + i);
        }
        for (int i = 1; i <= 13; i++) {
            allCardList.add("C" + " " + i);
        }
        for (int i = 1; i <= 13; i++) {
            allCardList.add("D" + " " + i);
        }
 
        for (int i = 0; i < 52; i++) {
            if (!(Arrays.asList(inputList).contains(allCardList.get(i)))) {
                System.out.println(allCardList.get(i));
            }
        }
    }
}

Compiler output:
Main.java:24: error: illegal start of expression
        for ( int i=0;i<4 ; i++>){
                                ^
Main.java:24: error: not a statement
        for ( int i=0;i<4 ; i++>){
                               ^
Main.java:25: error: illegal start of expression
        	ali[i][]= Card[i];
        	       ^
Main.java:28: error: ']' expected
        		ali[][j]= j+1 ;
        		      ^
Main.java:28: error: ';' expected
        		ali[][j]= j+1 ;
        		       ^
Main.java:28: error: not a statement
        		ali[][j]= j+1 ;
        		           ^
Main.java:54: error: reached end of file while parsing
}
 ^
7 errors
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args) {
    Scanner scan= new Scanner(System.in);
    boolean[][] trump = new boolean[4][13];
    char[] head = {'S' , 'H' , 'C' , 'D'};
    int n = scan.nextInt();
    for (int i = 0; i < n ; i++ ) {
      char head_in = scan.next().charAt(0);
      int num = Integer.parseInt(in.next());

      switch(head_in){
        case 'S':trump[0][num-1] = true;break;
        case 'H':trump[1][num-1] = true;break;
        case 'C':trump[2][num-1] = true;break;
        case 'D':trump[3][num-1] = true;break;
      }
    }
    for (int i =0 ;i < 4 ;i++ ) {
      for (int j = 0;j < 13 ;j++ ) {
        if (trump[i][j] == false) {
          System.out.println(head[1]+" "+(j+1));

        }

      }

    }
  }
}

Compiler output:
Main.java:10: error: cannot find symbol
      int num = Integer.parseInt(in.next());
                                 ^
  symbol:   variable in
  location: class Main
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;

public class Print_a_Rectangle {

	public static void main(String[] args) throws Exception {
        // TODO ?????????????????????????????????????????????
        
        boolean first=true;
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            String line;
            int i=0,n=0;
            Map<Integer,String> map=new HashMap<Integer,String>();
            boolean[][] card=new boolean[4][14];
            while ((line = br.readLine()) != null) {
            	if(first){
            		n=Integer.parseInt(line);
            		map.put(0, "S");
            		map.put(1, "H");
            		map.put(2, "C");
            		map.put(3, "D");
            		first=false;
            	}else{
            		String[] str=line.split(" ");
            		if(str[0].equals("S")){
            			card[0][Integer.parseInt(str[1])]=true;
            		}else if(str[0].equals("H")){
            			card[1][Integer.parseInt(str[1])]=true;
            		}else if(str[0].equals("C")){
            			card[2][Integer.parseInt(str[1])]=true;
            		}else if(str[0].equals("D")){
            			card[3][Integer.parseInt(str[1])]=true;
            		}
            		i++;
            		if(i==n){
            			for(int j=0;j<4;j++){
            				String a=map.get(j);
            				for(int l=1;l<14;l++){
            					if(!card[j][l]){
            						System.out.println(a+" "+l);
            					}
            				}
            			}
            			break;
            		}
                	
            	}
            }
        }
    }

}

Compiler output:
Main.java:6: error: class Print_a_Rectangle is public, should be declared in a file named Print_a_Rectangle.java
public class Print_a_Rectangle {
       ^
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));
String str=br.readLine();
int n=Integer.parseInt(str);
int[] Scard=new int[13];
int[] Hcard=new int[13];
int[] Ccard=new int[13];
int[] Dcard=new int[13];
for(int i=0; i<n; i++){
String str2=br.readLine();
String[] card=str2.split(" ");
switch(card[0]){
case "S": Scard=numCheck(card[1],Scard);
          break;
case "H": Hcard=numCheck(card[1],Hcard);
          break;
case "C": Ccard=numCheck(card[1],Ccard);
          break;
case "D": Dcard=numCheck(card[1],Dcard);
          break;
default: break;
}
}
cardPrint(Scard,"S");
cardPrint(Hcard,"H");
cardPrint(Ccard,"C");
cardPrint(Dcard,"D");
System.out.println();
br.close();
}
static int[] numCheck(String num,int[] arr2){
int c=Integer.parseInt(num);
arr2[c]=1;
return arr;
}
static void cardPrint(int[] tramp, String suit){
for(int j=0; j<13; j++){
if(int[j]==0)  System.out.println(suit+" "+j);
}
}
} 

Compiler output:
Main.java:40: error: ']' expected
if(int[j]==0)  System.out.println(suit+" "+j);
       ^
Main.java:40: error: ';' expected
if(int[j]==0)  System.out.println(suit+" "+j);
        ^
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));
String str=br.readLine();
int n=Integer.parseInt(str);
int[] Scard=new int[13];
int[] Hcard=new int[13];
int[] Ccard=new int[13];
int[] Dcard=new int[13];
for(int i=0; i<n; i++){
String str2=br.readLine();
String[] card=str2.split(" ");
switch(card[0]){
case "S": Scard=numCheck(card[1],Scard);
          break;
case "H": Hcard=numCheck(card[1],Hcard);
          break;
case "C": Ccard=numCheck(card[1],Ccard);
          break;
case "D": Dcard=numCheck(card[1],Dcard);
          break;
default: break;
}
}
cardPrint(Scard,"S");
cardPrint(Hcard,"H");
cardPrint(Ccard,"C");
cardPrint(Dcard,"D");
System.out.println();
br.close();
}
static int[] numCheck(String num,int[] arr2){
int c=Integer.parseInt(num);
arr2[c]=1;
return arr;
}
static void cardPrint(int[] tramp, String suit){
for(int j=0; j<13; j++){
if(tramp[j]==0)  System.out.println(suit+" "+j);
}
}
} 

Compiler output:
Main.java:36: error: cannot find symbol
return arr;
       ^
  symbol:   variable arr
  location: class Main
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));
String str=br.readLine();
int n=Integer.parseInt(str);
int[] Scard={0,0,0,0,0,0,0,0,0,0,0,0,0};
int[] Hcard={0,0,0,0,0,0,0,0,0,0,0,0,0};
int[] Ccard={0,0,0,0,0,0,0,0,0,0,0,0,0};
int[] Dcard={0,0,0,0,0,0,0,0,0,0,0,0,0};
for(int i=0; i<n; i++){
String str2=br.readLine();
String[] card=str2.split(" ");
numCheck(card[1],card[0]);
}
cardPrint(Scard,"S");
cardPrint(Hcard,"H");
cardPrint(Ccard,"C");
cardPrint(Dcard,"D");
System.out.println();
br.close();
}
static void numCheck(String num,String mark){
int c=Integer.parseInt(num);
switch(mark){
case "S": Scard[c-1]=1;
          break;
case "H": Hcard[c-1]=1;
          break;
case "C": Ccard[c-1]=1;
          break;
case "D": Dcard[c-1]=1;
          break;
default:  break;
}
}
static void cardPrint(int[] tramp, String suit){
for(int j=0; j<13; j++){
if(tramp[j]==0)  System.out.println(suit+" "+j+1);
}
}
} 

Compiler output:
Main.java:26: error: cannot find symbol
case "S": Scard[c-1]=1;
          ^
  symbol:   variable Scard
  location: class Main
Main.java:28: error: cannot find symbol
case "H": Hcard[c-1]=1;
          ^
  symbol:   variable Hcard
  location: class Main
Main.java:30: error: cannot find symbol
case "C": Ccard[c-1]=1;
          ^
  symbol:   variable Ccard
  location: class Main
Main.java:32: error: cannot find symbol
case "D": Dcard[c-1]=1;
          ^
  symbol:   variable Dcard
  location: class Main
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));
String str=br.readLine();
int n=Integer.parseInt(str);
int[][] tramp=new int[4][13];
for(int i=0; i<n; i++){
String str2=br.readLine();
String[] card=str2.split(" ");
int c=Integer.parseInt(card[1]);
switch(card[0]){
case "S": tramp[0][c]=1; break;
case "H": tramp[1][c]=1; break;
case "C": tramp[2][c]=1; break;
case "D": tramp[3][c]=1; break;
}
}
for(int j=0; j<4; j++){
for(int k=0; k<13; k++){
if(card[j][k]==0)  printCard(j, k);
}
}
System.out.println();
br.close();
}
static void printCard(int suit, int num){
switch(suit){
case 0: System.out.println("S "+num); break;
case 1: System.out.println("H "+num); break;
case 2: System.out.println("C "+num); break;
case 3: System.out.println("D "+num); break;
default: break;
}
}
} 

Compiler output:
Main.java:21: error: cannot find symbol
if(card[j][k]==0)  printCard(j, k);
   ^
  symbol:   variable card
  location: class Main
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));
String str=br.readLine();
int n=Integer.parseInt(str);
int[][] tramp=new int[4][13];
if(n!=52){
for(int i=0; i<n; i++){
String str2=br.readLine();
String[] card=str2.parseInt(str2);
int c=Integer.parseInt(card[1])-1;
switch(card[0]){
case 'S': tramp[0][c]=1; break;
case 'H': tramp[1][c]=1; break;
case 'C': tramp[2][c]=1; break;
case 'D': tramp[3][c]=1; break;
default:  break;
} 
}
}
for(int j=0; j<4; j++){
for(int k=0; k<13; k++){
if(tramp[j][k]==0){
switch(j){
case 0: System.out.println("S "+(k+1)); break;
case 1: System.out.println("H "+(k+1)); break; 
case 2: System.out.println("C "+(k+1)); break;
case 3: System.out.println("D "+(k+1)); break;
default: break;
}
}
}
}
System.out.println();
br.close();
}
}

Compiler output:
Main.java:11: error: cannot find symbol
String[] card=str2.parseInt(str2);
                  ^
  symbol:   method parseInt(String)
  location: variable str2 of type String
Main.java:14: error: incompatible types: char cannot be converted to String
case 'S': tramp[0][c]=1; break;
     ^
Main.java:15: error: incompatible types: char cannot be converted to String
case 'H': tramp[1][c]=1; break;
     ^
Main.java:16: error: incompatible types: char cannot be converted to String
case 'C': tramp[2][c]=1; break;
     ^
Main.java:17: error: incompatible types: char cannot be converted to String
case 'D': tramp[3][c]=1; break;
     ^
5 errors
Language: Java

import java.io.*;
class Main{
public static void main(String[] args)throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String str=br.readLine();
int n=Integer.parseInt(str);
int[][] tramp=new int[4][13];
if(n!=52){
for(int i=0; i<n; i++){
String str2=br.readLine();
String[] card=str2.split(" ");
int c=Integer.parseInt(card[1])-1;
switch(card[0]){
case 'S': tramp[0][c]=1; break;
case 'H': tramp[1][c]=1; break;
case 'C': tramp[2][c]=1; break;
case 'D': tramp[3][c]=1; break;
default:  break;
} 
}
}
for(int j=0; j<4; j++){
for(int k=0; k<13; k++){
if(tramp[j][k]==0){
switch(j){
case 0: System.out.println("S "+(k+1)); break;
case 1: System.out.println("H "+(k+1)); break; 
case 2: System.out.println("C "+(k+1)); break;
case 3: System.out.println("D "+(k+1)); break;
default: break;
}
}
}
}
System.out.println();
br.close();
}
}

Compiler output:
Main.java:14: error: incompatible types: char cannot be converted to String
case 'S': tramp[0][c]=1; break;
     ^
Main.java:15: error: incompatible types: char cannot be converted to String
case 'H': tramp[1][c]=1; break;
     ^
Main.java:16: error: incompatible types: char cannot be converted to String
case 'C': tramp[2][c]=1; break;
     ^
Main.java:17: error: incompatible types: char cannot be converted to String
case 'D': tramp[3][c]=1; break;
     ^
4 errors
Language: Java

import java.io.*;

public class Main {
	public static void main(String[] args)throws IOException {
		BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());  //?????£??????????????????????????°?????\????????????
	    String[] cards ;
	    
   //??¨???????????????????¨????????????¶?????????????????????????????????.
	    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 ;
	    }
	
	//?????£??????????????????????????¨???????????????????¨?????????\???????????????????????????0 
	 if(0<= n & n <= 52) {
	    for(int j = 0 ; j < n ; j ++) {
	    	cards = br.readLine().split(" ");
	    	int x = Integer.parseInt(cards[1]);
	    	
	//??????????????¶????????????????????????   	
	    	switch(cards[0].charAt(0)){
	    	      case 'S' : S[x-1] = true ; break ;
	    	      case 'H' : H[x-1] = true ; break ;
	    	      case 'C' : C[x-1] = true ; break ;
	    	      case 'D' : D[x-1] = true ; break ;
	    	}
	    }
	 }
	 
	//4?¨???????????????????????????£????????????????????????????????????????????????????????????    
	    int j = 0 ;
	    while( j < 4) {
	    	for(int i = 0; i < 13 ; i++) {
	    		switch(j) {
	    		      case 0 : if( S[i] == false ) 
	    		       System.out.println("S" + " " + (i+1)); break ;
	    		      case 1 : if( H[i] == false ) 
   		    	       System.out.println("H" + " " + (i+1)); break ;
	    		      case 2 : if( C[i] == false ) 
   		    	       System.out.println("C" + " " + (i+1)); break ;
	    		      case 3 : if( D[i] == false ) 
   		    	       System.out.println("D" + " " + (i+1)); break ;
	    		}
	    	}
	    	j++;
	    }

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

import java.io.*;

public class Main {
	public static void main(String[] args)throws IOException {
		BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());  //?????£??????????????????????????°?????\????????????
	    String[] cards ;
	    
   //??¨???????????????????¨????????????¶?????????????????????????????????.
	    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 ;
	    }
	
	//?????£??????????????????????????¨???????????????????¨?????????\???????????????????????????0 
	
	    for(int j = 0 ; j < n ; j ++) {
	    	cards = br.readLine().split(" ");
	    	int x = Integer.parseInt(cards[1]);
	    	
	//??????????????¶????????????????????????   	
	    	switch(cards[0].charAt(0)){
	    	      case 'S' : S[x-1] = true ; break ;
	    	      case 'H' : H[x-1] = true ; break ;
	    	      case 'C' : C[x-1] = true ; break ;
	    	      case 'D' : D[x-1] = true ; break ;
	    	}
	    }
	 
	 
	//4?¨???????????????????????????£????????????????????????????????????????????????????????????    
	    int j = 0 ;
	    while( j < 4) {
	    	for(int i = 0; i < 13 ; i++) {
	    		switch(j) {
	    		      case 0 : if( S[i] == false ) 
	    		       System.out.println("S" + " " + (i+1)); break ;
	    		      case 1 : if( H[i] == false ) 
   		    	       System.out.println("H" + " " + (i+1)); break ;
	    		      case 2 : if( C[i] == false ) 
   		    	       System.out.println("C" + " " + (i+1)); break ;
	    		      case 3 : if( D[i] == false ) 
   		    	       System.out.println("D" + " " + (i+1)); break ;
	    		}
	    	}
	    	j++;
	    }

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

import java.io.*;

public class Main {
	public static void main(String[] args)throws IOException {
		BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());  //?????£??????????????????????????°?????\????????????
	    String[] cards ;
	    
   //??¨???????????????????¨????????????¶?????????????????????????????????.
	    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 ;
	    }
	
	//?????£??????????????????????????¨???????????????????¨?????????\???????????????????????????
	    for(int j = 0 ; j < n ; j ++) {
	    	cards = br.readLine().split(" ");
	    	int x = Integer.parseInt(cards[1]);
	    	
	//??????????????¶????????????????????????   	
	    	switch(cards[0].charAt(0)){
	    	      case 'S' : S[x-1] = true ; break ;
	    	      case 'H' : H[x-1] = true ; break ;
	    	      case 'C' : C[x-1] = true ; break ;
	    	      case 'D' : D[x-1] = true ; break ;
	    	}
	    }
	 
	//4?¨???????????????????????????£????????????????????????????????????????????????????????????    
	    int j = 0 ;
	    while( j < 4) {
	    	for(int i = 0; i < 13 ; i++) {
	    		switch(j) {
	    		      case 0 : if( S[i] == false ) 
	    		       System.out.println("S" + " " + (i+1)); break ;
	    		      case 1 : if( H[i] == false ) 
   		    	       System.out.println("H" + " " + (i+1)); break ;
	    		      case 2 : if( C[i] == false ) 
   		    	       System.out.println("C" + " " + (i+1)); break ;
	    		      case 3 : if( D[i] == false ) 
   		    	       System.out.println("D" + " " + (i+1)); break ;
	    		}
	    	}
	    	j++;
	    }

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

import java.io.*;

public class Main {
	public static void main(String[] args)throws IOException {
		BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());  //?????£??????????????????????????°?????\????????????
	    String[] cards ;
	    
   //??¨???????????????????¨????????????¶?????????????????????????????????.
	    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 ;
	    }
	
	//?????£??????????????????????????¨???????????????????¨?????????\???????????????????????????
	    for(int j = 0 ; j < n ; j ++) {
	    	cards = br.readLine().split(" ");
	    	int x = Integer.parseInt(cards[1]);
	    	
	//??????????????¶????????????????????????   	
	    	switch(cards[0].charAt(0)){
	    	      case 'S' : S[x-1] = true ; break ;
	    	      case 'H' : H[x-1] = true ; break ;
	    	      case 'C' : C[x-1] = true ; break ;
	    	      case 'D' : D[x-1] = true ; break ;
	    	}
	    }
	 
	//4?¨???????????????????????????£????????????????????????????????????????????????????????????    
	    int j = 0 ;
	    while( j < 4) {
	    	for(int i = 0; i < 13 ; i++) {
	    		switch(j) {
	    		      case 0 : if( S[i] == false ) 
	    		       System.out.println("S" + " " + (i+1)); break ;
	    		      case 1 : if( H[i] == false ) 
   		    	       System.out.println("H" + " " + (i+1)); break ;
	    		      case 2 : if( C[i] == false ) 
   		    	       System.out.println("C" + " " + (i+1)); break ;
	    		      case 3 : if( D[i] == false ) 
   		    	       System.out.println("D" + " " + (i+1)); break ;
	    		}
	    	}
	    	j++;
	    }
}

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


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

public class ren11 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int A = sc.nextInt();

		List<Integer> listCardLankS = new ArrayList<Integer>();
		List<Integer> listCardLankH = new ArrayList<Integer>();
		List<Integer> listCardLankC = new ArrayList<Integer>();
		List<Integer> listCardLankD = new ArrayList<Integer>();

		List<String> listEgaraS = new ArrayList<String>();
		List<String> listEgaraH = new ArrayList<String>();
		List<String> listEgaraC = new ArrayList<String>();
		List<String> listEgaraD = new ArrayList<String>();

		for(int i = 1; i < 14; i++) {
			listCardLankS.add(i);
			listCardLankH.add(i);
			listCardLankC.add(i);
			listCardLankD.add(i);

			listEgaraS.add("S");
			listEgaraH.add("H");
			listEgaraC.add("C");
			listEgaraD.add("D");
		}

		for(int i = 0; i < A; i++) {
			String strA = sc.next();
			int intA = sc.nextInt();

		//	System.out.println("?????? : "+strA);
		//	System.out.println("????????? : "+intA);
			if(listEgaraS.contains(strA) && listCardLankS.contains(intA)) {
		//		System.out.println("?????????????????????????????£?????????");
				listEgaraS.remove(strA);
				listCardLankS.remove((Integer)intA);
			}
			if(listEgaraH.contains(strA) && listCardLankH.contains(intA)) {
		//		System.out.println("?????????????????????????????£?????????");
				listEgaraH.remove(strA);
				listCardLankH.remove((Integer)intA);
			}
			if(listEgaraC.contains(strA) && listCardLankC.contains(intA)) {
		//		System.out.println("?????????????????????????????£?????????");
				listEgaraC.remove(strA);
				listCardLankC.remove((Integer)intA);
			}
			if(listEgaraD.contains(strA) && listCardLankD.contains(intA)) {
		//		System.out.println("?????????????????????????????£?????????");
				listEgaraD.remove(strA);
				listCardLankD.remove((Integer)intA);
			}

		}

		for(int j : listCardLankS) {
			System.out.println("S "+j);
		}
		for(int j : listCardLankH) {
			System.out.println("H "+j);
		}
		for(int j : listCardLankC) {
			System.out.println("C "+j);
		}
		for(int j : listCardLankD) {
			System.out.println("D "+j);
		}
	}
}

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

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

class Main{
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		boolean[] numbers = new int[4][13];
		
		for(int i = 0; i < n; i++){
			String mark = scanner.nextString();
			int card = scanner.nextInt();
			if(mark.equals("S")){
				numbers[0][card-1] = true;
			}else if(mark.equals("H")){
				numbers[1][card-1] = true;
			}else if(mark.equals("C")){
				numbers[2][card-1] = true;
			}else if(mark.equals("D")){
				numbers[3][card-1] = true;
			}
		}

		for(int i = 0; i <= 3; i++){
			for(int j = 0; j <= 13; j++){
				if(numbers[i][j] == false){
					if(i.equals("S")){
						System.out.println("S " + j)
					}else if(mark.equals("H")){
						System.out.println("H " + j)
					}else if(mark.equals("C")){
						System.out.println("C " + j)
					}else if(mark.equals("D")){
						System.out.println("D " + j)
					}
				}
			}
		}
	}

}

Compiler output:
Main.java:28: error: ';' expected
						System.out.println("S " + j)
						                            ^
Main.java:30: error: ';' expected
						System.out.println("H " + j)
						                            ^
Main.java:32: error: ';' expected
						System.out.println("C " + j)
						                            ^
Main.java:34: error: ';' expected
						System.out.println("D " + j)
						                            ^
4 errors
Language: Java

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

class Main{
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		boolean[] numbers = new int[4][13];
		
		for(int i = 0; i < n; i++){
			String mark = scanner.nextString();
			int card = scanner.nextInt();
			if(mark.equals("S")){
				numbers[0][card-1] = true;
			}else if(mark.equals("H")){
				numbers[1][card-1] = true;
			}else if(mark.equals("C")){
				numbers[2][card-1] = true;
			}else if(mark.equals("D")){
				numbers[3][card-1] = true;
			}
		}

		for(int i = 0; i <= 3; i++){
			for(int j = 0; j <= 13; j++){
				if(numbers[i][j] == false){
					if(i.equals("S")){
						System.out.println("S " + j);
					}else if(mark.equals("H")){
						System.out.println("H " + j);
					}else if(mark.equals("C")){
						System.out.println("C " + j);
					}else if(mark.equals("D")){
						System.out.println("D " + j);
					}
				}
			}
		}
	}

}

Compiler output:
Main.java:8: error: incompatible types: int[][] cannot be converted to boolean[]
		boolean[] numbers = new int[4][13];
		                    ^
Main.java:11: error: cannot find symbol
			String mark = scanner.nextString();
			                     ^
  symbol:   method nextString()
  location: variable scanner of type Scanner
Main.java:14: error: array required, but boolean found
				numbers[0][card-1] = true;
				          ^
Main.java:16: error: array required, but boolean found
				numbers[1][card-1] = true;
				          ^
Main.java:18: error: array required, but boolean found
				numbers[2][card-1] = true;
				          ^
Main.java:20: error: array required, but boolean found
				numbers[3][card-1] = true;
				          ^
Main.java:26: error: array required, but boolean found
				if(numbers[i][j] == false){
				             ^
Main.java:27: error: int cannot be dereferenced
					if(i.equals("S")){
					    ^
Main.java:29: error: cannot find symbol
					}else if(mark.equals("H")){
					         ^
  symbol:   variable mark
  location: class Main
Main.java:31: error: cannot find symbol
					}else if(mark.equals("C")){
					         ^
  symbol:   variable mark
  location: class Main
Main.java:33: error: cannot find symbol
					}else if(mark.equals("D")){
					         ^
  symbol:   variable mark
  location: class Main
11 errors
Language: Java

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

class Main{
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		boolean[] numbers = new boolean[4][13];
		
		for(int i = 0; i < n; i++){
			String mark = scanner.next();
			int card = scanner.nextInt();
			if(mark.equals("S")){
				numbers[0][card-1] = true;
			}else if(mark.equals("H")){
				numbers[1][card-1] = true;
			}else if(mark.equals("C")){
				numbers[2][card-1] = true;
			}else if(mark.equals("D")){
				numbers[3][card-1] = true;
			}
		}

		for(int i = 0; i <= 3; i++){
			for(int j = 0; j <= 13; j++){
				if(numbers[i][j] == false){
					if(i.equals("S")){
						System.out.println("S " + j);
					}else if(mark.equals("H")){
						System.out.println("H " + j);
					}else if(mark.equals("C")){
						System.out.println("C " + j);
					}else if(mark.equals("D")){
						System.out.println("D " + j);
					}
				}
			}
		}
	}

}

Compiler output:
Main.java:8: error: incompatible types: boolean[][] cannot be converted to boolean[]
		boolean[] numbers = new boolean[4][13];
		                    ^
Main.java:14: error: array required, but boolean found
				numbers[0][card-1] = true;
				          ^
Main.java:16: error: array required, but boolean found
				numbers[1][card-1] = true;
				          ^
Main.java:18: error: array required, but boolean found
				numbers[2][card-1] = true;
				          ^
Main.java:20: error: array required, but boolean found
				numbers[3][card-1] = true;
				          ^
Main.java:26: error: array required, but boolean found
				if(numbers[i][j] == false){
				             ^
Main.java:27: error: int cannot be dereferenced
					if(i.equals("S")){
					    ^
Main.java:29: error: cannot find symbol
					}else if(mark.equals("H")){
					         ^
  symbol:   variable mark
  location: class Main
Main.java:31: error: cannot find symbol
					}else if(mark.equals("C")){
					         ^
  symbol:   variable mark
  location: class Main
Main.java:33: error: cannot find symbol
					}else if(mark.equals("D")){
					         ^
  symbol:   variable mark
  location: class Main
10 errors
Language: Java

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

class Main{
	public static void main(String[] args){
		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		boolean[][] numbers = new boolean[4][13];
		
		for(int i = 0; i < n; i++){
			String mark = scanner.next();
			int card = scanner.nextInt();
			if(mark.equals("S")){
				numbers[0][card-1] = true;
			}else if(mark.equals("H")){
				numbers[1][card-1] = true;
			}else if(mark.equals("C")){
				numbers[2][card-1] = true;
			}else if(mark.equals("D")){
				numbers[3][card-1] = true;
			}
		}

		for(int i = 0; i <= 3; i++){
			for(int j = 0; j <= 13; j++){
				if(numbers[i][j] == false){
					if(i.equals("S")){
						System.out.println("S " + j);
					}else if(mark.equals("H")){
						System.out.println("H " + j);
					}else if(mark.equals("C")){
						System.out.println("C " + j);
					}else if(mark.equals("D")){
						System.out.println("D " + j);
					}
				}
			}
		}
	}

}

Compiler output:
Main.java:27: error: int cannot be dereferenced
					if(i.equals("S")){
					    ^
Main.java:29: error: cannot find symbol
					}else if(mark.equals("H")){
					         ^
  symbol:   variable mark
  location: class Main
Main.java:31: error: cannot find symbol
					}else if(mark.equals("C")){
					         ^
  symbol:   variable mark
  location: class Main
Main.java:33: error: cannot find symbol
					}else if(mark.equals("D")){
					         ^
  symbol:   variable mark
  location: class Main
4 errors
Language: Java

import java.util.Scanner;

public class Main6B {

	public static void main(String[] args) {

		// ?????????????????\????????????
		Scanner sc = new Scanner(System.in);

		// ??\?????°????????????????????°
		int input = sc.nextInt();

		// ???????????????
		int[][] card = new int[4][13];

		// ?????°????????????????????????????????°????????????
		String mark;
		int num;

		// ?????????????????°?????????
		int cnt;

		// ??????????????????????????????
		for (cnt = 0; cnt < input; cnt++) {

			mark = sc.next();
			num = sc.nextInt();

			switch (mark) {

			case "S":
				card[0][num - 1] = 1;
				break;

			case "H":
				card[1][num - 1] = 1;
				break;

			case "C":
				card[2][num - 1] = 1;
				break;

			case "D":
				card[3][num - 1] = 1;
				break;
			}

		}

		// ???????????????????????\????????????
		// ????¨?????????°???num???cnt???????????¨
		for (num = 0; num < 3; num++) {

			for (cnt = 0; cnt < 12; cnt++) {

				if (card[num][cnt] == 0) {

					switch (num) {

					case 0:
						System.out.println("S " + (cnt+1));
						break;

					case 1:
						System.out.println("H " + (cnt+1));
						break;

					case 2:
						System.out.println("C " + (cnt+1));
						break;

					case 3:
						System.out.println("D " + (cnt+1));
						break;
					}

				}

			}

		}
		sc.close();
	}

}

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

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

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

                    ArrayList<String> cards = new ArrayList<String>();
                    
                    while(str != null){
                    cards.add(str);
                    str = br.readLine();
                    }    

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

                    for(int i=1;i<=13;i++){
                        String s = "S " +i;
                                                
                        if(cards.indexOf(s) == -1){
                            empty.add(s);
                        }
                            
                    }

                    for(int i=1;i<=13;i++){
                       
                        String h = "H " +i;
                       
                        if(cards.indexOf(h) == -1){
                            empty.add(h);
                        }
                    }

                    for(int i=1;i<=13;i++){

                        String c = "C " +i;

                        if(cards.indexOf(c) == -1){
                            empty.add(c);
                        }
                    }

                        for(int i=1;i<=13;i++){
         
                            String d = "D " +i;
                            
                            if(cards.indexOf(d) == -1){
                                empty.add(d);
                            }                        
                        }     
                    
                    for(int i=0;i<empty.size();i++){
                        System.out.println(empty.get(i));
                    }
}
}

Compiler output:
Main.java:7: error: unreported exception IOException; must be caught or declared to be thrown
   String str = br.readLine();
                           ^
Main.java:8: error: unreported exception IOException; must be caught or declared to be thrown
                    str =br.readLine();
                                    ^
Main.java:14: error: unreported exception IOException; must be caught or declared to be thrown
                    str = br.readLine();
                                     ^
3 errors
Language: Java

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

public class ITP1_6_B {
	public static void main(String[] args)throws IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int num = Integer.parseInt(br.readLine());
//		???????????????????????°???????????????
		ArrayList<Integer> Scd = new ArrayList<Integer>();
		ArrayList<Integer> Hcd = new ArrayList<Integer>();
		ArrayList<Integer> Dcd = new ArrayList<Integer>();
		ArrayList<Integer> Ccd = new ArrayList<Integer>();
//		S,H,D,C????????????????????¨???

		String[] buf = new String[2];
		int tmp = 0;
		for(int i=0; i<num; i++)
		{
			buf = br.readLine().split(" ");
			tmp = Integer.parseInt(buf[1]);
//			????????\?????????????????????????????????????´?
			switch(buf[0])
			{
			case "S":
				Scd.add(tmp);
				break;
			case "H":
				Hcd.add(tmp);
				break;
			case "D":
				Dcd.add(tmp);
				break;
			case "C":
				Ccd.add(tmp);
				break;
			}
		}

		for(int i=1; i<=13; i++)
		{
			if(Scd.indexOf(i)==-1)
			{
				System.out.println("S " + i);
			}
		}
//		???????????????????????????????????????????????§?????°???????´¢????????????
//		?????¨??????????????°???????????°??¨????????????
		for(int i=1; i<=13; i++)
		{
			if(Hcd.indexOf(i)==-1)
			{
				System.out.println("H " + i);
			}
		}
		for(int i=1; i<=13; i++)
		{
			if(Dcd.indexOf(i)==-1)
			{
				System.out.println("D " + i);
			}
		}
		for(int i=1; i<=13; i++)
		{
			if(Ccd.indexOf(i)==-1)
			{
				System.out.println("C " + i);
			}
		}
	}
}

Compiler output:
Main.java:6: 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 aizu22 {
	public static void main(String [] args) {
		Scanner stdIn = new Scanner(System.in);
		int n = stdIn.nextInt();
		String c;
		int x;
		boolean dataS[] = new boolean[13];
		boolean dataH[] = new boolean[13];
		boolean dataC[] = new boolean[13];
		boolean dataD[] = new boolean[13];
		
		for(int i = 0; i < 13; i++) {
			dataS[i] = false;
			dataH[i] = false;
			dataC[i] = false;
			dataD[i] = false;
		}
		
		for( int i = 1; i <= n; i++) {
			c = stdIn.next();
			x = stdIn.nextInt();
			
			switch(c) {
			case "S":
				dataS[x - 1] = true;
				break;
			case "H":
				dataH[x - 1] = true;
				break;
			case "C":
				dataC[x - 1] = true;
				break;
			case "D":
				dataD[x - 1] = true;
				break;
			default:
				break;
			}
		}
		
		for(int i = 0; i < 4; i++) {
			for(int j = 0; j < 13; j ++) {
				switch(i) {
				case 0:
					if(dataS[j] == false) {
						System.out.println("S　" + j + 1);
					}
					break;
				case 1:
					if(dataH[j] == false) {
						System.out.println("H　" + j + 1);
					}
					break;
				case 2:
					if(dataC[j] == false) {
						System.out.println("C　" + j + 1);
					}
					break;
				case 3:
					if(dataD[j] == false) {
						System.out.println("D　" + j + 1);
						
					}
					break;
				default:
					break;
				}
			}
			
		}
		
	}
}


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

import java.util.*;

public class Ex15{
  public static void Main(String[] args){
    Scanner sc = new Scanner(System.in);
    boolean[] cards = new boolean[54];
    int n = sc.nextInt(),num,i;
    String s;
    for(i = 0;i < 54;i++)cards[i] = false;
    for(i = 0;i < n;i++){
      s = sc.next();
      num = sc.nextInt();
      if(s.equals("S"))cards[i] = true;
      if(s.equals("H"))cards[12+i] = true;
      if(s.equals("C"))cards[12*2+i] = true;
      if(s.equals("D"))cards[12*3+i] = true;
    }
    for(i = 0;i < 12;i++){
      if(!cards[i])System.out.println("S " + (i+1));
    }
    for(;i < 12*2;i++){
      if(!cards[i])System.out.println("H " + (i+1-12));
    }
    for(;i < 12*3;i++){
      if(!cards[i])System.out.println("C " + (i+1-12*2));
    }
    for(;i < 12*3;i++){
      if(!cards[i])System.out.println("D " + (i+1-12*3));
    }
    sc.close();
  }
}


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

import java.util.Scanner;
public class Main {
	 public static void main(String[] args) {
	        List<String> list = new ArrayList<String>();
	        String[] mark = {"S", "H", "C", "D"};

	        for(int i = 0; i < 4; i++){
	            for(int j = 0; j < 13; j++){
	                list.add(mark[i] + " " + (j + 1));
	            }
	        }

	        Scanner sc = new Scanner(System.in);

	        int n = Integer.parseInt(sc.nextLine());

	        for(int i = 0; i < n; i++){
	            list.remove(sc.nextLine());
	        }

	        for(String str : list){
	            System.out.println(str);
	        }
	    }
	}


Compiler output:
Main.java:4: error: cannot find symbol
	        List<String> list = new ArrayList<String>();
	        ^
  symbol:   class List
  location: class Main
Main.java:4: error: cannot find symbol
	        List<String> list = new ArrayList<String>();
	                                ^
  symbol:   class ArrayList
  location: class Main
2 errors
Language: Java

 public static void main(String[] args) {
        List<String> list = new ArrayList<String>();
        String[] mark = {"S", "H", "C", "D"};

        for(int i = 0; i < 4; i++){
            for(int j = 0; j < 13; j++){
                list.add(mark[i] + " " + (j + 1));
            }
        }

        Scanner sc = new Scanner(System.in);

        int n = Integer.parseInt(sc.nextLine());

        for(int i = 0; i < n; i++){
            list.remove(sc.nextLine());
        }

        for(String str : list){
            System.out.println(str);
        }
    }
}


Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
 public static void main(String[] args) {
               ^
  (use --enable-preview to enable unnamed classes)
Main.java:23: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        List<String> list = new ArrayList<String>();
        String[] mark = {"S", "H", "C", "D"};

        for(int i = 0; i < 4; i++){
            for(int j = 0; j < 13; j++){
                list.add(mark[i] + " " + (j + 1));
            }
        }

        Scanner sc = new Scanner(System.in);

        int n = Integer.parseInt(sc.nextLine());

        for(int i = 0; i < n; i++){
            list.remove(sc.nextLine());
        }

        for(String str : list){
            System.out.println(str);
        }
    }
}


Compiler output:
Main.java:4: error: cannot find symbol
        List<String> list = new ArrayList<String>();
        ^
  symbol:   class List
  location: class Main
Main.java:4: error: cannot find symbol
        List<String> list = new ArrayList<String>();
                                ^
  symbol:   class ArrayList
  location: class Main
2 errors
Language: Java

public static void main(String[] args) {
        List<String> list = new ArrayList<String>();
        String[] mark = {"S", "H", "C", "D"};

        for(int i = 0; i < 4; i++){
            for(int j = 0; j < 13; j++){
                list.add(mark[i] + " " + (j + 1));
            }
        }

        Scanner sc = new Scanner(System.in);

        int n = Integer.parseInt(sc.nextLine());

        for(int i = 0; i < n; i++){
            list.remove(sc.nextLine());
        }

        for(String str : list){
            System.out.println(str);
        }
    }
}



Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:23: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

import java.util.Scanner;
public static void main(String[] args) {
        List<String> list = new ArrayList<String>();
        String[] mark = {"S", "H", "C", "D"};

        for(int i = 0; i < 4; i++){
            for(int j = 0; j < 13; j++){
                list.add(mark[i] + " " + (j + 1));
            }
        }

        Scanner sc = new Scanner(System.in);

        int n = Integer.parseInt(sc.nextLine());

        for(int i = 0; i < n; i++){
            list.remove(sc.nextLine());
        }

        for(String str : list){
            System.out.println(str);
        }
    }
}



Compiler output:
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:24: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

import java.util.Scanner;
class Main{
 public static void main(String args[]){
  int number,i,j,n;
  String pattern;
  int [][] card = new int [4][13];
  for(i=0;i<4;i++){
   for(j=0;j<13;j++)
    card[i][j]=0;}
  Scanner sc = new Scanner(System.in);
  int n=sc.nextInt();
  for(i=0;i<n;i++){
   pattern=sc.next();
   number=sc.nextInt();
   switch(pattern.charAt(0)){
    case 'S':
     card[0][number-1]=1;break;
    case 'H':
     card[1][number-1]=1;break;
    case 'C':
     card[2][number-1]=1;break;
    default:
     card[3][number-1]=1;break;}}
  for(i=0;i<13;i++){
   for(j=0;j<13;j++){
    if(card[i][j]!=1){
      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:11: error: variable n is already defined in method main(String[])
  int n=sc.nextInt();
      ^
1 error