Wrote /root/JavaX-Caches/tmp_1147263138/main.java - 14123 bytes (written=14123, should be 14123) javac=0, ecj=1, useJarBot=0 Checking ECJ at port 4898 at 127.0.0.1 /root/jdk-17/bin/javac -source 1.8 -target 1.8 -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_805354248 /root/JavaX-Caches/tmp_1147263138/main.java 2>&1
[Compilation Error]

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

/root/JavaX-Caches/tmp_1147263138/main.java:1: error: class, interface, or enum expected !636 ^ /root/JavaX-Caches/tmp_1147263138/main.java:8: error: class, interface, or enum expected !standard functions ^ /root/JavaX-Caches/tmp_1147263138/main.java:15: error: illegal start of type class P { double x, y; *(double *x, double *y) {} } ^ /root/JavaX-Caches/tmp_1147263138/main.java:15: error: <identifier> expected class P { double x, y; *(double *x, double *y) {} } ^ /root/JavaX-Caches/tmp_1147263138/main.java:15: error: <identifier> expected class P { double x, y; *(double *x, double *y) {} } ^ /root/JavaX-Caches/tmp_1147263138/main.java:15: error: <identifier> expected class P { double x, y; *(double *x, double *y) {} } ^ /root/JavaX-Caches/tmp_1147263138/main.java:15: error: <identifier> expected class P { double x, y; *(double *x, double *y) {} } ^ /root/JavaX-Caches/tmp_1147263138/main.java:15: error: <identifier> expected class P { double x, y; *(double *x, double *y) {} } ^ /root/JavaX-Caches/tmp_1147263138/main.java:25: error: class, interface, or enum expected main { ^ /root/JavaX-Caches/tmp_1147263138/main.java:27: error: class, interface, or enum expected static int imageWidth = 200; ^ /root/JavaX-Caches/tmp_1147263138/main.java:28: error: class, interface, or enum expected static double pixelDiffThreshold = 0.1; ^ /root/JavaX-Caches/tmp_1147263138/main.java:30: error: class, interface, or enum expected !include #1000522 // helper functions for image reproduction ^ /root/JavaX-Caches/tmp_1147263138/main.java:30: error: illegal character: '#' !include #1000522 // helper functions for image reproduction ^ /root/JavaX-Caches/tmp_1147263138/main.java:34: error: class, interface, or enum expected static double rotate_x(P p, double angle) { ^ /root/JavaX-Caches/tmp_1147263138/main.java:36: error: class, interface, or enum expected return p.x*cos(angle)-p.y*sin(angle); ^ /root/JavaX-Caches/tmp_1147263138/main.java:37: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1147263138/main.java:53: error: '(' or '[' expected new Magnet p; ^ /root/JavaX-Caches/tmp_1147263138/main.java:156: error: '(' or '[' expected new Magnet p; ^ /root/JavaX-Caches/tmp_1147263138/main.java:354: error: class, interface, or enum expected static int findSplitPointY(RGBImage img) { ^ /root/JavaX-Caches/tmp_1147263138/main.java:356: error: class, interface, or enum expected for (int y = 1; y < img.getHeight(); y++) ^ /root/JavaX-Caches/tmp_1147263138/main.java:356: error: class, interface, or enum expected for (int y = 1; y < img.getHeight(); y++) ^ /root/JavaX-Caches/tmp_1147263138/main.java:356: error: class, interface, or enum expected for (int y = 1; y < img.getHeight(); y++) ^ /root/JavaX-Caches/tmp_1147263138/main.java:359: error: class, interface, or enum expected return -1; ^ /root/JavaX-Caches/tmp_1147263138/main.java:360: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1147263138/main.java:364: error: class, interface, or enum expected for (int y = 0; y < img.getHeight(); y++) ^ /root/JavaX-Caches/tmp_1147263138/main.java:364: error: class, interface, or enum expected for (int y = 0; y < img.getHeight(); y++) ^ /root/JavaX-Caches/tmp_1147263138/main.java:364: error: class, interface, or enum expected for (int y = 0; y < img.getHeight(); y++) ^ /root/JavaX-Caches/tmp_1147263138/main.java:365: error: class, interface, or enum expected for (int x = 0; x < img.getWidth(); x++) ^ /root/JavaX-Caches/tmp_1147263138/main.java:365: error: class, interface, or enum expected for (int x = 0; x < img.getWidth(); x++) ^ /root/JavaX-Caches/tmp_1147263138/main.java:368: error: class, interface, or enum expected return true; ^ /root/JavaX-Caches/tmp_1147263138/main.java:369: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1147263138/main.java:373: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1147263138/main.java:410: error: class, interface, or enum expected static ReproducerMaker baseMaker = new ReproducerMaker() { ^ /root/JavaX-Caches/tmp_1147263138/main.java:411: error: class, interface, or enum expected public Reproducer make() { ^ /root/JavaX-Caches/tmp_1147263138/main.java:413: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1147263138/main.java:417: error: class, interface, or enum expected static Reproducer reproducer; ^ /root/JavaX-Caches/tmp_1147263138/main.java:419: error: class, interface, or enum expected static String imageID = "#1000326"; // Bryan Cranston! ^ /root/JavaX-Caches/tmp_1147263138/main.java:420: error: class, interface, or enum expected static RGBImage original; ^ /root/JavaX-Caches/tmp_1147263138/main.java:421: error: class, interface, or enum expected static FrameWithImages fwi; ^ /root/JavaX-Caches/tmp_1147263138/main.java:423: error: class, interface, or enum expected psvm { ^ /root/JavaX-Caches/tmp_1147263138/main.java:426: error: class, interface, or enum expected fwi = new FrameWithImages(1); ^ /root/JavaX-Caches/tmp_1147263138/main.java:427: error: class, interface, or enum expected fwi.setZoom(2); ^ /root/JavaX-Caches/tmp_1147263138/main.java:428: error: class, interface, or enum expected fwi.hop(); ^ /root/JavaX-Caches/tmp_1147263138/main.java:430: error: class, interface, or enum expected thread { ^ /root/JavaX-Caches/tmp_1147263138/main.java:432: error: class, interface, or enum expected original = resizeToWidth(original, imageWidth); ^ /root/JavaX-Caches/tmp_1147263138/main.java:433: error: class, interface, or enum expected fwi.setInnerSize(original); ^ /root/JavaX-Caches/tmp_1147263138/main.java:435: error: class, interface, or enum expected int gx = original.getWidth()/8, gy = original.getHeight()/8; ^ /root/JavaX-Caches/tmp_1147263138/main.java:436: error: class, interface, or enum expected reproducer = new Grid(baseMaker, gx, gy); ^ /root/JavaX-Caches/tmp_1147263138/main.java:438: error: class, interface, or enum expected reproduceOpenEnd(original); ^ /root/JavaX-Caches/tmp_1147263138/main.java:439: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1147263138/main.java:459: error: class, interface, or enum expected long lastPrint = 0, lastN = 0; ^ /root/JavaX-Caches/tmp_1147263138/main.java:460: error: class, interface, or enum expected for (long ntry = 1; ; ntry++) { ^ /root/JavaX-Caches/tmp_1147263138/main.java:460: error: class, interface, or enum expected for (long ntry = 1; ; ntry++) { ^ /root/JavaX-Caches/tmp_1147263138/main.java:462: error: class, interface, or enum expected if (now >= lastPrint+1000) { ^ /root/JavaX-Caches/tmp_1147263138/main.java:464: error: class, interface, or enum expected lastPrint = now; ^ /root/JavaX-Caches/tmp_1147263138/main.java:465: error: class, interface, or enum expected lastN = ntry; ^ /root/JavaX-Caches/tmp_1147263138/main.java:466: error: class, interface, or enum expected String s = "Try " + ntry + "(" + tps + "/s)"; ^ /root/JavaX-Caches/tmp_1147263138/main.java:467: error: class, interface, or enum expected if (best == null) ^ /root/JavaX-Caches/tmp_1147263138/main.java:469: error: class, interface, or enum expected else { ^ /root/JavaX-Caches/tmp_1147263138/main.java:471: error: class, interface, or enum expected System.out.println(s + ", score: " + formatDouble(best.getScore()*100, 3) + "%, structure size: " + structureSize(best, Params.class)); ^ /root/JavaX-Caches/tmp_1147263138/main.java:471: error: <identifier> expected System.out.println(s + ", score: " + formatDouble(best.getScore()*100, 3) + "%, structure size: " + structureSize(best, Params.class)); ^ /root/JavaX-Caches/tmp_1147263138/main.java:472: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1147263138/main.java:475: error: class, interface, or enum expected if (best == null || p != null && p.getScore() < best.getScore()) { ^ /root/JavaX-Caches/tmp_1147263138/main.java:478: error: class, interface, or enum expected fwi.setImage(0, p.renderWithHints()); ^ /root/JavaX-Caches/tmp_1147263138/main.java:479: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1147263138/main.java:483: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1147263138/main.java:488: error: class, interface, or enum expected for (int y = 0; y < h; y++) ^ /root/JavaX-Caches/tmp_1147263138/main.java:488: error: class, interface, or enum expected for (int y = 0; y < h; y++) ^ /root/JavaX-Caches/tmp_1147263138/main.java:488: error: class, interface, or enum expected for (int y = 0; y < h; y++) ^ /root/JavaX-Caches/tmp_1147263138/main.java:489: error: class, interface, or enum expected for (int x = 0; x < w; x++) { ^ /root/JavaX-Caches/tmp_1147263138/main.java:489: error: class, interface, or enum expected for (int x = 0; x < w; x++) { ^ /root/JavaX-Caches/tmp_1147263138/main.java:491: error: class, interface, or enum expected double ny = y/(double)(h-1); ^ /root/JavaX-Caches/tmp_1147263138/main.java:492: error: class, interface, or enum expected img.setPixel(x, y, m.def(nx, ny)); ^ /root/JavaX-Caches/tmp_1147263138/main.java:493: error: class, interface, or enum expected } ^ 74 errors