Language: Java

public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        String V = scan.nextLine();
        String C = scan.nextLine();
        final List<Integer> v = Arrays.stream(V.split(" ", N)).mapToInt(Integer::parseInt).boxed().collect(Collectors.toList());
        final List<Integer> c = Arrays.stream(C.split(" ", N)).mapToInt(Integer::parseInt).boxed().collect(Collectors.toList());
        System.out.println(find(N, 0, new HashSet<>(), v, c));
    }

    public static int find(int N, int cMax, Set<Integer> mark, List<Integer> v, List<Integer> c) {
        int max = 0;
        for (int i = 0; i < N; i++) {
            if (!mark.contains(i)) {
                final int i1 = cMax + v.get(i) - c.get(i);
                if (i1 > max) {
                    max = i1;
                }
                mark.add(i);
                int sMax = find(N, max, mark, v, c);
                if (sMax > max) {
                    max = sMax;
                }
                mark.remove(i);
            }
        }
        return max;
    }

}

Compiler output:
Main.java:13: error: cannot find symbol
    public static int find(int N, int cMax, Set<Integer> mark, List<Integer> v, List<Integer> c) {
                                            ^
  symbol:   class Set
  location: class Main
Main.java:13: error: cannot find symbol
    public static int find(int N, int cMax, Set<Integer> mark, List<Integer> v, List<Integer> c) {
                                                               ^
  symbol:   class List
  location: class Main
Main.java:13: error: cannot find symbol
    public static int find(int N, int cMax, Set<Integer> mark, List<Integer> v, List<Integer> c) {
                                                                                ^
  symbol:   class List
  location: class Main
Main.java:4: error: cannot find symbol
        Scanner scan = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
        Scanner scan = new Scanner(System.in);
                           ^
  symbol:   class Scanner
  location: class Main
Main.java:8: error: cannot find symbol
        final List<Integer> v = Arrays.stream(V.split(" ", N)).mapToInt(Integer::parseInt).boxed().collect(Collectors.toList());
              ^
  symbol:   class List
  location: class Main
Main.java:8: error: cannot find symbol
        final List<Integer> v = Arrays.stream(V.split(" ", N)).mapToInt(Integer::parseInt).boxed().collect(Collectors.toList());
                                ^
  symbol:   variable Arrays
  location: class Main
Main.java:8: error: cannot find symbol
        final List<Integer> v = Arrays.stream(V.split(" ", N)).mapToInt(Integer::parseInt).boxed().collect(Collectors.toList());
                                                                                                           ^
  symbol:   variable Collectors
  location: class Main
Main.java:9: error: cannot find symbol
        final List<Integer> c = Arrays.stream(C.split(" ", N)).mapToInt(Integer::parseInt).boxed().collect(Collectors.toList());
              ^
  symbol:   class List
  location: class Main
Main.java:9: error: cannot find symbol
        final List<Integer> c = Arrays.stream(C.split(" ", N)).mapToInt(Integer::parseInt).boxed().collect(Collectors.toList());
                                ^
  symbol:   variable Arrays
  location: class Main
Main.java:9: error: cannot find symbol
        final List<Integer> c = Arrays.stream(C.split(" ", N)).mapToInt(Integer::parseInt).boxed().collect(Collectors.toList());
                                                                                                           ^
  symbol:   variable Collectors
  location: class Main
Main.java:10: error: cannot find symbol
        System.out.println(find(N, 0, new HashSet<>(), v, c));
                                          ^
  symbol:   class HashSet
  location: class Main
12 errors