Language: Java

import java.util.Scanner;
import java .util.streem.Collectors;
class Main{
  public static void main(String[]args){
    HsshMap<String, Integer>map =new HashMap<>();

    Scanner stdIn=new Scanner(System.in);
    int N=stdIn.nextInt();
    for(int i=0;i<N;i++){
      String s=sc.next();
      map.put(s,map.getOrDefault(s,0)+1);
    }
    int M=stdIn.nextInt();
    for(int j=0;j<M;j++){
      String s=sc.next();
      map.put(s,map.getOrDefault(s,0)-1);
}
    map=map.entrySet().stream().sorted(Map.Entry.<String,Integer>comparingByValue().reversed()).collect(Collectors.toMap(Map.Entry::getKey,Map.Entry::getValue,(e1,e2)->e1,LinkedHashMap::new));

    System.out.println(Math.max(map.values().stream().findFirst().get(),0));


}
}

Compiler output:
Main.java:2: error: package java.util.streem does not exist
import java .util.streem.Collectors;
                        ^
Main.java:5: error: cannot find symbol
    HsshMap<String, Integer>map =new HashMap<>();
    ^
  symbol:   class HsshMap
  location: class Main
Main.java:5: error: cannot find symbol
    HsshMap<String, Integer>map =new HashMap<>();
                                     ^
  symbol:   class HashMap
  location: class Main
Main.java:10: error: cannot find symbol
      String s=sc.next();
               ^
  symbol:   variable sc
  location: class Main
Main.java:15: error: cannot find symbol
      String s=sc.next();
               ^
  symbol:   variable sc
  location: class Main
Main.java:18: error: package Map does not exist
    map=map.entrySet().stream().sorted(Map.Entry.<String,Integer>comparingByValue().reversed()).collect(Collectors.toMap(Map.Entry::getKey,Map.Entry::getValue,(e1,e2)->e1,LinkedHashMap::new));
                                          ^
Main.java:18: error: cannot find symbol
    map=map.entrySet().stream().sorted(Map.Entry.<String,Integer>comparingByValue().reversed()).collect(Collectors.toMap(Map.Entry::getKey,Map.Entry::getValue,(e1,e2)->e1,LinkedHashMap::new));
                                                                                                        ^
  symbol:   variable Collectors
  location: class Main
Main.java:18: error: package Map does not exist
    map=map.entrySet().stream().sorted(Map.Entry.<String,Integer>comparingByValue().reversed()).collect(Collectors.toMap(Map.Entry::getKey,Map.Entry::getValue,(e1,e2)->e1,LinkedHashMap::new));
                                                                                                                            ^
Main.java:18: error: package Map does not exist
    map=map.entrySet().stream().sorted(Map.Entry.<String,Integer>comparingByValue().reversed()).collect(Collectors.toMap(Map.Entry::getKey,Map.Entry::getValue,(e1,e2)->e1,LinkedHashMap::new));
                                                                                                                                              ^
Main.java:18: error: cannot find symbol
    map=map.entrySet().stream().sorted(Map.Entry.<String,Integer>comparingByValue().reversed()).collect(Collectors.toMap(Map.Entry::getKey,Map.Entry::getValue,(e1,e2)->e1,LinkedHashMap::new));
                                                                                                                                                                           ^
  symbol:   class LinkedHashMap
  location: class Main
10 errors