Wrote /root/JavaX-Caches/tmp_1805658575/main.java - 16684 bytes (written=16684, should be 16684)
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_1744407026 /root/JavaX-Caches/tmp_1805658575/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_1805658575/main.java:1: error: class, interface, or enum expected
!636
^
/root/JavaX-Caches/tmp_1805658575/main.java:3: error: expected
!auto-import
^
/root/JavaX-Caches/tmp_1805658575/main.java:8: error: '{' expected
!class JavaTok
^
/root/JavaX-Caches/tmp_1805658575/main.java:31: error: '(' or '[' expected
new StringBuilder buf;
^
/root/JavaX-Caches/tmp_1805658575/main.java:82: error: class, interface, or enum expected
main {
^
/root/JavaX-Caches/tmp_1805658575/main.java:85: error: class, interface, or enum expected
psvm {
^
/root/JavaX-Caches/tmp_1805658575/main.java:88: error: class, interface, or enum expected
for (int i = 0; i < args.length; i++) {
^
/root/JavaX-Caches/tmp_1805658575/main.java:88: error: class, interface, or enum expected
for (int i = 0; i < args.length; i++) {
^
/root/JavaX-Caches/tmp_1805658575/main.java:88: error: class, interface, or enum expected
for (int i = 0; i < args.length; i++) {
^
/root/JavaX-Caches/tmp_1805658575/main.java:90: error: class, interface, or enum expected
if (arg.equals("debug"))
^
/root/JavaX-Caches/tmp_1805658575/main.java:92: error: class, interface, or enum expected
else if (isSnippetID(arg))
^
/root/JavaX-Caches/tmp_1805658575/main.java:94: error: class, interface, or enum expected
else
^
/root/JavaX-Caches/tmp_1805658575/main.java:96: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1805658575/main.java:100: error: class, interface, or enum expected
int solved = 0, n = cases.size();
^
/root/JavaX-Caches/tmp_1805658575/main.java:101: error: class, interface, or enum expected
for (int i = 0; i < n; i++) {
^
/root/JavaX-Caches/tmp_1805658575/main.java:101: error: class, interface, or enum expected
for (int i = 0; i < n; i++) {
^
/root/JavaX-Caches/tmp_1805658575/main.java:101: error: class, interface, or enum expected
for (int i = 0; i < n; i++) {
^
/root/JavaX-Caches/tmp_1805658575/main.java:103: error: class, interface, or enum expected
if (cases.get(i).winner != null)
^
/root/JavaX-Caches/tmp_1805658575/main.java:105: error: class, interface, or enum expected
System.out.println((i+1) + " case(s) processed, " + solved + " solved.");
^
/root/JavaX-Caches/tmp_1805658575/main.java:106: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1805658575/main.java:112: error: class, interface, or enum expected
if (!allSolved) {
^
/root/JavaX-Caches/tmp_1805658575/main.java:114: error: class, interface, or enum expected
System.out.print("Unsolved: ");
^
/root/JavaX-Caches/tmp_1805658575/main.java:115: error: class, interface, or enum expected
for (Case case : cases)
^
/root/JavaX-Caches/tmp_1805658575/main.java:118: error: class, interface, or enum expected
System.out.println();
^
/root/JavaX-Caches/tmp_1805658575/main.java:119: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1805658575/main.java:122: error: class, interface, or enum expected
System.out.print("Solved: ");
^
/root/JavaX-Caches/tmp_1805658575/main.java:123: error: class, interface, or enum expected
for (Case case : cases)
^
/root/JavaX-Caches/tmp_1805658575/main.java:126: error: class, interface, or enum expected
System.out.println();
^
/root/JavaX-Caches/tmp_1805658575/main.java:127: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1805658575/main.java:129: error: class, interface, or enum expected
System.out.println(allSolved ? "ALL SOLVED (" + solved + ")" : "Solved " + solved + " out of " + n + ".");
^
/root/JavaX-Caches/tmp_1805658575/main.java:130: error: class, interface, or enum expected
print ""
^
/root/JavaX-Caches/tmp_1805658575/main.java:141: error: class, interface, or enum expected
static void parse(String arg) tex {
^
/root/JavaX-Caches/tmp_1805658575/main.java:143: error: class, interface, or enum expected
String text;
^
/root/JavaX-Caches/tmp_1805658575/main.java:144: error: class, interface, or enum expected
if (arg != null) {
^
/root/JavaX-Caches/tmp_1805658575/main.java:146: error: class, interface, or enum expected
text = loadSnippet(arg);
^
/root/JavaX-Caches/tmp_1805658575/main.java:147: error: class, interface, or enum expected
} else {
^
/root/JavaX-Caches/tmp_1805658575/main.java:149: error: class, interface, or enum expected
text = loadTextFile("input/input.txt", null);
^
/root/JavaX-Caches/tmp_1805658575/main.java:150: error: class, interface, or enum expected
if (text == null) {
^
/root/JavaX-Caches/tmp_1805658575/main.java:153: error: class, interface, or enum expected
text = loadSnippet(case.id);
^
/root/JavaX-Caches/tmp_1805658575/main.java:154: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1805658575/main.java:161: error: class, interface, or enum expected
return;
^
/root/JavaX-Caches/tmp_1805658575/main.java:162: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1805658575/main.java:165: error: class, interface, or enum expected
String in = null, out = null;
^
/root/JavaX-Caches/tmp_1805658575/main.java:167: error: class, interface, or enum expected
for (String line : toLines(text)) {
^
/root/JavaX-Caches/tmp_1805658575/main.java:171: error: class, interface, or enum expected
in = unquote(line.substring(line.indexOf(':')+1).trim());
^
/root/JavaX-Caches/tmp_1805658575/main.java:172: error: class, interface, or enum expected
out = null;
^
/root/JavaX-Caches/tmp_1805658575/main.java:173: error: class, interface, or enum expected
} else if (line.startsWith("O")) { // "Out: " or "O: "
^
/root/JavaX-Caches/tmp_1805658575/main.java:175: error: class, interface, or enum expected
System.out.println(quote(in) + " => " + quote(out));
^
/root/JavaX-Caches/tmp_1805658575/main.java:176: error: class, interface, or enum expected
case.fullExamples.add(new String[] {in, out});
^
/root/JavaX-Caches/tmp_1805658575/main.java:177: error: class, interface, or enum expected
in = out = null;
^
/root/JavaX-Caches/tmp_1805658575/main.java:178: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1805658575/main.java:183: error: class, interface, or enum expected
cases.add(case);
^
/root/JavaX-Caches/tmp_1805658575/main.java:184: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1805658575/main.java:189: error: class, interface, or enum expected
int splitPoint = case.fullExamples.size()-1;
^
/root/JavaX-Caches/tmp_1805658575/main.java:190: error: class, interface, or enum expected
System.out.println("Full examples: " + case.fullExamples.size() + ", splitPoint: " + splitPoint);
^
/root/JavaX-Caches/tmp_1805658575/main.java:191: error: class, interface, or enum expected
case.examples1 = case.fullExamples.subList(0, splitPoint);
^
/root/JavaX-Caches/tmp_1805658575/main.java:192: error: class, interface, or enum expected
case.examples2 = case.fullExamples.subList(splitPoint, case.fullExamples.size());
^
/root/JavaX-Caches/tmp_1805658575/main.java:194: error: class, interface, or enum expected
Learner learner = findOKLearner(case);
^
/root/JavaX-Caches/tmp_1805658575/main.java:195: error: class, interface, or enum expected
if (learner == null)
^
/root/JavaX-Caches/tmp_1805658575/main.java:200: error: class, interface, or enum expected
Code code = new Code();
^
/root/JavaX-Caches/tmp_1805658575/main.java:201: error: class, interface, or enum expected
learner.toJava(code);
^
/root/JavaX-Caches/tmp_1805658575/main.java:202: error: class, interface, or enum expected
System.out.println("Java:");
^
/root/JavaX-Caches/tmp_1805658575/main.java:203: error: class, interface, or enum expected
System.out.println(indent(" ", code.getTranslators()));
^
/root/JavaX-Caches/tmp_1805658575/main.java:204: error: class, interface, or enum expected
System.out.println(indent(" ", code.buf.toString()));
^
/root/JavaX-Caches/tmp_1805658575/main.java:205: error: class, interface, or enum expected
for (String in : case.halfExamples) {
^
/root/JavaX-Caches/tmp_1805658575/main.java:207: error: class, interface, or enum expected
System.out.println(quote(in) + " =>! " + quote((String) out));
^
/root/JavaX-Caches/tmp_1805658575/main.java:208: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1805658575/main.java:216: error: class, interface, or enum expected
} catch (Throwable e) {
^
/root/JavaX-Caches/tmp_1805658575/main.java:218: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1805658575/main.java:220: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1805658575/main.java:224: error: class, interface, or enum expected
try {
^
/root/JavaX-Caches/tmp_1805658575/main.java:227: error: class, interface, or enum expected
learner.processInOut(e[0], e[1]);
^
/root/JavaX-Caches/tmp_1805658575/main.java:228: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1805658575/main.java:233: error: class, interface, or enum expected
String out = (String) learner.processIn(e[0]);
^
/root/JavaX-Caches/tmp_1805658575/main.java:234: error: class, interface, or enum expected
if (!e[1].equals(out)) {
^
/root/JavaX-Caches/tmp_1805658575/main.java:236: error: class, interface, or enum expected
return false;
^
/root/JavaX-Caches/tmp_1805658575/main.java:237: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1805658575/main.java:240: error: class, interface, or enum expected
} catch (Throwable e) {
^
/root/JavaX-Caches/tmp_1805658575/main.java:242: error: class, interface, or enum expected
silentException(e);
^
/root/JavaX-Caches/tmp_1805658575/main.java:243: error: class, interface, or enum expected
return false;
^
/root/JavaX-Caches/tmp_1805658575/main.java:244: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1805658575/main.java:253: error: class, interface, or enum expected
list.add(new LPrefixSuffix());
^
/root/JavaX-Caches/tmp_1805658575/main.java:254: error: class, interface, or enum expected
list.add(new LSplitInput(new LOutPattern()));
^
/root/JavaX-Caches/tmp_1805658575/main.java:255: error: class, interface, or enum expected
list.add(new LInputPattern());
^
/root/JavaX-Caches/tmp_1805658575/main.java:256: error: class, interface, or enum expected
list.add(new LFixed());
^
/root/JavaX-Caches/tmp_1805658575/main.java:257: error: class, interface, or enum expected
list.add(new LBoth(new RFJavaTok(), new LEach(new LFixedFunction(new EscapeCase()))));
^
/root/JavaX-Caches/tmp_1805658575/main.java:258: error: class, interface, or enum expected
return list;
^
/root/JavaX-Caches/tmp_1805658575/main.java:259: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1805658575/main.java:261: error: class, interface, or enum expected
public static String unquote(String s) {
^
/root/JavaX-Caches/tmp_1805658575/main.java:264: error: class, interface, or enum expected
else
^
/root/JavaX-Caches/tmp_1805658575/main.java:266: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1805658575/main.java:268: error: class, interface, or enum expected
public static String quote(String s) {
^
/root/JavaX-Caches/tmp_1805658575/main.java:270: error: class, interface, or enum expected
return "\"" + s.replace("\\", "\\\\").replace("\"", "\\\"") + "\"";
^
/root/JavaX-Caches/tmp_1805658575/main.java:271: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1805658575/main.java:275: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1805658575/main.java:280: error: class, interface, or enum expected
Field field;
^
/root/JavaX-Caches/tmp_1805658575/main.java:281: error: class, interface, or enum expected
while (true)
^
/root/JavaX-Caches/tmp_1805658575/main.java:284: error: class, interface, or enum expected
break;
^
/root/JavaX-Caches/tmp_1805658575/main.java:285: error: class, interface, or enum expected
} catch (NoSuchFieldException e) {
^
/root/JavaX-Caches/tmp_1805658575/main.java:287: error: class, interface, or enum expected
}
^
100 errors
only showing the first 100 errors, of 107 total; use -Xmaxerrs if you would like to see more