Wrote /root/JavaX-Caches/tmp_1786691635/main.java - 7848 bytes (written=7848, should be 7848) javac=0, ecj=1, useJarBot=0 Checking ECJ at port 4898 at 127.0.0.1 /root/jdk-17/bin/javac -source 11 -target 11 -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_1619405758 /root/JavaX-Caches/tmp_1786691635/main.java 2>&1
[Compilation Error]

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

/root/JavaX-Caches/tmp_1786691635/main.java:3: error: illegal start of type new List<Object[]> examples; // all examples ^ /root/JavaX-Caches/tmp_1786691635/main.java:4: error: illegal start of type new List<Object> halfExamples; // input only examples ^ /root/JavaX-Caches/tmp_1786691635/main.java:20: error: ';' expected ret (L) examples; ^ /root/JavaX-Caches/tmp_1786691635/main.java:20: error: not a statement ret (L) examples; ^ /root/JavaX-Caches/tmp_1786691635/main.java:24: error: ';' expected ret l(examples)-1; ^ /root/JavaX-Caches/tmp_1786691635/main.java:24: error: not a statement ret l(examples)-1; ^ /root/JavaX-Caches/tmp_1786691635/main.java:24: error: ';' expected ret l(examples)-1; ^ /root/JavaX-Caches/tmp_1786691635/main.java:47: error: class, interface, or enum expected static Case ioioiParse(S arg) tex { ^ /root/JavaX-Caches/tmp_1786691635/main.java:50: error: class, interface, or enum expected if (arg == null) return null; ^ /root/JavaX-Caches/tmp_1786691635/main.java:51: error: class, interface, or enum expected arg = arg.trim(); ^ /root/JavaX-Caches/tmp_1786691635/main.java:52: error: class, interface, or enum expected if (arg.length() == 0) return null; ^ /root/JavaX-Caches/tmp_1786691635/main.java:53: error: class, interface, or enum expected new Case _case; ^ /root/JavaX-Caches/tmp_1786691635/main.java:54: error: class, interface, or enum expected String text; ^ /root/JavaX-Caches/tmp_1786691635/main.java:56: error: class, interface, or enum expected if (arg.startsWith("Combine")) { ^ /root/JavaX-Caches/tmp_1786691635/main.java:58: error: class, interface, or enum expected _case.combined = new ArrayList<Case>(); ^ /root/JavaX-Caches/tmp_1786691635/main.java:59: error: class, interface, or enum expected List<String> tok = javaTok(arg); ^ /root/JavaX-Caches/tmp_1786691635/main.java:60: error: class, interface, or enum expected new List<String> ids; ^ /root/JavaX-Caches/tmp_1786691635/main.java:61: error: class, interface, or enum expected for (int i = 5; i < tok.size(); i += 6) { // skip # and "and" ^ /root/JavaX-Caches/tmp_1786691635/main.java:61: error: class, interface, or enum expected for (int i = 5; i < tok.size(); i += 6) { // skip # and "and" ^ /root/JavaX-Caches/tmp_1786691635/main.java:61: error: class, interface, or enum expected for (int i = 5; i < tok.size(); i += 6) { // skip # and "and" ^ /root/JavaX-Caches/tmp_1786691635/main.java:64: error: class, interface, or enum expected Case case2 = ioioiParse("#" + tok.get(i)); ^ /root/JavaX-Caches/tmp_1786691635/main.java:65: error: class, interface, or enum expected _case.id += " #" + tok.get(i); ^ /root/JavaX-Caches/tmp_1786691635/main.java:66: error: class, interface, or enum expected _case.add(case2); ^ /root/JavaX-Caches/tmp_1786691635/main.java:67: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1786691635/main.java:69: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1786691635/main.java:74: error: class, interface, or enum expected if (isSnippetID(arg)) { ^ /root/JavaX-Caches/tmp_1786691635/main.java:76: error: class, interface, or enum expected String[] x = loadSnippetAndTitle(arg); ^ /root/JavaX-Caches/tmp_1786691635/main.java:77: error: class, interface, or enum expected text = x[0]; ^ /root/JavaX-Caches/tmp_1786691635/main.java:78: error: class, interface, or enum expected _case.name = x[1]; ^ /root/JavaX-Caches/tmp_1786691635/main.java:79: error: class, interface, or enum expected } else { ^ /root/JavaX-Caches/tmp_1786691635/main.java:81: error: class, interface, or enum expected text = arg; ^ /root/JavaX-Caches/tmp_1786691635/main.java:82: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1786691635/main.java:98: error: class, interface, or enum expected if (text.trim().startsWith("Continue:")) { ^ /root/JavaX-Caches/tmp_1786691635/main.java:100: error: class, interface, or enum expected new StringBuilder buf; ^ /root/JavaX-Caches/tmp_1786691635/main.java:101: error: class, interface, or enum expected for (int i = 1; i < lines.size(); i++) { ^ /root/JavaX-Caches/tmp_1786691635/main.java:101: error: class, interface, or enum expected for (int i = 1; i < lines.size(); i++) { ^ /root/JavaX-Caches/tmp_1786691635/main.java:101: error: class, interface, or enum expected for (int i = 1; i < lines.size(); i++) { ^ /root/JavaX-Caches/tmp_1786691635/main.java:103: error: class, interface, or enum expected buf.append("Out: " + quote(lines.get(i)) + "\n"); ^ /root/JavaX-Caches/tmp_1786691635/main.java:104: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1786691635/main.java:106: error: class, interface, or enum expected for (int i = lines.size(); i < lines.size()+numAsking; i++) ^ /root/JavaX-Caches/tmp_1786691635/main.java:106: error: class, interface, or enum expected for (int i = lines.size(); i < lines.size()+numAsking; i++) ^ /root/JavaX-Caches/tmp_1786691635/main.java:106: error: class, interface, or enum expected for (int i = lines.size(); i < lines.size()+numAsking; i++) ^ /root/JavaX-Caches/tmp_1786691635/main.java:108: error: class, interface, or enum expected text = buf.toString(); ^ /root/JavaX-Caches/tmp_1786691635/main.java:109: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1786691635/main.java:134: error: class, interface, or enum expected new StringBuilder buf; ^ /root/JavaX-Caches/tmp_1786691635/main.java:135: error: class, interface, or enum expected if (verbose) ^ /root/JavaX-Caches/tmp_1786691635/main.java:137: error: class, interface, or enum expected for (int i = 5; i < tok.size(); i += 2) { ^ /root/JavaX-Caches/tmp_1786691635/main.java:137: error: class, interface, or enum expected for (int i = 5; i < tok.size(); i += 2) { ^ /root/JavaX-Caches/tmp_1786691635/main.java:137: error: class, interface, or enum expected for (int i = 5; i < tok.size(); i += 2) { ^ /root/JavaX-Caches/tmp_1786691635/main.java:140: error: class, interface, or enum expected buf.append("--\n"); ^ /root/JavaX-Caches/tmp_1786691635/main.java:141: error: class, interface, or enum expected } else if (tok.get(i).equals("Doc") && tok.get(i+2).equals(":") && tok.get(i+4).equals("#")) { ^ /root/JavaX-Caches/tmp_1786691635/main.java:144: error: class, interface, or enum expected String out = loadSnippet(tok.get(i+6)); ^ /root/JavaX-Caches/tmp_1786691635/main.java:145: error: class, interface, or enum expected i += 6; ^ /root/JavaX-Caches/tmp_1786691635/main.java:146: error: class, interface, or enum expected String in = out.replace("[[", "").replace("]]", ""); ^ /root/JavaX-Caches/tmp_1786691635/main.java:147: error: class, interface, or enum expected buf.append("In: " + quote(in) + "\n"); ^ /root/JavaX-Caches/tmp_1786691635/main.java:148: error: class, interface, or enum expected buf.append("Out: " + quote(out) + "\n"); ^ /root/JavaX-Caches/tmp_1786691635/main.java:149: error: class, interface, or enum expected } else { ^ /root/JavaX-Caches/tmp_1786691635/main.java:151: error: class, interface, or enum expected String in = out.replace("[[", "").replace("]]", ""); ^ /root/JavaX-Caches/tmp_1786691635/main.java:152: error: class, interface, or enum expected buf.append("In: " + quote(in) + "\n"); ^ /root/JavaX-Caches/tmp_1786691635/main.java:153: error: class, interface, or enum expected buf.append("Out: " + quote(out) + "\n"); ^ /root/JavaX-Caches/tmp_1786691635/main.java:154: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1786691635/main.java:157: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1786691635/main.java:162: error: class, interface, or enum expected if (verbose) ^ /root/JavaX-Caches/tmp_1786691635/main.java:167: error: class, interface, or enum expected List<String> tok = javaTok(text); ^ /root/JavaX-Caches/tmp_1786691635/main.java:168: error: class, interface, or enum expected for (int i = 1; i < tok.size(); i += 2) { ^ /root/JavaX-Caches/tmp_1786691635/main.java:168: error: class, interface, or enum expected for (int i = 1; i < tok.size(); i += 2) { ^ /root/JavaX-Caches/tmp_1786691635/main.java:168: error: class, interface, or enum expected for (int i = 1; i < tok.size(); i += 2) { ^ /root/JavaX-Caches/tmp_1786691635/main.java:171: error: class, interface, or enum expected if (t.equalsIgnoreCase("Cmd") && t2.equals("-") && tok.get(i+4).equalsIgnoreCase("Hint") && tok.get(i+6).equals(":")) { // "Cmd-Hint:" ^ /root/JavaX-Caches/tmp_1786691635/main.java:173: error: class, interface, or enum expected int j = tokFindNextLine(tok, i); ^ /root/JavaX-Caches/tmp_1786691635/main.java:174: error: class, interface, or enum expected String cmdHint = unquote_fixSpaces(join(tok.subList(i, j-1))); // result unused as of now ^ /root/JavaX-Caches/tmp_1786691635/main.java:175: error: class, interface, or enum expected i = j-2; ^ /root/JavaX-Caches/tmp_1786691635/main.java:176: error: class, interface, or enum expected } else if (t.equals("-") && t2.equals("-")) { ^ /root/JavaX-Caches/tmp_1786691635/main.java:178: error: class, interface, or enum expected _case.splitPoint = _case.examples.size(); ^ /root/JavaX-Caches/tmp_1786691635/main.java:180: error: class, interface, or enum expected } else if (t.toUpperCase().startsWith("I") && t2.equals("-") && tok.get(i+4).toUpperCase().equals("DOC") && tok.get(i+6).equals(":")) { // "In-Doc:" ^ /root/JavaX-Caches/tmp_1786691635/main.java:183: error: class, interface, or enum expected i += 8; ^ /root/JavaX-Caches/tmp_1786691635/main.java:184: error: class, interface, or enum expected int j = tokFindNextLine(tok, i); ^ /root/JavaX-Caches/tmp_1786691635/main.java:185: error: class, interface, or enum expected String inID = unquote_fixSpaces(join(tok.subList(i, j-1))); ^ /root/JavaX-Caches/tmp_1786691635/main.java:186: error: class, interface, or enum expected in = loadSnippet(inID); ^ /root/JavaX-Caches/tmp_1786691635/main.java:187: error: class, interface, or enum expected i = j-2; ^ /root/JavaX-Caches/tmp_1786691635/main.java:188: error: class, interface, or enum expected } else if (t.toUpperCase().startsWith("I") && t2.equals(":")) { // "In:" or "I:" ^ /root/JavaX-Caches/tmp_1786691635/main.java:191: error: class, interface, or enum expected i += 4; ^ /root/JavaX-Caches/tmp_1786691635/main.java:192: error: class, interface, or enum expected int j = tokFindNextLine(tok, i); ^ /root/JavaX-Caches/tmp_1786691635/main.java:193: error: class, interface, or enum expected in = unquote_fixSpaces(join(tok.subList(i, j-1))); ^ /root/JavaX-Caches/tmp_1786691635/main.java:194: error: class, interface, or enum expected i = j-2; ^ /root/JavaX-Caches/tmp_1786691635/main.java:195: error: class, interface, or enum expected } else if ((swic(t, "O") || eqic(t, "Expect")) && t2.equals(":")) { // "Out: " or "O: " or "Expect: " ^ /root/JavaX-Caches/tmp_1786691635/main.java:197: error: class, interface, or enum expected int j = tokFindNextLine(tok, i); ^ /root/JavaX-Caches/tmp_1786691635/main.java:198: error: class, interface, or enum expected String out = unquote_fixSpaces(join(tok.subList(i, j-1))); ^ /root/JavaX-Caches/tmp_1786691635/main.java:199: error: class, interface, or enum expected i = j-2; ^ /root/JavaX-Caches/tmp_1786691635/main.java:200: error: class, interface, or enum expected if ((in + out).indexOf('\t') >= 0) ^ /root/JavaX-Caches/tmp_1786691635/main.java:203: error: class, interface, or enum expected System.out.println(shorten(quote(in), 80) + " => " + shorten(quote(out), 80)); ^ /root/JavaX-Caches/tmp_1786691635/main.java:204: error: class, interface, or enum expected _case.examples.add(ioMakeArray(in, out)); ^ /root/JavaX-Caches/tmp_1786691635/main.java:205: error: class, interface, or enum expected _case.checkSize(); ^ /root/JavaX-Caches/tmp_1786691635/main.java:206: error: class, interface, or enum expected in = null; ^ /root/JavaX-Caches/tmp_1786691635/main.java:207: error: class, interface, or enum expected } else if (t.toUpperCase().startsWith("O") && t2.equals("-") && tok.get(i+4).toUpperCase().equals("LIST") && tok.get(i+6).equals(":")) { // "Out-List:" ^ /root/JavaX-Caches/tmp_1786691635/main.java:209: error: class, interface, or enum expected if (!tok.get(i).equals("{")) fail("Syntax error in Out-List"); ^ /root/JavaX-Caches/tmp_1786691635/main.java:210: error: class, interface, or enum expected i += 2; ^ /root/JavaX-Caches/tmp_1786691635/main.java:211: error: class, interface, or enum expected new List<String> outList; ^ /root/JavaX-Caches/tmp_1786691635/main.java:212: error: class, interface, or enum expected while (!tok.get(i).equals("}")) { ^ /root/JavaX-Caches/tmp_1786691635/main.java:214: error: class, interface, or enum expected if (tok.get(i).equals("}")) break; ^ /root/JavaX-Caches/tmp_1786691635/main.java:215: error: class, interface, or enum expected String listEntry = unquote(tok.get(i)); ^ 100 errors only showing the first 100 errors, of 113 total; use -Xmaxerrs if you would like to see more