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

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

/root/JavaX-Caches/tmp_1259747845/main.java:5: error: class, interface, or enum expected sinterface GameForAI { ^ /root/JavaX-Caches/tmp_1259747845/main.java:7: error: class, interface, or enum expected bool compareSolutions(S a, S b); ^ /root/JavaX-Caches/tmp_1259747845/main.java:8: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1259747845/main.java:10: error: class, interface, or enum expected abstract sclass AI { ^ /root/JavaX-Caches/tmp_1259747845/main.java:14: error: class, interface, or enum expected RGBImage image; ^ /root/JavaX-Caches/tmp_1259747845/main.java:15: error: class, interface, or enum expected int steps; ^ /root/JavaX-Caches/tmp_1259747845/main.java:16: error: class, interface, or enum expected bool visualize = true; ^ /root/JavaX-Caches/tmp_1259747845/main.java:18: error: class, interface, or enum expected RGBImage image() { ret image; } ^ /root/JavaX-Caches/tmp_1259747845/main.java:18: error: class, interface, or enum expected RGBImage image() { ret image; } ^ /root/JavaX-Caches/tmp_1259747845/main.java:19: error: class, interface, or enum expected BWImage bwImage() { ret new BWImage(image); } ^ /root/JavaX-Caches/tmp_1259747845/main.java:20: error: class, interface, or enum expected int w() { ret image.w(); } ^ /root/JavaX-Caches/tmp_1259747845/main.java:21: error: class, interface, or enum expected int h() { ret image.h(); } ^ /root/JavaX-Caches/tmp_1259747845/main.java:22: error: class, interface, or enum expected S submit(S text) { ret game.submit(text); } ^ /root/JavaX-Caches/tmp_1259747845/main.java:23: error: class, interface, or enum expected S submitNothing() { ret game.submit(null); } ^ /root/JavaX-Caches/tmp_1259747845/main.java:24: error: class, interface, or enum expected bool compareSolutions(S a, S b) { ret game.compareSolutions(a, b); } ^ /root/JavaX-Caches/tmp_1259747845/main.java:25: error: class, interface, or enum expected bool submitCorrectly(S text) { ret compareSolutions(text, submit(text)); } ^ /root/JavaX-Caches/tmp_1259747845/main.java:28: error: class, interface, or enum expected abstract void go(); ^ /root/JavaX-Caches/tmp_1259747845/main.java:30: error: class, interface, or enum expected void done() {} ^ /root/JavaX-Caches/tmp_1259747845/main.java:38: error: class, interface, or enum expected static bool alwaysNewImage = true; // prevents AIs being stuck on an image ^ /root/JavaX-Caches/tmp_1259747845/main.java:39: error: class, interface, or enum expected static int fps = 50; ^ /root/JavaX-Caches/tmp_1259747845/main.java:40: error: class, interface, or enum expected static bool showBlunderWindow = true; ^ /root/JavaX-Caches/tmp_1259747845/main.java:41: error: class, interface, or enum expected static int blunderFPS = 20; ^ /root/JavaX-Caches/tmp_1259747845/main.java:43: error: class, interface, or enum expected static new Game userGame; ^ /root/JavaX-Caches/tmp_1259747845/main.java:44: error: class, interface, or enum expected static int halfTime; ^ /root/JavaX-Caches/tmp_1259747845/main.java:45: error: class, interface, or enum expected static ImageSurface is, isWrong; ^ /root/JavaX-Caches/tmp_1259747845/main.java:46: error: class, interface, or enum expected static long isWrongLast; ^ /root/JavaX-Caches/tmp_1259747845/main.java:47: error: class, interface, or enum expected static RGBImage img; ^ /root/JavaX-Caches/tmp_1259747845/main.java:48: error: class, interface, or enum expected static S solution; ^ /root/JavaX-Caches/tmp_1259747845/main.java:49: error: class, interface, or enum expected volatile sbool aiMode; ^ /root/JavaX-Caches/tmp_1259747845/main.java:50: error: class, interface, or enum expected static JLabel lblScore, lblTiming, lblInstruction; ^ /root/JavaX-Caches/tmp_1259747845/main.java:51: error: class, interface, or enum expected static new HashMap<Class, AI> ais; ^ /root/JavaX-Caches/tmp_1259747845/main.java:52: error: class, interface, or enum expected static S winner; ^ /root/JavaX-Caches/tmp_1259747845/main.java:53: error: class, interface, or enum expected static JTextField tfSolution; ^ /root/JavaX-Caches/tmp_1259747845/main.java:55: error: class, interface, or enum expected svoid pGame { ^ /root/JavaX-Caches/tmp_1259747845/main.java:57: error: class, interface, or enum expected swing { ^ /root/JavaX-Caches/tmp_1259747845/main.java:58: error: illegal character: '#' thread { loadBinarySnippet(#1004373); } // preload applause animation ^ /root/JavaX-Caches/tmp_1259747845/main.java:58: error: class, interface, or enum expected thread { loadBinarySnippet(#1004373); } // preload applause animation ^ /root/JavaX-Caches/tmp_1259747845/main.java:60: error: class, interface, or enum expected nextImage(); ^ /root/JavaX-Caches/tmp_1259747845/main.java:61: error: class, interface, or enum expected addToWindowTop(is, withMargin(lblInstruction)); ^ /root/JavaX-Caches/tmp_1259747845/main.java:62: error: class, interface, or enum expected addToWindow(is, withTopMargin(tfSolution = jCenteredTextField())); ^ /root/JavaX-Caches/tmp_1259747845/main.java:63: error: class, interface, or enum expected onEnter(tfSolution, r { ^ /root/JavaX-Caches/tmp_1259747845/main.java:66: error: class, interface, or enum expected addToWindow(is, withMargin(lblScore = jcenteredBoldLabel("Your score: 0 of 0"))); ^ /root/JavaX-Caches/tmp_1259747845/main.java:67: error: class, interface, or enum expected for (final Class c : myNonAbstractClassesImplementing(AI)) { ^ /root/JavaX-Caches/tmp_1259747845/main.java:67: error: class, interface, or enum expected for (final Class c : myNonAbstractClassesImplementing(AI)) { ^ /root/JavaX-Caches/tmp_1259747845/main.java:68: error: class, interface, or enum expected final S name = shortClassName(c); ^ /root/JavaX-Caches/tmp_1259747845/main.java:69: error: class, interface, or enum expected final JButton btn = jbutton(name); ^ /root/JavaX-Caches/tmp_1259747845/main.java:70: error: class, interface, or enum expected onClick(btn, r { ^ /root/JavaX-Caches/tmp_1259747845/main.java:72: error: class, interface, or enum expected btn.setText(name + " Running..."); ^ /root/JavaX-Caches/tmp_1259747845/main.java:73: error: class, interface, or enum expected thread { ^ /root/JavaX-Caches/tmp_1259747845/main.java:77: error: class, interface, or enum expected if (game.step > halfTime) ^ /root/JavaX-Caches/tmp_1259747845/main.java:79: error: class, interface, or enum expected if (game.error != null) ^ /root/JavaX-Caches/tmp_1259747845/main.java:81: error: class, interface, or enum expected setText_noWait(btn, text); ^ /root/JavaX-Caches/tmp_1259747845/main.java:82: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1259747845/main.java:84: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1259747845/main.java:86: error: class, interface, or enum expected addToWindow(is, withMargin(btn)); ^ /root/JavaX-Caches/tmp_1259747845/main.java:87: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1259747845/main.java:89: error: class, interface, or enum expected titlePopupMenuItem(is, "Show Winner Code", f showWinnerCode); ^ /root/JavaX-Caches/tmp_1259747845/main.java:90: error: class, interface, or enum expected titlePopupMenuItem(is, "Restart AIs", r { clearMapWithCleanUp(ais); }); ^ /root/JavaX-Caches/tmp_1259747845/main.java:90: error: class, interface, or enum expected titlePopupMenuItem(is, "Restart AIs", r { clearMapWithCleanUp(ais); }); ^ /root/JavaX-Caches/tmp_1259747845/main.java:91: error: class, interface, or enum expected titlePopupMenuItem(is, jCheckBoxMenuItem("Show Blunder Window", showBlunderWindow, r { showBlunderWindow = !showBlunderWindow; })); ^ /root/JavaX-Caches/tmp_1259747845/main.java:91: error: class, interface, or enum expected titlePopupMenuItem(is, jCheckBoxMenuItem("Show Blunder Window", showBlunderWindow, r { showBlunderWindow = !showBlunderWindow; })); ^ /root/JavaX-Caches/tmp_1259747845/main.java:92: error: class, interface, or enum expected addToWindow(is, withMargin(jbutton("Restart AIs", r { clearMapWithCleanUp(ais); }))); ^ /root/JavaX-Caches/tmp_1259747845/main.java:92: error: class, interface, or enum expected addToWindow(is, withMargin(jbutton("Restart AIs", r { clearMapWithCleanUp(ais); }))); ^ /root/JavaX-Caches/tmp_1259747845/main.java:94: error: class, interface, or enum expected packFrame(is); ^ /root/JavaX-Caches/tmp_1259747845/main.java:95: error: class, interface, or enum expected setFrameWidth(is, 400); ^ /root/JavaX-Caches/tmp_1259747845/main.java:96: error: class, interface, or enum expected centerTopFrame(is); ^ /root/JavaX-Caches/tmp_1259747845/main.java:97: error: class, interface, or enum expected hideConsole(); ^ /root/JavaX-Caches/tmp_1259747845/main.java:98: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1259747845/main.java:103: error: class, interface, or enum expected RGBImage image; ^ /root/JavaX-Caches/tmp_1259747845/main.java:104: error: class, interface, or enum expected S solution; ^ /root/JavaX-Caches/tmp_1259747845/main.java:106: error: class, interface, or enum expected *() {} ^ /root/JavaX-Caches/tmp_1259747845/main.java:109: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1259747845/main.java:115: error: class, interface, or enum expected setText(lblInstruction, or2(puzzle.instruction, "?")); ^ /root/JavaX-Caches/tmp_1259747845/main.java:116: error: class, interface, or enum expected assertNotNull("Image is null", puzzle.image); ^ /root/JavaX-Caches/tmp_1259747845/main.java:117: error: class, interface, or enum expected main.img = puzzle.image; ^ /root/JavaX-Caches/tmp_1259747845/main.java:118: error: class, interface, or enum expected solution = puzzle.solution; ^ /root/JavaX-Caches/tmp_1259747845/main.java:119: error: class, interface, or enum expected if (aiMode) ret; // occasional updates only when AI is running ^ /root/JavaX-Caches/tmp_1259747845/main.java:120: error: class, interface, or enum expected showTheImage(); ^ /root/JavaX-Caches/tmp_1259747845/main.java:121: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1259747845/main.java:125: error: class, interface, or enum expected is = showZoomedImage_centered(is, img, 2); ^ /root/JavaX-Caches/tmp_1259747845/main.java:126: error: class, interface, or enum expected if (first) { ^ /root/JavaX-Caches/tmp_1259747845/main.java:130: error: class, interface, or enum expected awtEvery(is, 1000, r { ^ /root/JavaX-Caches/tmp_1259747845/main.java:133: error: class, interface, or enum expected }); ^ /root/JavaX-Caches/tmp_1259747845/main.java:136: error: class, interface, or enum expected awtEvery(is, 1000/fps, r { ^ /root/JavaX-Caches/tmp_1259747845/main.java:138: error: class, interface, or enum expected }); ^ /root/JavaX-Caches/tmp_1259747845/main.java:139: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1259747845/main.java:146: error: class, interface, or enum expected S submitted; ^ /root/JavaX-Caches/tmp_1259747845/main.java:147: error: class, interface, or enum expected Throwable error; ^ /root/JavaX-Caches/tmp_1259747845/main.java:149: error: class, interface, or enum expected public bool compareSolutions(S a, S b) { ^ /root/JavaX-Caches/tmp_1259747845/main.java:151: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1259747845/main.java:153: error: class, interface, or enum expected public S submit(S text) { ^ /root/JavaX-Caches/tmp_1259747845/main.java:155: error: class, interface, or enum expected submitted = unnull(text); ^ /root/JavaX-Caches/tmp_1259747845/main.java:156: error: class, interface, or enum expected bool correct = compareSolutions(submitted, solution); ^ /root/JavaX-Caches/tmp_1259747845/main.java:158: error: class, interface, or enum expected if (correct) { ^ /root/JavaX-Caches/tmp_1259747845/main.java:160: error: class, interface, or enum expected if (!alwaysNewImage) nextImage(); ^ /root/JavaX-Caches/tmp_1259747845/main.java:161: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1259747845/main.java:163: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1259747845/main.java:166: error: class, interface, or enum expected static Game scoreAI(final AI ai, O onScore) { ^ /root/JavaX-Caches/tmp_1259747845/main.java:168: error: class, interface, or enum expected final long start = sysNow(); ^ /root/JavaX-Caches/tmp_1259747845/main.java:169: error: class, interface, or enum expected try { ^ 100 errors only showing the first 100 errors, of 150 total; use -Xmaxerrs if you would like to see more