Wrote /root/JavaX-Caches/tmp_77337867/main.java - 8808 bytes (written=8808, should be 8808)
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_109249851 /root/JavaX-Caches/tmp_77337867/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_77337867/main.java:1: error: class, interface, or enum expected
!636
^
/root/JavaX-Caches/tmp_77337867/main.java:7: error: class, interface, or enum expected
main {
^
/root/JavaX-Caches/tmp_77337867/main.java:11: error: class, interface, or enum expected
src = src.replace("\r\n", "\n");
^
/root/JavaX-Caches/tmp_77337867/main.java:12: error: class, interface, or enum expected
JSONTokenizer lex = new JSONTokenizer(src);
^
/root/JavaX-Caches/tmp_77337867/main.java:14: error: class, interface, or enum expected
List list = new ArrayList();
^
/root/JavaX-Caches/tmp_77337867/main.java:15: error: class, interface, or enum expected
for (TokenType a; (a = lex.nextToken()) != TokenType.EOF;) {
^
/root/JavaX-Caches/tmp_77337867/main.java:15: error: class, interface, or enum expected
for (TokenType a; (a = lex.nextToken()) != TokenType.EOF;) {
^
/root/JavaX-Caches/tmp_77337867/main.java:15: error: class, interface, or enum expected
for (TokenType a; (a = lex.nextToken()) != TokenType.EOF;) {
^
/root/JavaX-Caches/tmp_77337867/main.java:17: error: class, interface, or enum expected
String q = quote(word);
^
/root/JavaX-Caches/tmp_77337867/main.java:18: error: class, interface, or enum expected
T t = new T(a, word);
^
/root/JavaX-Caches/tmp_77337867/main.java:19: error: class, interface, or enum expected
boolean isSpace = t.isSpace();
^
/root/JavaX-Caches/tmp_77337867/main.java:20: error: class, interface, or enum expected
if (isSpace && list.size() > 0 && list.get(list.size()-1).isSpace())
^
/root/JavaX-Caches/tmp_77337867/main.java:22: error: class, interface, or enum expected
else
^
/root/JavaX-Caches/tmp_77337867/main.java:24: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_77337867/main.java:27: error: class, interface, or enum expected
for (int i = 0; i < list.size(); ) {
^
/root/JavaX-Caches/tmp_77337867/main.java:27: error: class, interface, or enum expected
for (int i = 0; i < list.size(); ) {
^
/root/JavaX-Caches/tmp_77337867/main.java:27: error: class, interface, or enum expected
for (int i = 0; i < list.size(); ) {
^
/root/JavaX-Caches/tmp_77337867/main.java:29: error: class, interface, or enum expected
boolean shouldBeSpace = (cnc.size() % 2) == 0;
^
/root/JavaX-Caches/tmp_77337867/main.java:30: error: class, interface, or enum expected
boolean isSpace = t.isSpace();
^
/root/JavaX-Caches/tmp_77337867/main.java:31: error: class, interface, or enum expected
if (shouldBeSpace == isSpace) {
^
/root/JavaX-Caches/tmp_77337867/main.java:33: error: class, interface, or enum expected
++i;
^
/root/JavaX-Caches/tmp_77337867/main.java:34: error: class, interface, or enum expected
} else if (shouldBeSpace)
^
/root/JavaX-Caches/tmp_77337867/main.java:36: error: class, interface, or enum expected
else {
^
/root/JavaX-Caches/tmp_77337867/main.java:38: error: class, interface, or enum expected
throw new RuntimeException("TILT at " + cnc.size() + ": " + quote(t.word));
^
/root/JavaX-Caches/tmp_77337867/main.java:39: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_77337867/main.java:44: error: class, interface, or enum expected
saveTextFile("output/output.txt", cncToLines(cnc));
^
/root/JavaX-Caches/tmp_77337867/main.java:45: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_77337867/main.java:57: error: class, interface, or enum expected
static String cncToLines(List cnc) {
^
/root/JavaX-Caches/tmp_77337867/main.java:59: error: class, interface, or enum expected
for (String token : cnc)
^
/root/JavaX-Caches/tmp_77337867/main.java:61: error: class, interface, or enum expected
return out.toString();
^
/root/JavaX-Caches/tmp_77337867/main.java:62: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_77337867/main.java:66: error: class, interface, or enum expected
return loadTextFile("input/input.txt", def);
^
/root/JavaX-Caches/tmp_77337867/main.java:67: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_77337867/main.java:69: error: class, interface, or enum expected
public static String quote(String s) {
^
/root/JavaX-Caches/tmp_77337867/main.java:71: error: class, interface, or enum expected
return "\"" + s.replace("\\", "\\\\").replace("\"", "\\\"").replace("\r", "\\r").replace("\n", "\\n") + "\"";
^
/root/JavaX-Caches/tmp_77337867/main.java:72: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_77337867/main.java:338: error: class, interface, or enum expected
}
^
37 errors