Wrote /root/JavaX-Caches/tmp_951622224/main.java - 10137 bytes (written=10137, should be 10137) 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_1202645512 /root/JavaX-Caches/tmp_951622224/main.java 2>&1
[Compilation Error]

Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.

/root/JavaX-Caches/tmp_951622224/main.java:1: error: class, interface, or enum expected !752 ^ /root/JavaX-Caches/tmp_951622224/main.java:5: error: class, interface, or enum expected static L<S> botIDs = litlist("#1001890", "#1001923", "#1001937", "#1001942", "#1001945", "#1001951" /*, "#1001747"*/, ^ /root/JavaX-Caches/tmp_951622224/main.java:7: error: class, interface, or enum expected static new L<Class> bots; ^ /root/JavaX-Caches/tmp_951622224/main.java:8: error: class, interface, or enum expected static new L<S> activeBots; ^ /root/JavaX-Caches/tmp_951622224/main.java:9: error: class, interface, or enum expected static Map<S, Class> botsByID = synchroTreeMap(); ^ /root/JavaX-Caches/tmp_951622224/main.java:11: error: class, interface, or enum expected static S channelID = "C0FH9PY8J"; // relp, #talkingbots ^ /root/JavaX-Caches/tmp_951622224/main.java:12: error: class, interface, or enum expected static S token; ^ /root/JavaX-Caches/tmp_951622224/main.java:15: error: class, interface, or enum expected static new Map<S, S> userNames; ^ /root/JavaX-Caches/tmp_951622224/main.java:17: error: class, interface, or enum expected static S lastQuestion, lastAnswer; ^ /root/JavaX-Caches/tmp_951622224/main.java:18: error: class, interface, or enum expected static S lastAnswerTimestamp; // only for posted in this session ^ /root/JavaX-Caches/tmp_951622224/main.java:19: error: class, interface, or enum expected static int lastAnswerScore; ^ /root/JavaX-Caches/tmp_951622224/main.java:21: error: class, interface, or enum expected static int webServerPort = 80; // set to 0 for no web serving ^ /root/JavaX-Caches/tmp_951622224/main.java:22: error: class, interface, or enum expected static long hitCount; ^ /root/JavaX-Caches/tmp_951622224/main.java:33: error: class, interface, or enum expected static new L<Map> history; // stores all processed user questions (not whole chat log) ^ /root/JavaX-Caches/tmp_951622224/main.java:35: error: class, interface, or enum expected p { ^ /root/JavaX-Caches/tmp_951622224/main.java:39: error: class, interface, or enum expected reload(); ^ /root/JavaX-Caches/tmp_951622224/main.java:40: error: class, interface, or enum expected readLog(); ^ /root/JavaX-Caches/tmp_951622224/main.java:42: error: class, interface, or enum expected if (webServerPort != 0) { ^ /root/JavaX-Caches/tmp_951622224/main.java:44: error: class, interface, or enum expected serveHttp(webServerPort); ^ /root/JavaX-Caches/tmp_951622224/main.java:45: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_951622224/main.java:52: error: class, interface, or enum expected if (score != lastAnswerScore) { ^ /root/JavaX-Caches/tmp_951622224/main.java:54: error: class, interface, or enum expected recordFeedback(lastQuestion, lastAnswer, lastAnswerTimestamp, "emoji", score-lastAnswerScore); ^ /root/JavaX-Caches/tmp_951622224/main.java:55: error: class, interface, or enum expected lastAnswerScore = score; ^ /root/JavaX-Caches/tmp_951622224/main.java:56: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_951622224/main.java:62: error: class, interface, or enum expected for (SlackMsg msg : qs) { ^ /root/JavaX-Caches/tmp_951622224/main.java:64: error: class, interface, or enum expected S userName = getUserName(msg.user); ^ /root/JavaX-Caches/tmp_951622224/main.java:65: error: class, interface, or enum expected print("Processing question: " + quote(q)); ^ /root/JavaX-Caches/tmp_951622224/main.java:66: error: class, interface, or enum expected if (lastAnswer != null) { // TODO: maybe check the time delay ^ /root/JavaX-Caches/tmp_951622224/main.java:68: error: class, interface, or enum expected if (score != 0) { ^ /root/JavaX-Caches/tmp_951622224/main.java:70: error: class, interface, or enum expected if (score > 0) ^ /root/JavaX-Caches/tmp_951622224/main.java:71: error: class, interface, or enum expected pcall { slackSmile(token, channelID, msg.ts); } ^ /root/JavaX-Caches/tmp_951622224/main.java:73: error: class, interface, or enum expected pcall { slackReact(token, channelID, msg.ts, "thinking_face"); } ^ /root/JavaX-Caches/tmp_951622224/main.java:76: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_951622224/main.java:80: error: class, interface, or enum expected if (a != null) { ^ /root/JavaX-Caches/tmp_951622224/main.java:83: error: class, interface, or enum expected print("Answering with: " + quote(a)); ^ /root/JavaX-Caches/tmp_951622224/main.java:84: error: class, interface, or enum expected lastAnswer = a; ^ /root/JavaX-Caches/tmp_951622224/main.java:85: error: class, interface, or enum expected lastQuestion = q; ^ /root/JavaX-Caches/tmp_951622224/main.java:86: error: class, interface, or enum expected if (actuallyPost) { ^ /root/JavaX-Caches/tmp_951622224/main.java:88: error: class, interface, or enum expected Map logEntry = litmap("question", q, "user", userName, "answertime", answerTime, "answer", a, "realtime", now()); ^ /root/JavaX-Caches/tmp_951622224/main.java:89: error: class, interface, or enum expected history.add(logEntry); ^ /root/JavaX-Caches/tmp_951622224/main.java:90: error: class, interface, or enum expected logQuoted(new File(programDir(), "memory-log"), structure(logEntry)); ^ /root/JavaX-Caches/tmp_951622224/main.java:91: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_951622224/main.java:97: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_951622224/main.java:103: error: class, interface, or enum expected S url = "https://slack.com/api/chat.postMessage"; ^ /root/JavaX-Caches/tmp_951622224/main.java:104: error: class, interface, or enum expected S postData = "token=" + urlencode(token) + "&channel=" + urlencode(channelID) + "&text=" + urlencode(text) ^ /root/JavaX-Caches/tmp_951622224/main.java:106: error: class, interface, or enum expected print(postData); ^ /root/JavaX-Caches/tmp_951622224/main.java:107: error: class, interface, or enum expected S data = doPost(postData, url); ^ /root/JavaX-Caches/tmp_951622224/main.java:108: error: class, interface, or enum expected Map map = jsonDecodeMap(data); ^ /root/JavaX-Caches/tmp_951622224/main.java:109: error: class, interface, or enum expected lastAnswerTimestamp = (S) map.get("ts"); ^ /root/JavaX-Caches/tmp_951622224/main.java:110: error: class, interface, or enum expected lastAnswerScore = 0; ^ /root/JavaX-Caches/tmp_951622224/main.java:111: error: class, interface, or enum expected print("postAnswer: " + data); ^ /root/JavaX-Caches/tmp_951622224/main.java:112: error: class, interface, or enum expected ret lastAnswerTimestamp; ^ /root/JavaX-Caches/tmp_951622224/main.java:113: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_951622224/main.java:117: error: class, interface, or enum expected static L<SlackMsg> getNewQuestions() { ^ /root/JavaX-Caches/tmp_951622224/main.java:121: error: class, interface, or enum expected L<SlackMsg> msgs = slackReadChannel(channelID, token, limit, getNewQuestions_lastSeen); ^ /root/JavaX-Caches/tmp_951622224/main.java:122: error: class, interface, or enum expected if (!msgs.isEmpty()) getNewQuestions_lastSeen = last(msgs).ts; ^ /root/JavaX-Caches/tmp_951622224/main.java:123: error: class, interface, or enum expected int i = indexOfLastBotAnswer(msgs); ^ /root/JavaX-Caches/tmp_951622224/main.java:124: error: class, interface, or enum expected if (i >= 0) { ^ /root/JavaX-Caches/tmp_951622224/main.java:128: error: class, interface, or enum expected lastAnswer = msgs.get(i).text; ^ /root/JavaX-Caches/tmp_951622224/main.java:129: error: class, interface, or enum expected for (int j = 0; j < i; j++) { ^ /root/JavaX-Caches/tmp_951622224/main.java:129: error: class, interface, or enum expected for (int j = 0; j < i; j++) { ^ /root/JavaX-Caches/tmp_951622224/main.java:129: error: class, interface, or enum expected for (int j = 0; j < i; j++) { ^ /root/JavaX-Caches/tmp_951622224/main.java:131: error: class, interface, or enum expected S userName = getUserName(msg.user); ^ /root/JavaX-Caches/tmp_951622224/main.java:133: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_951622224/main.java:136: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_951622224/main.java:138: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_951622224/main.java:141: error: class, interface, or enum expected for (int i = l(msgs)-1; i >= 0; i--) ^ /root/JavaX-Caches/tmp_951622224/main.java:141: error: class, interface, or enum expected for (int i = l(msgs)-1; i >= 0; i--) ^ /root/JavaX-Caches/tmp_951622224/main.java:143: error: class, interface, or enum expected ret -1; ^ /root/JavaX-Caches/tmp_951622224/main.java:144: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_951622224/main.java:149: error: class, interface, or enum expected if (match("reload", s)) { ^ /root/JavaX-Caches/tmp_951622224/main.java:151: error: class, interface, or enum expected ret l(bots) + "/" + l(botIDs) + " bots reloaded."; ^ /root/JavaX-Caches/tmp_951622224/main.java:152: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_951622224/main.java:156: error: class, interface, or enum expected ret "Bot " + formatSnippetID(m.unq(0)) + " reloaded."; ^ /root/JavaX-Caches/tmp_951622224/main.java:157: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_951622224/main.java:161: error: class, interface, or enum expected L<S> inactiveBots = diff(botIDs, activeBots); ^ /root/JavaX-Caches/tmp_951622224/main.java:162: error: class, interface, or enum expected if (!inactiveBots.isEmpty()) ^ /root/JavaX-Caches/tmp_951622224/main.java:164: error: class, interface, or enum expected ret answer; ^ /root/JavaX-Caches/tmp_951622224/main.java:165: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_951622224/main.java:170: error: class, interface, or enum expected ret callStaticAnswerMethod(bots, s); ^ /root/JavaX-Caches/tmp_951622224/main.java:171: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_951622224/main.java:175: error: class, interface, or enum expected print("Recording feedback: " + data); ^ /root/JavaX-Caches/tmp_951622224/main.java:176: error: class, interface, or enum expected logQuoted(new File(programDir(), "feedback-log"), structure(data)); ^ /root/JavaX-Caches/tmp_951622224/main.java:177: error: class, interface, or enum expected logQuoted(new File(programDir(), "memory-log"), structure(data)); ^ /root/JavaX-Caches/tmp_951622224/main.java:178: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_951622224/main.java:182: error: class, interface, or enum expected cleanUp(bots); ^ /root/JavaX-Caches/tmp_951622224/main.java:183: error: class, interface, or enum expected activeBots = new ArrayList<S>(); ^ /root/JavaX-Caches/tmp_951622224/main.java:184: error: class, interface, or enum expected botsByID.clear(); ^ /root/JavaX-Caches/tmp_951622224/main.java:185: error: class, interface, or enum expected for (S botID : botIDs) ^ /root/JavaX-Caches/tmp_951622224/main.java:188: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_951622224/main.java:193: error: class, interface, or enum expected Class bot = botsByID.get(parsedID); ^ /root/JavaX-Caches/tmp_951622224/main.java:194: error: class, interface, or enum expected if (bot == null) ret; ^ /root/JavaX-Caches/tmp_951622224/main.java:195: error: class, interface, or enum expected cleanUp(bot); ^ /root/JavaX-Caches/tmp_951622224/main.java:196: error: class, interface, or enum expected botsByID.remove(parsedID); ^ /root/JavaX-Caches/tmp_951622224/main.java:197: error: class, interface, or enum expected activeBots.remove(bot); ^ /root/JavaX-Caches/tmp_951622224/main.java:198: error: class, interface, or enum expected loadBot(botID); ^ /root/JavaX-Caches/tmp_951622224/main.java:199: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_951622224/main.java:203: error: class, interface, or enum expected Class c = run(botID); ^ /root/JavaX-Caches/tmp_951622224/main.java:204: error: class, interface, or enum expected bots.add(c); ^ /root/JavaX-Caches/tmp_951622224/main.java:205: error: class, interface, or enum expected activeBots.add(botID); // only if loading doesn't fail ^ 100 errors only showing the first 100 errors, of 160 total; use -Xmaxerrs if you would like to see more