Wrote /root/JavaX-Caches/tmp_927115364/main.java - 7263 bytes (written=7263, should be 7263) javac=0, ecj=1, useJarBot=0 Checking ECJ at port 4898 at 127.0.0.1 /root/jdk-17/bin/javac -source 1.8 -target 1.8 -nowarn -encoding utf8 -Xdiags:verbose -cp /root/.javax/x30.jar:/root/dexcompiler/android.jar:/root/dexcompiler/support-v4-22.2.1.jar:/root/javafx/javafx.base.jar:/root/javafx/javafx.graphics.jar:/root/javafx/javafx.swing.jar -d /root/JavaX-Caches/tmp_1302577988 /root/JavaX-Caches/tmp_927115364/main.java 2>&1
[Compilation Error]

Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.

/root/JavaX-Caches/tmp_927115364/main.java:1: error: class, interface, or enum expected !636 ^ /root/JavaX-Caches/tmp_927115364/main.java:3: error: <identifier> expected !auto-import ^ /root/JavaX-Caches/tmp_927115364/main.java:20: error: class, interface, or enum expected main { ^ /root/JavaX-Caches/tmp_927115364/main.java:22: error: class, interface, or enum expected static List<String> halfExamples = new ArrayList<String>(); ^ /root/JavaX-Caches/tmp_927115364/main.java:23: error: class, interface, or enum expected static List<String[]> examples1, examples2; ^ /root/JavaX-Caches/tmp_927115364/main.java:25: error: class, interface, or enum expected psvm { ^ /root/JavaX-Caches/tmp_927115364/main.java:27: error: class, interface, or enum expected calculate(); ^ /root/JavaX-Caches/tmp_927115364/main.java:28: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_927115364/main.java:32: error: class, interface, or enum expected if (arg != null) ^ /root/JavaX-Caches/tmp_927115364/main.java:34: error: class, interface, or enum expected else { ^ /root/JavaX-Caches/tmp_927115364/main.java:36: error: class, interface, or enum expected if (text == null) text = loadSnippet("#2000455"); // example input ^ /root/JavaX-Caches/tmp_927115364/main.java:37: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_927115364/main.java:40: error: class, interface, or enum expected String in = null, out = null; ^ /root/JavaX-Caches/tmp_927115364/main.java:42: error: class, interface, or enum expected for (String line : toLines(text)) { ^ /root/JavaX-Caches/tmp_927115364/main.java:46: error: class, interface, or enum expected in = unquote(line.substring(line.indexOf(':')+1).trim()); ^ /root/JavaX-Caches/tmp_927115364/main.java:47: error: class, interface, or enum expected out = null; ^ /root/JavaX-Caches/tmp_927115364/main.java:48: error: class, interface, or enum expected } else if (line.startsWith("O")) { // "Out: " or "O: " ^ /root/JavaX-Caches/tmp_927115364/main.java:50: error: class, interface, or enum expected System.out.println(quote(in) + " => " + quote(out)); ^ /root/JavaX-Caches/tmp_927115364/main.java:51: error: class, interface, or enum expected fullExamples.add(new String[] {in, out}); ^ /root/JavaX-Caches/tmp_927115364/main.java:52: error: class, interface, or enum expected in = out = null; ^ /root/JavaX-Caches/tmp_927115364/main.java:53: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_927115364/main.java:58: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_927115364/main.java:63: error: class, interface, or enum expected int splitPoint = fullExamples.size()-1; ^ /root/JavaX-Caches/tmp_927115364/main.java:64: error: class, interface, or enum expected System.out.println("Full examples: " + fullExamples.size() + ", splitPoint: " + splitPoint); ^ /root/JavaX-Caches/tmp_927115364/main.java:65: error: class, interface, or enum expected examples1 = fullExamples.subList(0, splitPoint); ^ /root/JavaX-Caches/tmp_927115364/main.java:66: error: class, interface, or enum expected examples2 = fullExamples.subList(splitPoint, fullExamples.size()); ^ /root/JavaX-Caches/tmp_927115364/main.java:68: error: class, interface, or enum expected Learner learner = findOKLearner(); ^ /root/JavaX-Caches/tmp_927115364/main.java:69: error: class, interface, or enum expected if (learner == null) ^ /root/JavaX-Caches/tmp_927115364/main.java:74: error: class, interface, or enum expected learner.toJava(code); ^ /root/JavaX-Caches/tmp_927115364/main.java:75: error: class, interface, or enum expected System.out.println(code.buf); ^ /root/JavaX-Caches/tmp_927115364/main.java:76: error: class, interface, or enum expected for (String in : halfExamples) { ^ /root/JavaX-Caches/tmp_927115364/main.java:78: error: class, interface, or enum expected System.out.println(quote(in) + " =>! " + quote(out)); ^ /root/JavaX-Caches/tmp_927115364/main.java:79: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_927115364/main.java:87: error: class, interface, or enum expected } catch (Throwable e) { ^ /root/JavaX-Caches/tmp_927115364/main.java:89: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_927115364/main.java:91: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_927115364/main.java:96: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_927115364/main.java:99: error: class, interface, or enum expected if (!e[1].equals(out)) { ^ /root/JavaX-Caches/tmp_927115364/main.java:101: error: class, interface, or enum expected return false; ^ /root/JavaX-Caches/tmp_927115364/main.java:102: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_927115364/main.java:105: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_927115364/main.java:110: error: class, interface, or enum expected list.add(new LPrefixSuffix()); ^ /root/JavaX-Caches/tmp_927115364/main.java:111: error: class, interface, or enum expected list.add(new LSplitInput(new LOutPattern())); ^ /root/JavaX-Caches/tmp_927115364/main.java:112: error: class, interface, or enum expected list.add(new LInputPattern()); ^ /root/JavaX-Caches/tmp_927115364/main.java:113: error: class, interface, or enum expected return list; ^ /root/JavaX-Caches/tmp_927115364/main.java:114: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_927115364/main.java:116: error: class, interface, or enum expected public static String unquote(String s) { ^ /root/JavaX-Caches/tmp_927115364/main.java:119: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_927115364/main.java:121: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_927115364/main.java:123: error: class, interface, or enum expected public static String quote(String s) { ^ /root/JavaX-Caches/tmp_927115364/main.java:125: error: class, interface, or enum expected return "\"" + s.replace("\\", "\\\\").replace("\"", "\\\"") + "\""; ^ /root/JavaX-Caches/tmp_927115364/main.java:126: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_927115364/main.java:229: error: class, interface, or enum expected } ^ 53 errors