Wrote /root/JavaX-Caches/tmp_1909983095/main.java - 1703 bytes (written=1703, should be 1703)
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_565366757 /root/JavaX-Caches/tmp_1909983095/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_1909983095/main.java:1: error: class, interface, or enum expected
!636
^
/root/JavaX-Caches/tmp_1909983095/main.java:8: error: class, interface, or enum expected
src = src.replace("\r\n", "\n");
^
/root/JavaX-Caches/tmp_1909983095/main.java:9: error: class, interface, or enum expected
String[] tokens = tokenizeJava(src);
^
/root/JavaX-Caches/tmp_1909983095/main.java:10: error: class, interface, or enum expected
for (String t : tokens)
^
/root/JavaX-Caches/tmp_1909983095/main.java:12: error: class, interface, or enum expected
String joined = join(tokens);
^
/root/JavaX-Caches/tmp_1909983095/main.java:13: error: class, interface, or enum expected
saveTextFile("output/joined.txt", joined);
^
/root/JavaX-Caches/tmp_1909983095/main.java:14: error: class, interface, or enum expected
if (!src.equals(joined)) {
^
/root/JavaX-Caches/tmp_1909983095/main.java:15: error: class, interface, or enum expected
for (int i = 0; i < joined.length(); i++)
^
/root/JavaX-Caches/tmp_1909983095/main.java:15: error: class, interface, or enum expected
for (int i = 0; i < joined.length(); i++)
^
/root/JavaX-Caches/tmp_1909983095/main.java:18: error: class, interface, or enum expected
break;
^
/root/JavaX-Caches/tmp_1909983095/main.java:19: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1909983095/main.java:21: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1909983095/main.java:26: error: class, interface, or enum expected
LineNumberReader source = new LineNumberReader(new StringReader(src));
^
/root/JavaX-Caches/tmp_1909983095/main.java:27: error: class, interface, or enum expected
List tokens = new ArrayList();
^
/root/JavaX-Caches/tmp_1909983095/main.java:28: error: class, interface, or enum expected
try {
^
/root/JavaX-Caches/tmp_1909983095/main.java:29: error: class, interface, or enum expected
for (Object a; (a = lex.grab(source)) != lex.$;)
^
/root/JavaX-Caches/tmp_1909983095/main.java:29: error: class, interface, or enum expected
for (Object a; (a = lex.grab(source)) != lex.$;)
^
/root/JavaX-Caches/tmp_1909983095/main.java:31: error: class, interface, or enum expected
} catch (Exception e) {
^
/root/JavaX-Caches/tmp_1909983095/main.java:33: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1909983095/main.java:35: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1909983095/main.java:39: error: class, interface, or enum expected
return loadTextFile("input/input.txt", def);
^
/root/JavaX-Caches/tmp_1909983095/main.java:40: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1909983095/main.java:44: error: class, interface, or enum expected
for (String s : array)
^
/root/JavaX-Caches/tmp_1909983095/main.java:46: error: class, interface, or enum expected
return buf.toString();
^
/root/JavaX-Caches/tmp_1909983095/main.java:47: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1909983095/main.java:49: error: class, interface, or enum expected
public static String quote(String s) {
^
/root/JavaX-Caches/tmp_1909983095/main.java:51: error: class, interface, or enum expected
return "\"" + s.replace("\\", "\\\\").replace("\"", "\\\"").replace("\r", "\\r").replace("\n", "\\n") + "\"";
^
/root/JavaX-Caches/tmp_1909983095/main.java:52: error: class, interface, or enum expected
}
^
28 errors