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

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

/root/JavaX-Caches/tmp_1796421935/main.java:5: error: class, interface, or enum expected sinterface GameForAI { ^ /root/JavaX-Caches/tmp_1796421935/main.java:7: error: class, interface, or enum expected double submit(Submission data); // returns score (0-100) ^ /root/JavaX-Caches/tmp_1796421935/main.java:8: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1796421935/main.java:10: error: class, interface, or enum expected abstract sclass AI { ^ /root/JavaX-Caches/tmp_1796421935/main.java:14: error: class, interface, or enum expected RGBImage image; ^ /root/JavaX-Caches/tmp_1796421935/main.java:15: error: class, interface, or enum expected bool visualize = true; ^ /root/JavaX-Caches/tmp_1796421935/main.java:17: error: class, interface, or enum expected RGBImage image() { ret image; } ^ /root/JavaX-Caches/tmp_1796421935/main.java:17: error: class, interface, or enum expected RGBImage image() { ret image; } ^ /root/JavaX-Caches/tmp_1796421935/main.java:18: error: class, interface, or enum expected int w() { ret image.w(); } ^ /root/JavaX-Caches/tmp_1796421935/main.java:19: error: class, interface, or enum expected int h() { ret image.h(); } ^ /root/JavaX-Caches/tmp_1796421935/main.java:20: error: class, interface, or enum expected int round() { ret game.round(); } ^ /root/JavaX-Caches/tmp_1796421935/main.java:21: error: class, interface, or enum expected double submit(Submission data) { ret game.submit(data); } ^ /root/JavaX-Caches/tmp_1796421935/main.java:22: error: class, interface, or enum expected <A extends AI> A initSubAI(A ai) { setOptAll(ai, +game, +image); ret ai; } ^ /root/JavaX-Caches/tmp_1796421935/main.java:22: error: class, interface, or enum expected <A extends AI> A initSubAI(A ai) { setOptAll(ai, +game, +image); ret ai; } ^ /root/JavaX-Caches/tmp_1796421935/main.java:25: error: class, interface, or enum expected abstract void go(); ^ /root/JavaX-Caches/tmp_1796421935/main.java:27: error: class, interface, or enum expected void done() {} ^ /root/JavaX-Caches/tmp_1796421935/main.java:35: error: class, interface, or enum expected static double targetScore = 99.0; // stop when this score is reached ^ /root/JavaX-Caches/tmp_1796421935/main.java:36: error: class, interface, or enum expected static int fps = 50; ^ /root/JavaX-Caches/tmp_1796421935/main.java:37: error: class, interface, or enum expected sS gameTitle; ^ /root/JavaX-Caches/tmp_1796421935/main.java:38: error: class, interface, or enum expected sS newImageText = "New Image"; ^ /root/JavaX-Caches/tmp_1796421935/main.java:39: error: class, interface, or enum expected sS instruction = "Reproduce this image:"; ^ /root/JavaX-Caches/tmp_1796421935/main.java:40: error: class, interface, or enum expected sS aiTitle = "AI"; ^ /root/JavaX-Caches/tmp_1796421935/main.java:41: error: class, interface, or enum expected sbool showConsoleOnError; ^ /root/JavaX-Caches/tmp_1796421935/main.java:42: error: class, interface, or enum expected static double reproZoom = 2; ^ /root/JavaX-Caches/tmp_1796421935/main.java:44: error: class, interface, or enum expected static int w, h; ^ /root/JavaX-Caches/tmp_1796421935/main.java:45: error: class, interface, or enum expected static new UserGame userGame; ^ /root/JavaX-Caches/tmp_1796421935/main.java:46: error: class, interface, or enum expected static int halfTime; ^ /root/JavaX-Caches/tmp_1796421935/main.java:47: error: class, interface, or enum expected static ImageSurface is, isUser, isRepro; ^ /root/JavaX-Caches/tmp_1796421935/main.java:48: error: class, interface, or enum expected static RGBImage img; ^ /root/JavaX-Caches/tmp_1796421935/main.java:49: error: class, interface, or enum expected static new HashMap<Rect, Int> words; ^ /root/JavaX-Caches/tmp_1796421935/main.java:50: error: class, interface, or enum expected static L<Rect> solution; ^ /root/JavaX-Caches/tmp_1796421935/main.java:51: error: class, interface, or enum expected volatile sbool aiMode; ^ /root/JavaX-Caches/tmp_1796421935/main.java:52: error: class, interface, or enum expected static JLabel lblScore, lblTiming, lblInstruction, lblImageName; ^ /root/JavaX-Caches/tmp_1796421935/main.java:53: error: class, interface, or enum expected static new HashMap<Class, AI> ais; ^ /root/JavaX-Caches/tmp_1796421935/main.java:54: error: class, interface, or enum expected static S winner; ^ /root/JavaX-Caches/tmp_1796421935/main.java:55: error: class, interface, or enum expected static JCheckBox keepRunning; ^ /root/JavaX-Caches/tmp_1796421935/main.java:56: error: class, interface, or enum expected static L<JButton> aiButtons; ^ /root/JavaX-Caches/tmp_1796421935/main.java:57: error: class, interface, or enum expected static Game game; ^ /root/JavaX-Caches/tmp_1796421935/main.java:59: error: class, interface, or enum expected svoid pGame { ^ /root/JavaX-Caches/tmp_1796421935/main.java:61: error: class, interface, or enum expected swing { ^ /root/JavaX-Caches/tmp_1796421935/main.java:62: error: illegal character: '#' thread { loadBinarySnippet(#1004373); } // preload applause animation ^ /root/JavaX-Caches/tmp_1796421935/main.java:62: error: class, interface, or enum expected thread { loadBinarySnippet(#1004373); } // preload applause animation ^ /root/JavaX-Caches/tmp_1796421935/main.java:64: error: class, interface, or enum expected lblScore = jcenteredBoldLabel(); ^ /root/JavaX-Caches/tmp_1796421935/main.java:65: error: class, interface, or enum expected nextImage(); ^ /root/JavaX-Caches/tmp_1796421935/main.java:66: error: class, interface, or enum expected addToWindowTop(is, withMargin(lblInstruction)); ^ /root/JavaX-Caches/tmp_1796421935/main.java:67: error: class, interface, or enum expected addToWindow(is, withMargin(lblScore)); ^ /root/JavaX-Caches/tmp_1796421935/main.java:68: error: class, interface, or enum expected addToWindow(is, withMargin(lblImageName = jcenteredlabel())); ^ /root/JavaX-Caches/tmp_1796421935/main.java:71: error: class, interface, or enum expected aiButtons = ll(); ^ /root/JavaX-Caches/tmp_1796421935/main.java:72: error: class, interface, or enum expected for (final Class c : myNonAbstractClassesImplementing(AI)) { ^ /root/JavaX-Caches/tmp_1796421935/main.java:72: error: class, interface, or enum expected for (final Class c : myNonAbstractClassesImplementing(AI)) { ^ /root/JavaX-Caches/tmp_1796421935/main.java:73: error: class, interface, or enum expected final S name = shortClassName(c); ^ /root/JavaX-Caches/tmp_1796421935/main.java:74: error: class, interface, or enum expected final JButton btn = jbutton(name); ^ /root/JavaX-Caches/tmp_1796421935/main.java:75: error: class, interface, or enum expected final Runnable go = r { ^ /root/JavaX-Caches/tmp_1796421935/main.java:77: error: class, interface, or enum expected setText(btn, name + " Running..."); ^ /root/JavaX-Caches/tmp_1796421935/main.java:78: error: class, interface, or enum expected final Runnable again = this; ^ /root/JavaX-Caches/tmp_1796421935/main.java:79: error: class, interface, or enum expected thread { ^ /root/JavaX-Caches/tmp_1796421935/main.java:82: error: class, interface, or enum expected S text = name + " scored " + formatScore(game.score) + " in " + n(game.step, "round"); ^ /root/JavaX-Caches/tmp_1796421935/main.java:83: error: class, interface, or enum expected if (game.error != null) ^ /root/JavaX-Caches/tmp_1796421935/main.java:85: error: class, interface, or enum expected setText_noWait_sync(btn, text); ^ /root/JavaX-Caches/tmp_1796421935/main.java:86: error: class, interface, or enum expected }); ^ /root/JavaX-Caches/tmp_1796421935/main.java:87: error: class, interface, or enum expected if (isChecked(keepRunning)) again.run(); ^ /root/JavaX-Caches/tmp_1796421935/main.java:88: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1796421935/main.java:90: error: class, interface, or enum expected onClick(btn, r { if (aiMode) setChecked(keepRunning, false); else go.run(); }); ^ /root/JavaX-Caches/tmp_1796421935/main.java:90: error: class, interface, or enum expected onClick(btn, r { if (aiMode) setChecked(keepRunning, false); else go.run(); }); ^ /root/JavaX-Caches/tmp_1796421935/main.java:90: error: class, interface, or enum expected onClick(btn, r { if (aiMode) setChecked(keepRunning, false); else go.run(); }); ^ /root/JavaX-Caches/tmp_1796421935/main.java:91: error: class, interface, or enum expected aiButtons.add(btn); ^ /root/JavaX-Caches/tmp_1796421935/main.java:92: error: class, interface, or enum expected addToWindow(is, withMargin(btn)); ^ /root/JavaX-Caches/tmp_1796421935/main.java:93: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1796421935/main.java:96: error: class, interface, or enum expected titlePopupMenuItem(is, "Show Winner Code", f showBestCode); ^ /root/JavaX-Caches/tmp_1796421935/main.java:97: error: class, interface, or enum expected titlePopupMenuItem(is, "Restart AIs", r { restartAIs() }); ^ /root/JavaX-Caches/tmp_1796421935/main.java:98: error: class, interface, or enum expected titlePopupMenuItem(is, "Diff", r { ^ /root/JavaX-Caches/tmp_1796421935/main.java:101: error: class, interface, or enum expected addToWindow(is, withMargin(jRightAlignedLine(keepRunning = jcheckbox("Keep AI Running", true)))); ^ /root/JavaX-Caches/tmp_1796421935/main.java:102: error: class, interface, or enum expected addToWindow(is, withMargin(jbutton("Restart AIs", r { clearMapWithCleanUp(ais); }))); ^ /root/JavaX-Caches/tmp_1796421935/main.java:102: error: class, interface, or enum expected addToWindow(is, withMargin(jbutton("Restart AIs", r { clearMapWithCleanUp(ais); }))); ^ /root/JavaX-Caches/tmp_1796421935/main.java:103: error: class, interface, or enum expected addToWindow(is, withMargin(jbutton(newImageText, r { ^ /root/JavaX-Caches/tmp_1796421935/main.java:105: error: class, interface, or enum expected setImage(main.img); ^ /root/JavaX-Caches/tmp_1796421935/main.java:106: error: class, interface, or enum expected }))); ^ /root/JavaX-Caches/tmp_1796421935/main.java:107: error: class, interface, or enum expected addToWindow(is, withMargin(jbutton("Load image...", r { ^ /root/JavaX-Caches/tmp_1796421935/main.java:110: error: class, interface, or enum expected })); ^ /root/JavaX-Caches/tmp_1796421935/main.java:111: error: class, interface, or enum expected }))); ^ /root/JavaX-Caches/tmp_1796421935/main.java:112: error: class, interface, or enum expected addToWindow(is, withMargin(jbutton("Scale down", f scaleDown))); ^ /root/JavaX-Caches/tmp_1796421935/main.java:113: error: class, interface, or enum expected addToWindow(is, withMargin(jbutton("Random image", r-thread { ^ /root/JavaX-Caches/tmp_1796421935/main.java:115: error: class, interface, or enum expected }))); ^ /root/JavaX-Caches/tmp_1796421935/main.java:117: error: class, interface, or enum expected packFrame(is); ^ /root/JavaX-Caches/tmp_1796421935/main.java:118: error: class, interface, or enum expected setFrameWidth(is, 500); ^ /root/JavaX-Caches/tmp_1796421935/main.java:119: error: class, interface, or enum expected centerTopFrame(is); ^ /root/JavaX-Caches/tmp_1796421935/main.java:120: error: class, interface, or enum expected hideConsole(); ^ /root/JavaX-Caches/tmp_1796421935/main.java:121: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1796421935/main.java:126: error: class, interface, or enum expected if (aiMode) ret; // occasional updates only when AI is running ^ /root/JavaX-Caches/tmp_1796421935/main.java:127: error: class, interface, or enum expected showTheImage(); ^ /root/JavaX-Caches/tmp_1796421935/main.java:128: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1796421935/main.java:132: error: class, interface, or enum expected is = showZoomedImage_centered(is, img, 1); ^ /root/JavaX-Caches/tmp_1796421935/main.java:133: error: class, interface, or enum expected w = img.w(); ^ /root/JavaX-Caches/tmp_1796421935/main.java:134: error: class, interface, or enum expected h = img.h(); ^ /root/JavaX-Caches/tmp_1796421935/main.java:136: error: class, interface, or enum expected if (first) { ^ /root/JavaX-Caches/tmp_1796421935/main.java:138: error: class, interface, or enum expected setFrameTitle(is, gameTitle); ^ /root/JavaX-Caches/tmp_1796421935/main.java:140: error: class, interface, or enum expected disableImageSurfaceSelector(is); ^ /root/JavaX-Caches/tmp_1796421935/main.java:142: error: class, interface, or enum expected isUser = new ImageSurface(newBufferedImage(w, h, Color.white)); ^ /root/JavaX-Caches/tmp_1796421935/main.java:143: error: class, interface, or enum expected JComponent form = cast callOptMC('makeTheForm, userGame); // make form for user participation ^ /root/JavaX-Caches/tmp_1796421935/main.java:143: error: unclosed character literal JComponent form = cast callOptMC('makeTheForm, userGame); // make form for user participation ^ 100 errors only showing the first 100 errors, of 177 total; use -Xmaxerrs if you would like to see more