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

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

/root/JavaX-Caches/tmp_1556557891/main.java:1: error: class, interface, or enum expected lib 1003153 // magic.jar for Lua ^ /root/JavaX-Caches/tmp_1556557891/main.java:4: error: class, interface, or enum expected abstract S getLua(); ^ /root/JavaX-Caches/tmp_1556557891/main.java:5: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1556557891/main.java:10: error: class, interface, or enum expected double score; ^ /root/JavaX-Caches/tmp_1556557891/main.java:12: error: class, interface, or enum expected void put(A a, double score) { ^ /root/JavaX-Caches/tmp_1556557891/main.java:15: error: class, interface, or enum expected this.score = score; ^ /root/JavaX-Caches/tmp_1556557891/main.java:16: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1556557891/main.java:19: error: class, interface, or enum expected A get() { ret best; } ^ /root/JavaX-Caches/tmp_1556557891/main.java:22: error: class, interface, or enum expected abstract sclass GenOpt<Data> { ^ /root/JavaX-Caches/tmp_1556557891/main.java:26: error: class, interface, or enum expected abstract double getScore(Sandbox s, Data d, LuaValue result); ^ /root/JavaX-Caches/tmp_1556557891/main.java:27: error: class, interface, or enum expected abstract Data makeData(); ^ /root/JavaX-Caches/tmp_1556557891/main.java:28: error: class, interface, or enum expected void updatePool(L<Make> pool) {} ^ /root/JavaX-Caches/tmp_1556557891/main.java:31: error: class, interface, or enum expected int verifications = 1000; // sets of data to verify program with ^ /root/JavaX-Caches/tmp_1556557891/main.java:33: error: class, interface, or enum expected L<Make> pool; ^ /root/JavaX-Caches/tmp_1556557891/main.java:34: error: class, interface, or enum expected int round; ^ /root/JavaX-Caches/tmp_1556557891/main.java:35: error: class, interface, or enum expected S verifiedProgram; ^ /root/JavaX-Caches/tmp_1556557891/main.java:37: error: class, interface, or enum expected void go() { ^ /root/JavaX-Caches/tmp_1556557891/main.java:39: error: class, interface, or enum expected new Best<Make> best; ^ /root/JavaX-Caches/tmp_1556557891/main.java:40: error: class, interface, or enum expected new Best<S> bestProgram; ^ /root/JavaX-Caches/tmp_1556557891/main.java:41: error: class, interface, or enum expected while (licensed()) { ^ /root/JavaX-Caches/tmp_1556557891/main.java:43: error: class, interface, or enum expected ++round; ^ /root/JavaX-Caches/tmp_1556557891/main.java:44: error: class, interface, or enum expected updatePool(pool); ^ /root/JavaX-Caches/tmp_1556557891/main.java:46: error: class, interface, or enum expected new HashMap<Make, Number> scores; ^ /root/JavaX-Caches/tmp_1556557891/main.java:47: error: class, interface, or enum expected Data data = makeData(); ^ /root/JavaX-Caches/tmp_1556557891/main.java:49: error: class, interface, or enum expected for (Make maker : pool) { ^ /root/JavaX-Caches/tmp_1556557891/main.java:51: error: class, interface, or enum expected try { ^ /root/JavaX-Caches/tmp_1556557891/main.java:54: error: class, interface, or enum expected if ((round % 10) == 0) print(program); ^ /root/JavaX-Caches/tmp_1556557891/main.java:55: error: class, interface, or enum expected double score = scoreProgram(program, data); ^ /root/JavaX-Caches/tmp_1556557891/main.java:56: error: class, interface, or enum expected scores.put(maker, score); ^ /root/JavaX-Caches/tmp_1556557891/main.java:57: error: class, interface, or enum expected best.put(maker, score); ^ /root/JavaX-Caches/tmp_1556557891/main.java:58: error: class, interface, or enum expected bestProgram.put(program, score); ^ /root/JavaX-Caches/tmp_1556557891/main.java:60: error: class, interface, or enum expected if (score >= 100) { ^ /root/JavaX-Caches/tmp_1556557891/main.java:62: error: class, interface, or enum expected if (vround >= verifications) { ^ /root/JavaX-Caches/tmp_1556557891/main.java:64: error: class, interface, or enum expected verifiedProgram = program; ^ /root/JavaX-Caches/tmp_1556557891/main.java:65: error: class, interface, or enum expected print(program); ^ /root/JavaX-Caches/tmp_1556557891/main.java:66: error: class, interface, or enum expected ret; ^ /root/JavaX-Caches/tmp_1556557891/main.java:67: error: class, interface, or enum expected } else ^ /root/JavaX-Caches/tmp_1556557891/main.java:69: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1556557891/main.java:76: error: class, interface, or enum expected if ((round % 10) == 0) ^ /root/JavaX-Caches/tmp_1556557891/main.java:78: error: class, interface, or enum expected if ((round % 100) == 0) ^ /root/JavaX-Caches/tmp_1556557891/main.java:80: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1556557891/main.java:83: error: class, interface, or enum expected Sandbox makeSandbox(final Data data) { ^ /root/JavaX-Caches/tmp_1556557891/main.java:85: error: class, interface, or enum expected fillSandbox(s, data); ^ /root/JavaX-Caches/tmp_1556557891/main.java:86: error: class, interface, or enum expected ret s; ^ /root/JavaX-Caches/tmp_1556557891/main.java:87: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1556557891/main.java:91: error: class, interface, or enum expected luaMaxSteps(steps); ^ /root/JavaX-Caches/tmp_1556557891/main.java:92: error: class, interface, or enum expected LuaValue result; ^ /root/JavaX-Caches/tmp_1556557891/main.java:93: error: class, interface, or enum expected try { ^ /root/JavaX-Caches/tmp_1556557891/main.java:95: error: class, interface, or enum expected } catch e { ^ /root/JavaX-Caches/tmp_1556557891/main.java:97: error: class, interface, or enum expected ret -1000; ^ /root/JavaX-Caches/tmp_1556557891/main.java:98: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1556557891/main.java:100: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1556557891/main.java:104: error: class, interface, or enum expected try { ^ /root/JavaX-Caches/tmp_1556557891/main.java:105: error: class, interface, or enum expected for (i = 0; i < verifications; i++) ^ /root/JavaX-Caches/tmp_1556557891/main.java:105: error: class, interface, or enum expected for (i = 0; i < verifications; i++) ^ /root/JavaX-Caches/tmp_1556557891/main.java:108: error: class, interface, or enum expected ret verifications; ^ /root/JavaX-Caches/tmp_1556557891/main.java:109: error: class, interface, or enum expected } catch { ^ /root/JavaX-Caches/tmp_1556557891/main.java:111: error: class, interface, or enum expected } ^ 58 errors