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

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

/root/JavaX-Caches/tmp_1176223220/main.java:5: error: class, interface, or enum expected sclass CutListToBudget<A> { ^ /root/JavaX-Caches/tmp_1176223220/main.java:7: error: class, interface, or enum expected settable Iterable<A> inputList; ^ /root/JavaX-Caches/tmp_1176223220/main.java:8: error: class, interface, or enum expected gettable L<A> outputList; ^ /root/JavaX-Caches/tmp_1176223220/main.java:9: error: class, interface, or enum expected gettable double finalPrice; ^ /root/JavaX-Caches/tmp_1176223220/main.java:12: error: class, interface, or enum expected settable bool allowPartial; ^ /root/JavaX-Caches/tmp_1176223220/main.java:16: error: class, interface, or enum expected gettable A fullLastElement; ^ /root/JavaX-Caches/tmp_1176223220/main.java:18: error: class, interface, or enum expected swappable double getPrice(A element) { throw unimplemented(); } ^ /root/JavaX-Caches/tmp_1176223220/main.java:18: error: class, interface, or enum expected swappable double getPrice(A element) { throw unimplemented(); } ^ /root/JavaX-Caches/tmp_1176223220/main.java:22: error: class, interface, or enum expected swappable A reduceElement(A element, double budget) { null; } ^ /root/JavaX-Caches/tmp_1176223220/main.java:29: error: class, interface, or enum expected finalPrice = 0; ^ /root/JavaX-Caches/tmp_1176223220/main.java:30: error: class, interface, or enum expected fOr (element : inputList) { ^ /root/JavaX-Caches/tmp_1176223220/main.java:32: error: class, interface, or enum expected if (finalPrice + price > maxPrice) { ^ /root/JavaX-Caches/tmp_1176223220/main.java:35: error: class, interface, or enum expected if (partial != null) { ^ /root/JavaX-Caches/tmp_1176223220/main.java:37: error: class, interface, or enum expected finalPrice += getPrice(partial); ^ /root/JavaX-Caches/tmp_1176223220/main.java:38: error: class, interface, or enum expected outputList.add(partial); ^ /root/JavaX-Caches/tmp_1176223220/main.java:39: error: class, interface, or enum expected if (finalPrice > maxPrice) ^ /root/JavaX-Caches/tmp_1176223220/main.java:41: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1176223220/main.java:44: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1176223220/main.java:46: error: class, interface, or enum expected outputList.add(element); ^ /root/JavaX-Caches/tmp_1176223220/main.java:47: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1176223220/main.java:52: error: class, interface, or enum expected ret outputList; ^ /root/JavaX-Caches/tmp_1176223220/main.java:53: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1176223220/main.java:57: error: class, interface, or enum expected ret allowPartial(true); ^ /root/JavaX-Caches/tmp_1176223220/main.java:58: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1176223220/main.java:62: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1176223220/main.java:66: error: class, interface, or enum expected } ^ 26 errors