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

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

/root/JavaX-Caches/tmp_1238897731/main.java:1: error: class, interface, or enum expected sclass PTElement { ^ /root/JavaX-Caches/tmp_1238897731/main.java:3: error: class, interface, or enum expected double weight = 1, totalWeight; ^ /root/JavaX-Caches/tmp_1238897731/main.java:4: error: class, interface, or enum expected L<PTElement> children; ^ /root/JavaX-Caches/tmp_1238897731/main.java:5: error: class, interface, or enum expected PTElement parent; ^ /root/JavaX-Caches/tmp_1238897731/main.java:7: error: class, interface, or enum expected S plusWeight(S s) { ^ /root/JavaX-Caches/tmp_1238897731/main.java:9: error: class, interface, or enum expected S a = formatDouble(weight, 2), b = formatDouble(totalWeight, 2); ^ /root/JavaX-Caches/tmp_1238897731/main.java:10: error: class, interface, or enum expected ret s + " [" + a + (eq(a, b) ? "" : ", total " + b) + "]"; ^ /root/JavaX-Caches/tmp_1238897731/main.java:11: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1238897731/main.java:13: error: class, interface, or enum expected S text() { ret word == null ? null : word.text(); } ^ /root/JavaX-Caches/tmp_1238897731/main.java:14: error: class, interface, or enum expected S category() { null; } ^ /root/JavaX-Caches/tmp_1238897731/main.java:20: error: class, interface, or enum expected *(AI_BottomUpParser1.Word *word, L<S> *categories) {} ^ /root/JavaX-Caches/tmp_1238897731/main.java:22: error: class, interface, or enum expected toString { ret plusWeight(word.text() + " (" + n2(categories, "category", "categories") + ")"); } ^ /root/JavaX-Caches/tmp_1238897731/main.java:27: error: class, interface, or enum expected ai_Reconstructed reconstruction; // optional ^ /root/JavaX-Caches/tmp_1238897731/main.java:29: error: class, interface, or enum expected *(AI_BottomUpParser1.Word *word, S *category) {} ^ /root/JavaX-Caches/tmp_1238897731/main.java:32: error: class, interface, or enum expected toString { ret plusWeight(quote(word.text()) + " as " + category); } ^ /root/JavaX-Caches/tmp_1238897731/main.java:33: error: class, interface, or enum expected S category() { ret category; } ^ /root/JavaX-Caches/tmp_1238897731/main.java:39: error: class, interface, or enum expected *(AI_BottomUpParser1.Word *word, ai_Reconstructed *reconstruction) {} ^ /root/JavaX-Caches/tmp_1238897731/main.java:43: error: class, interface, or enum expected ret plusWeight( ^ /root/JavaX-Caches/tmp_1238897731/main.java:46: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1238897731/main.java:47: error: class, interface, or enum expected S category() { ret reconstruction.production.c; } ^ 20 errors