Language: Java

import java.util.Scanner;
class Main{
 public static void main(String args[]){
  int [][] card = new int [4][13];
  for(int i=0;i<4;i++){
   for(int 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:10: error: cannot find symbol
  for(i=0;i<n;i++){
      ^
  symbol:   variable i
  location: class Main
Main.java:10: error: cannot find symbol
  for(i=0;i<n;i++){
          ^
  symbol:   variable i
  location: class Main
Main.java:10: error: cannot find symbol
  for(i=0;i<n;i++){
              ^
  symbol:   variable i
  location: class Main
Main.java:11: error: cannot find symbol
   pattern=sc.next();
   ^
  symbol:   variable pattern
  location: class Main
Main.java:12: error: cannot find symbol
   number=sc.nextInt();
   ^
  symbol:   variable number
  location: class Main
Main.java:13: error: cannot find symbol
   switch(pattern.charAt(0)){
          ^
  symbol:   variable pattern
  location: class Main
Main.java:15: error: cannot find symbol
     card[0][number-1]=1;break;
             ^
  symbol:   variable number
  location: class Main
Main.java:17: error: cannot find symbol
     card[1][number-1]=1;break;
             ^
  symbol:   variable number
  location: class Main
Main.java:19: error: cannot find symbol
     card[2][number-1]=1;break;
             ^
  symbol:   variable number
  location: class Main
Main.java:21: error: cannot find symbol
     card[3][number-1]=1;break;}}
             ^
  symbol:   variable number
  location: class Main
Main.java:22: error: cannot find symbol
  for(i=0;i<13;i++){
      ^
  symbol:   variable i
  location: class Main
Main.java:22: error: cannot find symbol
  for(i=0;i<13;i++){
          ^
  symbol:   variable i
  location: class Main
Main.java:22: error: cannot find symbol
  for(i=0;i<13;i++){
               ^
  symbol:   variable i
  location: class Main
Main.java:23: error: cannot find symbol
   for(j=0;j<13;j++){
       ^
  symbol:   variable j
  location: class Main
Main.java:23: error: cannot find symbol
   for(j=0;j<13;j++){
           ^
  symbol:   variable j
  location: class Main
Main.java:23: error: cannot find symbol
   for(j=0;j<13;j++){
                ^
  symbol:   variable j
  location: class Main
Main.java:24: error: cannot find symbol
    if(card[i][j]!=1){
            ^
  symbol:   variable i
  location: class Main
Main.java:24: error: cannot find symbol
    if(card[i][j]!=1){
               ^
  symbol:   variable j
  location: class Main
Main.java:25: error: cannot find symbol
      if(i==0)
         ^
  symbol:   variable i
  location: class Main
Main.java:26: error: cannot find symbol
       System.out.println("S "+j+1);
                               ^
  symbol:   variable j
  location: class Main
Main.java:27: error: cannot find symbol
      else if(i==1)
              ^
  symbol:   variable i
  location: class Main
Main.java:28: error: cannot find symbol
       System.out.println("H "+j+1);
                               ^
  symbol:   variable j
  location: class Main
Main.java:29: error: cannot find symbol
      else if(i==2)
              ^
  symbol:   variable i
  location: class Main
Main.java:30: error: cannot find symbol
       System.out.println("C "+j+1);
                               ^
  symbol:   variable j
  location: class Main
Main.java:32: error: cannot find symbol
       System.out.println("D "+j+1);}}}
                               ^
  symbol:   variable j
  location: class Main
25 errors