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

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

/root/JavaX-Caches/tmp_61038904/main.java:1: error: class, interface, or enum expected static CirclesAndLines calFromCoordinates(Map<S, Pt> coordinates, SS withImage, Collection<Relation> relations) { ^ /root/JavaX-Caches/tmp_61038904/main.java:3: error: class, interface, or enum expected BufferedImage img = newBufferedImage(20, 20, Color.white); ^ /root/JavaX-Caches/tmp_61038904/main.java:5: error: class, interface, or enum expected new CirclesAndLines cal; ^ /root/JavaX-Caches/tmp_61038904/main.java:6: error: class, interface, or enum expected Map<S, Circle> circles = caseInsensitiveMap(); ^ /root/JavaX-Caches/tmp_61038904/main.java:7: error: class, interface, or enum expected for (S node : keys(coordinates)) { ^ /root/JavaX-Caches/tmp_61038904/main.java:9: error: class, interface, or enum expected double x = ((p.x-r.x)/(double) r.w)*0.6+0.2; ^ /root/JavaX-Caches/tmp_61038904/main.java:10: error: class, interface, or enum expected double y = ((p.y-r.y)/(double) r.h)*0.5+0.2; ^ /root/JavaX-Caches/tmp_61038904/main.java:11: error: class, interface, or enum expected Circle c; ^ /root/JavaX-Caches/tmp_61038904/main.java:12: error: class, interface, or enum expected S imgText = mapGet(withImage, node); ^ /root/JavaX-Caches/tmp_61038904/main.java:13: error: class, interface, or enum expected if (nempty(imgText)) ^ /root/JavaX-Caches/tmp_61038904/main.java:15: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_61038904/main.java:17: error: class, interface, or enum expected circles.put(node, c); ^ /root/JavaX-Caches/tmp_61038904/main.java:18: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_61038904/main.java:23: error: class, interface, or enum expected if (a != null && b != null) cal.addArrow(a, b); ^ /root/JavaX-Caches/tmp_61038904/main.java:24: error: class, interface, or enum expected } else if (rel.is("An arrow * from * to *")) { ^ /root/JavaX-Caches/tmp_61038904/main.java:26: error: class, interface, or enum expected if (a != null && b != null) cal.addArrow(a, b, rel.a()); ^ /root/JavaX-Caches/tmp_61038904/main.java:27: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_61038904/main.java:31: error: class, interface, or enum expected } ^ 18 errors