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

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

/root/JavaX-Caches/tmp_618412046/main.java:1: error: class, interface, or enum expected static void ai_tg_collectRuleFeedback(Map<S, Int> ruleScores, Collection<S> out_facts) { ^ /root/JavaX-Caches/tmp_618412046/main.java:5: error: class, interface, or enum expected for i over l: { ^ /root/JavaX-Caches/tmp_618412046/main.java:7: error: class, interface, or enum expected if (empty(rules)) continue; ^ /root/JavaX-Caches/tmp_618412046/main.java:8: error: class, interface, or enum expected Msg msg = l.get(i).a; ^ /root/JavaX-Caches/tmp_618412046/main.java:9: error: class, interface, or enum expected int j = i+1; ^ /root/JavaX-Caches/tmp_618412046/main.java:10: error: class, interface, or enum expected while (j < l(l) && l.get(j).a.sent) ++j; // Find next user msg ^ /root/JavaX-Caches/tmp_618412046/main.java:11: error: class, interface, or enum expected L<Msg> nextMsgs = pairsA(subList(l, i+1, j+1)); ^ /root/JavaX-Caches/tmp_618412046/main.java:12: error: class, interface, or enum expected Msg userMsg = null; ^ /root/JavaX-Caches/tmp_618412046/main.java:13: error: class, interface, or enum expected if (nempty(nextMsgs)) { ^ /root/JavaX-Caches/tmp_618412046/main.java:16: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_618412046/main.java:18: error: class, interface, or enum expected int score = 0, ruleNr = 0; ^ /root/JavaX-Caches/tmp_618412046/main.java:19: error: class, interface, or enum expected S s = userMsg.text; ^ /root/JavaX-Caches/tmp_618412046/main.java:21: error: class, interface, or enum expected new Matches m; ^ /root/JavaX-Caches/tmp_618412046/main.java:22: error: class, interface, or enum expected if "* to number *" { ^ /root/JavaX-Caches/tmp_618412046/main.java:23: error: class, interface, or enum expected s = $1; ruleNr = parseInt($2); ^ /root/JavaX-Caches/tmp_618412046/main.java:24: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_618412046/main.java:28: error: class, interface, or enum expected if (matchAny(mL("No Feedback Words"), s)) ^ /root/JavaX-Caches/tmp_618412046/main.java:32: error: class, interface, or enum expected for (S rule : ruleNr == 0 ? rules : ll(rules.get(ruleNr-1))) { ^ /root/JavaX-Caches/tmp_618412046/main.java:35: error: class, interface, or enum expected if (out_facts != null) ^ /root/JavaX-Caches/tmp_618412046/main.java:38: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_618412046/main.java:43: error: class, interface, or enum expected } ^ 21 errors