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

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

/root/JavaX-Caches/tmp_1973857377/main.java:1: error: class, interface, or enum expected static double ai_gc_scan_maxDistance_reached; ^ /root/JavaX-Caches/tmp_1973857377/main.java:3: error: class, interface, or enum expected static S ai_gc_scan(S root) { ^ /root/JavaX-Caches/tmp_1973857377/main.java:5: error: class, interface, or enum expected ai_startBuffering(); ^ /root/JavaX-Caches/tmp_1973857377/main.java:6: error: class, interface, or enum expected Map<S, Double> distances; ^ /root/JavaX-Caches/tmp_1973857377/main.java:7: error: class, interface, or enum expected try { ^ /root/JavaX-Caches/tmp_1973857377/main.java:10: error: class, interface, or enum expected distances = litcimap(root, 0.0); ^ /root/JavaX-Caches/tmp_1973857377/main.java:11: error: class, interface, or enum expected LinkedList<S> queue = litLinkedList(root); ^ /root/JavaX-Caches/tmp_1973857377/main.java:12: error: class, interface, or enum expected S word; ^ /root/JavaX-Caches/tmp_1973857377/main.java:13: error: class, interface, or enum expected while ping ((word = queue.poll()) != null) { ^ /root/JavaX-Caches/tmp_1973857377/main.java:15: error: class, interface, or enum expected for (WebNode node : indexedNodes(word)) { ^ /root/JavaX-Caches/tmp_1973857377/main.java:18: error: class, interface, or enum expected if (!isNaN(dist)) ^ /root/JavaX-Caches/tmp_1973857377/main.java:20: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1973857377/main.java:24: error: class, interface, or enum expected if (!isNaN(dist)) ^ /root/JavaX-Caches/tmp_1973857377/main.java:26: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1973857377/main.java:30: error: class, interface, or enum expected if (ai_inTestMode()) ^ /root/JavaX-Caches/tmp_1973857377/main.java:32: error: class, interface, or enum expected ai_gc_scan_maxDistance_reached = 0; ^ /root/JavaX-Caches/tmp_1973857377/main.java:33: error: class, interface, or enum expected for (S key : keys) { ^ /root/JavaX-Caches/tmp_1973857377/main.java:35: error: class, interface, or enum expected if (d > ai_gc_scan_maxDistance_reached) ai_gc_scan_maxDistance_reached = d; ^ /root/JavaX-Caches/tmp_1973857377/main.java:36: error: class, interface, or enum expected ai_postTriple(key, "has GC distance", formatDouble(d, 1)); ^ /root/JavaX-Caches/tmp_1973857377/main.java:37: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1973857377/main.java:41: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1973857377/main.java:44: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1973857377/main.java:49: error: class, interface, or enum expected Double od = distances.get(text); ^ /root/JavaX-Caches/tmp_1973857377/main.java:50: error: class, interface, or enum expected if (od == null || d < od) { ^ /root/JavaX-Caches/tmp_1973857377/main.java:52: error: class, interface, or enum expected queue.add(text); ^ /root/JavaX-Caches/tmp_1973857377/main.java:53: error: class, interface, or enum expected } ^ 26 errors