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

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

/root/JavaX-Caches/tmp_1950013896/main.java:1: error: class, interface, or enum expected sclass FindURLBox1 { ^ /root/JavaX-Caches/tmp_1950013896/main.java:3: error: class, interface, or enum expected int maxHeight = 50, minWidth = 100; ^ /root/JavaX-Caches/tmp_1950013896/main.java:4: error: class, interface, or enum expected int g = 2; // grid size ^ /root/JavaX-Caches/tmp_1950013896/main.java:5: error: class, interface, or enum expected double fullScanEvery = 10.0; // if we get stuck on a wrong box ^ /root/JavaX-Caches/tmp_1950013896/main.java:7: error: class, interface, or enum expected new L<Rect> encouragedBoxes; ^ /root/JavaX-Caches/tmp_1950013896/main.java:8: error: class, interface, or enum expected new L<Rect> discouragedBoxes; ^ /root/JavaX-Caches/tmp_1950013896/main.java:10: error: class, interface, or enum expected RGBImage img; ^ /root/JavaX-Caches/tmp_1950013896/main.java:11: error: class, interface, or enum expected L<Rect> clips; ^ /root/JavaX-Caches/tmp_1950013896/main.java:12: error: class, interface, or enum expected Rect bestClip; ^ /root/JavaX-Caches/tmp_1950013896/main.java:13: error: class, interface, or enum expected RGBImage bestImage; ^ /root/JavaX-Caches/tmp_1950013896/main.java:14: error: class, interface, or enum expected bool verbose; ^ /root/JavaX-Caches/tmp_1950013896/main.java:15: error: class, interface, or enum expected long recogTime; // includes shooting the screen ^ /root/JavaX-Caches/tmp_1950013896/main.java:16: error: class, interface, or enum expected long lastFullScan; ^ /root/JavaX-Caches/tmp_1950013896/main.java:19: error: class, interface, or enum expected bool go() { ^ /root/JavaX-Caches/tmp_1950013896/main.java:21: error: class, interface, or enum expected try { ^ /root/JavaX-Caches/tmp_1950013896/main.java:25: error: class, interface, or enum expected lastFullScan = now(); ^ /root/JavaX-Caches/tmp_1950013896/main.java:26: error: class, interface, or enum expected img = shootScreen(); ^ /root/JavaX-Caches/tmp_1950013896/main.java:27: error: class, interface, or enum expected ret calc(); ^ /root/JavaX-Caches/tmp_1950013896/main.java:28: error: class, interface, or enum expected } finally { ^ /root/JavaX-Caches/tmp_1950013896/main.java:30: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1950013896/main.java:35: error: class, interface, or enum expected if (verbose) ^ /root/JavaX-Caches/tmp_1950013896/main.java:38: error: class, interface, or enum expected bestClip = bestAccordingTo(clips, func(Rect r) { scoreClip(r) }); ^ /root/JavaX-Caches/tmp_1950013896/main.java:39: error: class, interface, or enum expected bestImage = img.clip(bestClip); ^ /root/JavaX-Caches/tmp_1950013896/main.java:40: error: class, interface, or enum expected ret bestClip != null; ^ /root/JavaX-Caches/tmp_1950013896/main.java:41: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1950013896/main.java:45: error: class, interface, or enum expected if (i >= 0) ret 1000-i; ^ /root/JavaX-Caches/tmp_1950013896/main.java:46: error: class, interface, or enum expected i = discouragedBoxes.indexOf(r); ^ /root/JavaX-Caches/tmp_1950013896/main.java:47: error: class, interface, or enum expected if (i >= 0) ret -1000+i; ^ /root/JavaX-Caches/tmp_1950013896/main.java:49: error: class, interface, or enum expected double width = min(1, r.w/(double) img.w()*2); ^ /root/JavaX-Caches/tmp_1950013896/main.java:50: error: class, interface, or enum expected double top = r.y/(double) img.h(); ^ /root/JavaX-Caches/tmp_1950013896/main.java:51: error: class, interface, or enum expected double height = r.h/(double) img.h(); ^ /root/JavaX-Caches/tmp_1950013896/main.java:52: error: class, interface, or enum expected ret width-(top+height)*2; // thin, wide, high up ^ /root/JavaX-Caches/tmp_1950013896/main.java:53: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1950013896/main.java:57: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1950013896/main.java:61: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1950013896/main.java:65: error: class, interface, or enum expected Rect r = intersectWithScreen(growRect(bestClip, g)); ^ /root/JavaX-Caches/tmp_1950013896/main.java:66: error: class, interface, or enum expected RGBImage img = shootScreen(r); ^ /root/JavaX-Caches/tmp_1950013896/main.java:67: error: class, interface, or enum expected L<Rect> clips = areasColored(img, color, g); ^ /root/JavaX-Caches/tmp_1950013896/main.java:68: error: class, interface, or enum expected Rect r2 = translateRect(bestClip, -r.x, -r.y); ^ /root/JavaX-Caches/tmp_1950013896/main.java:70: error: class, interface, or enum expected if (clips.contains(r2)) { ^ /root/JavaX-Caches/tmp_1950013896/main.java:72: error: class, interface, or enum expected true; ^ /root/JavaX-Caches/tmp_1950013896/main.java:73: error: class, interface, or enum expected } else { ^ /root/JavaX-Caches/tmp_1950013896/main.java:75: error: class, interface, or enum expected bestImage = null; ^ /root/JavaX-Caches/tmp_1950013896/main.java:76: error: class, interface, or enum expected false; ^ /root/JavaX-Caches/tmp_1950013896/main.java:77: error: class, interface, or enum expected } ^ 45 errors