Wrote /root/JavaX-Caches/tmp_74953229/main.java - 4881 bytes (written=4881, should be 4881)
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_1228232527 /root/JavaX-Caches/tmp_74953229/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_74953229/main.java:1: error: class, interface, or enum expected
!636
^
/root/JavaX-Caches/tmp_74953229/main.java:8: error: class, interface, or enum expected
Lex lex = new Lex();
^
/root/JavaX-Caches/tmp_74953229/main.java:9: error: class, interface, or enum expected
src = src.replace("\r\n", "\n");
^
/root/JavaX-Caches/tmp_74953229/main.java:10: error: class, interface, or enum expected
LineNumberReader source = new LineNumberReader(new StringReader(src));
^
/root/JavaX-Caches/tmp_74953229/main.java:11: error: class, interface, or enum expected
int lineNr = source.getLineNumber()+1;
^
/root/JavaX-Caches/tmp_74953229/main.java:12: error: class, interface, or enum expected
List list = new ArrayList();
^
/root/JavaX-Caches/tmp_74953229/main.java:13: error: class, interface, or enum expected
for (Object a; (a = lex.grab(source)) != lex.$;) {
^
/root/JavaX-Caches/tmp_74953229/main.java:13: error: class, interface, or enum expected
for (Object a; (a = lex.grab(source)) != lex.$;) {
^
/root/JavaX-Caches/tmp_74953229/main.java:13: error: class, interface, or enum expected
for (Object a; (a = lex.grab(source)) != lex.$;) {
^
/root/JavaX-Caches/tmp_74953229/main.java:15: error: class, interface, or enum expected
String q = quote(word);
^
/root/JavaX-Caches/tmp_74953229/main.java:17: error: class, interface, or enum expected
lineNr = source.getLineNumber()+1;
^
/root/JavaX-Caches/tmp_74953229/main.java:19: error: class, interface, or enum expected
T t = new T(a, word);
^
/root/JavaX-Caches/tmp_74953229/main.java:20: error: class, interface, or enum expected
boolean isSpace = t.isSpace();
^
/root/JavaX-Caches/tmp_74953229/main.java:21: error: class, interface, or enum expected
if (isSpace && list.size() > 0 && list.get(list.size()-1).isSpace())
^
/root/JavaX-Caches/tmp_74953229/main.java:23: error: class, interface, or enum expected
else
^
/root/JavaX-Caches/tmp_74953229/main.java:25: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_74953229/main.java:28: error: class, interface, or enum expected
for (int i = 0; i < list.size(); ) {
^
/root/JavaX-Caches/tmp_74953229/main.java:28: error: class, interface, or enum expected
for (int i = 0; i < list.size(); ) {
^
/root/JavaX-Caches/tmp_74953229/main.java:28: error: class, interface, or enum expected
for (int i = 0; i < list.size(); ) {
^
/root/JavaX-Caches/tmp_74953229/main.java:30: error: class, interface, or enum expected
boolean shouldBeSpace = (cnc.size() % 2) == 0;
^
/root/JavaX-Caches/tmp_74953229/main.java:31: error: class, interface, or enum expected
boolean isSpace = t.isSpace();
^
/root/JavaX-Caches/tmp_74953229/main.java:32: error: class, interface, or enum expected
if (shouldBeSpace == isSpace) {
^
/root/JavaX-Caches/tmp_74953229/main.java:34: error: class, interface, or enum expected
++i;
^
/root/JavaX-Caches/tmp_74953229/main.java:35: error: class, interface, or enum expected
} else if (shouldBeSpace)
^
/root/JavaX-Caches/tmp_74953229/main.java:37: error: class, interface, or enum expected
else {
^
/root/JavaX-Caches/tmp_74953229/main.java:39: error: class, interface, or enum expected
throw new RuntimeException("TILT at " + cnc.size() + ": " + quote(t.word));
^
/root/JavaX-Caches/tmp_74953229/main.java:40: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_74953229/main.java:45: error: class, interface, or enum expected
saveTextFile("output/output.txt", cncToLines(cnc));
^
/root/JavaX-Caches/tmp_74953229/main.java:46: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_74953229/main.java:58: error: class, interface, or enum expected
static String cncToLines(List cnc) {
^
/root/JavaX-Caches/tmp_74953229/main.java:60: error: class, interface, or enum expected
for (String token : cnc)
^
/root/JavaX-Caches/tmp_74953229/main.java:62: error: class, interface, or enum expected
return out.toString();
^
/root/JavaX-Caches/tmp_74953229/main.java:63: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_74953229/main.java:67: error: class, interface, or enum expected
return loadTextFile("input/input.txt", def);
^
/root/JavaX-Caches/tmp_74953229/main.java:68: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_74953229/main.java:70: error: class, interface, or enum expected
public static String quote(String s) {
^
/root/JavaX-Caches/tmp_74953229/main.java:72: error: class, interface, or enum expected
return "\"" + s.replace("\\", "\\\\").replace("\"", "\\\"").replace("\r", "\\r").replace("\n", "\\n") + "\"";
^
/root/JavaX-Caches/tmp_74953229/main.java:73: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_74953229/main.java:189: error: class, interface, or enum expected
}
^
39 errors