Wrote /root/JavaX-Caches/tmp_724334845/main.java - 3749 bytes (written=3749, should be 3749)
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_863331129 /root/JavaX-Caches/tmp_724334845/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_724334845/main.java:1: error: class, interface, or enum expected
!include #1004681 // Concepts
^
/root/JavaX-Caches/tmp_724334845/main.java:1: error: illegal character: '#'
!include #1004681 // Concepts
^
/root/JavaX-Caches/tmp_724334845/main.java:7: error: class, interface, or enum expected
*() {}
^
/root/JavaX-Caches/tmp_724334845/main.java:8: error: class, interface, or enum expected
*(ELPost *post) { _doneLoading(); }
^
/root/JavaX-Caches/tmp_724334845/main.java:12: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_724334845/main.java:14: error: class, interface, or enum expected
S text() { ret trim(post.text); }
^
/root/JavaX-Caches/tmp_724334845/main.java:15: error: class, interface, or enum expected
S s() { ret text(); }
^
/root/JavaX-Caches/tmp_724334845/main.java:21: error: class, interface, or enum expected
new Ref userLine;
^
/root/JavaX-Caches/tmp_724334845/main.java:23: error: class, interface, or enum expected
*() {}
^
/root/JavaX-Caches/tmp_724334845/main.java:26: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_724334845/main.java:32: error: class, interface, or enum expected
new Ref userLine;
^
/root/JavaX-Caches/tmp_724334845/main.java:33: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_724334845/main.java:38: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_724334845/main.java:42: error: class, interface, or enum expected
static File eventLogFile;
^
/root/JavaX-Caches/tmp_724334845/main.java:43: error: class, interface, or enum expected
static L posts;
^
/root/JavaX-Caches/tmp_724334845/main.java:45: error: class, interface, or enum expected
static File lastFile;
^
/root/JavaX-Caches/tmp_724334845/main.java:46: error: class, interface, or enum expected
static long lastLength;
^
/root/JavaX-Caches/tmp_724334845/main.java:47: error: class, interface, or enum expected
static int chatIdx;
^
/root/JavaX-Caches/tmp_724334845/main.java:49: error: class, interface, or enum expected
static void scanChatIfNecessary {
^
/root/JavaX-Caches/tmp_724334845/main.java:51: error: class, interface, or enum expected
long l = eventLogFile.length();
^
/root/JavaX-Caches/tmp_724334845/main.java:52: error: class, interface, or enum expected
bool sameFile;
^
/root/JavaX-Caches/tmp_724334845/main.java:53: error: class, interface, or enum expected
if (!((sameFile = sameFile(eventLogFile, lastFile)) && l == lastLength)) {
^
/root/JavaX-Caches/tmp_724334845/main.java:55: error: class, interface, or enum expected
lastLength = l;
^
/root/JavaX-Caches/tmp_724334845/main.java:56: error: class, interface, or enum expected
posts = scanEventLogForPosts(eventLogFile);
^
/root/JavaX-Caches/tmp_724334845/main.java:57: error: class, interface, or enum expected
psl(posts);
^
/root/JavaX-Caches/tmp_724334845/main.java:58: error: class, interface, or enum expected
if (!sameFile) chatIdx = 0;
^
/root/JavaX-Caches/tmp_724334845/main.java:59: error: class, interface, or enum expected
scanChat();
^
/root/JavaX-Caches/tmp_724334845/main.java:60: error: class, interface, or enum expected
chatIdx = l(posts);
^
/root/JavaX-Caches/tmp_724334845/main.java:61: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_724334845/main.java:67: error: class, interface, or enum expected
for (int i = chatIdx; i < l(posts); i++) {
^
/root/JavaX-Caches/tmp_724334845/main.java:67: error: class, interface, or enum expected
for (int i = chatIdx; i < l(posts); i++) {
^
/root/JavaX-Caches/tmp_724334845/main.java:69: error: class, interface, or enum expected
parsePossibleAnswer(i);
^
/root/JavaX-Caches/tmp_724334845/main.java:70: error: class, interface, or enum expected
processNewUserLine(getUserLine(p));
^
/root/JavaX-Caches/tmp_724334845/main.java:71: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_724334845/main.java:76: error: class, interface, or enum expected
S s = trim(p.text);
^
/root/JavaX-Caches/tmp_724334845/main.java:77: error: class, interface, or enum expected
if (startsWith(s, "@")) {
^
/root/JavaX-Caches/tmp_724334845/main.java:79: error: class, interface, or enum expected
int i = min(xIndexOf(s, ' '), xIndexOf(s, ':'));
^
/root/JavaX-Caches/tmp_724334845/main.java:80: error: class, interface, or enum expected
S n = substring(s, 0, i);
^
/root/JavaX-Caches/tmp_724334845/main.java:81: error: class, interface, or enum expected
if (!isInteger(n)) ret;
^
/root/JavaX-Caches/tmp_724334845/main.java:82: error: class, interface, or enum expected
S answer = trimDropPrefixTrim(":", substring(s, i));
^
/root/JavaX-Caches/tmp_724334845/main.java:83: error: class, interface, or enum expected
int questionIdx = chatIdx-parseInt(n);
^
/root/JavaX-Caches/tmp_724334845/main.java:84: error: class, interface, or enum expected
registerUserAnswer(chatIdx, questionIdx, answer);
^
/root/JavaX-Caches/tmp_724334845/main.java:85: error: class, interface, or enum expected
} else if (findBackRef(getUserLine(p), Question.class) == null) {
^
/root/JavaX-Caches/tmp_724334845/main.java:85: error: expected
} else if (findBackRef(getUserLine(p), Question.class) == null) {
^
/root/JavaX-Caches/tmp_724334845/main.java:86: error: invalid method declaration; return type required
registerUserAnswer(chatIdx, chatIdx-1, s);
^
/root/JavaX-Caches/tmp_724334845/main.java:86: error: expected
registerUserAnswer(chatIdx, chatIdx-1, s);
^
/root/JavaX-Caches/tmp_724334845/main.java:86: error: expected
registerUserAnswer(chatIdx, chatIdx-1, s);
^
/root/JavaX-Caches/tmp_724334845/main.java:88: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_724334845/main.java:92: error: class, interface, or enum expected
ELPost q = get(posts, questionIdx);
^
/root/JavaX-Caches/tmp_724334845/main.java:93: error: class, interface, or enum expected
if (q == null)
^
/root/JavaX-Caches/tmp_724334845/main.java:95: error: class, interface, or enum expected
else {
^
/root/JavaX-Caches/tmp_724334845/main.java:97: error: class, interface, or enum expected
UserLine ulQ = getUserLine(q);
^
/root/JavaX-Caches/tmp_724334845/main.java:98: error: class, interface, or enum expected
Question qu = findBackRefOfType(ulQ, Question.class);
^
/root/JavaX-Caches/tmp_724334845/main.java:98: error: expected
Question qu = findBackRefOfType(ulQ, Question.class);
^
/root/JavaX-Caches/tmp_724334845/main.java:99: error: class, interface, or enum expected
if (qu == null)
^
/root/JavaX-Caches/tmp_724334845/main.java:101: error: class, interface, or enum expected
else {
^
/root/JavaX-Caches/tmp_724334845/main.java:103: error: class, interface, or enum expected
UserAnswer ua = findBackRefOfType(ul, UserAnswer.class);
^
/root/JavaX-Caches/tmp_724334845/main.java:103: error: expected
UserAnswer ua = findBackRefOfType(ul, UserAnswer.class);
^
/root/JavaX-Caches/tmp_724334845/main.java:104: error: class, interface, or enum expected
if (ua != null)
^
/root/JavaX-Caches/tmp_724334845/main.java:106: error: class, interface, or enum expected
else {
^
/root/JavaX-Caches/tmp_724334845/main.java:108: error: class, interface, or enum expected
ua.userLine.set(ul);
^
/root/JavaX-Caches/tmp_724334845/main.java:109: error: class, interface, or enum expected
ua.inResponseTo.set(qu);
^
/root/JavaX-Caches/tmp_724334845/main.java:110: error: class, interface, or enum expected
print(" Registered user answer as " + ua.id);
^
/root/JavaX-Caches/tmp_724334845/main.java:111: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_724334845/main.java:118: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_724334845/main.java:122: error: class, interface, or enum expected
if (ul == null)
^
/root/JavaX-Caches/tmp_724334845/main.java:124: error: class, interface, or enum expected
ret ul;
^
/root/JavaX-Caches/tmp_724334845/main.java:125: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_724334845/main.java:130: error: class, interface, or enum expected
if (chatTime == null) null;
^
/root/JavaX-Caches/tmp_724334845/main.java:131: error: class, interface, or enum expected
new ELPost post;
^
/root/JavaX-Caches/tmp_724334845/main.java:132: error: class, interface, or enum expected
post.chatTime = chatTime;
^
/root/JavaX-Caches/tmp_724334845/main.java:133: error: class, interface, or enum expected
post.text = text;
^
/root/JavaX-Caches/tmp_724334845/main.java:134: error: class, interface, or enum expected
ret getUserLine(post);
^
/root/JavaX-Caches/tmp_724334845/main.java:135: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_724334845/main.java:141: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_724334845/main.java:145: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_724334845/main.java:148: error: class, interface, or enum expected
}
^
77 errors