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

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

/root/JavaX-Caches/tmp_1516479343/main.java:3: error: class, interface, or enum expected sclass G22Walker { ^ /root/JavaX-Caches/tmp_1516479343/main.java:6: error: class, interface, or enum expected double roundingPolicy = .9; // for making the range circle (between 0 and 1) ^ /root/JavaX-Caches/tmp_1516479343/main.java:7: error: class, interface, or enum expected int visionW = 3, visionH = 3; // window rectangle size (both should be odd) ^ /root/JavaX-Caches/tmp_1516479343/main.java:10: error: class, interface, or enum expected Pt position; // current position (center), not null ^ /root/JavaX-Caches/tmp_1516479343/main.java:13: error: class, interface, or enum expected byte[] rememberedImage; // size visionW*visionH ^ /root/JavaX-Caches/tmp_1516479343/main.java:16: error: class, interface, or enum expected bool stuck; // can neither stay nor move anywhere for some reason ^ /root/JavaX-Caches/tmp_1516479343/main.java:17: error: class, interface, or enum expected int guessWork; // how many "optimal" new positions we chose from ^ /root/JavaX-Caches/tmp_1516479343/main.java:19: error: class, interface, or enum expected void move(IBWImage image) { ^ /root/JavaX-Caches/tmp_1516479343/main.java:21: error: class, interface, or enum expected guessWork = 0; ^ /root/JavaX-Caches/tmp_1516479343/main.java:24: error: class, interface, or enum expected Rect movement1 = rectFromPoints(visionW/2, visionH/2, ^ /root/JavaX-Caches/tmp_1516479343/main.java:28: error: class, interface, or enum expected Rect movement2 = rectAroundPt(position, range*2+1); ^ /root/JavaX-Caches/tmp_1516479343/main.java:30: error: class, interface, or enum expected Rect movement = intersectRects(movement1, movement2); ^ /root/JavaX-Caches/tmp_1516479343/main.java:31: error: class, interface, or enum expected if (empty(movement)) ret with set stuck; ^ /root/JavaX-Caches/tmp_1516479343/main.java:33: error: class, interface, or enum expected printVars(+movement, +movement1, +movement2); ^ /root/JavaX-Caches/tmp_1516479343/main.java:35: error: class, interface, or enum expected if (rememberedImage == null) ^ /root/JavaX-Caches/tmp_1516479343/main.java:38: error: class, interface, or enum expected Rect r = window_uncropped(); ^ /root/JavaX-Caches/tmp_1516479343/main.java:40: error: class, interface, or enum expected new MultiBest<Pt> bestPositions; ^ /root/JavaX-Caches/tmp_1516479343/main.java:42: error: class, interface, or enum expected int mx1 = movement.x1(), mx2 = movement.x2(); ^ /root/JavaX-Caches/tmp_1516479343/main.java:43: error: class, interface, or enum expected int my1 = movement.y1(), my2 = movement.y2(); ^ /root/JavaX-Caches/tmp_1516479343/main.java:44: error: class, interface, or enum expected for (int y = my1; y < my2; y++) ^ /root/JavaX-Caches/tmp_1516479343/main.java:44: error: class, interface, or enum expected for (int y = my1; y < my2; y++) ^ /root/JavaX-Caches/tmp_1516479343/main.java:44: error: class, interface, or enum expected for (int y = my1; y < my2; y++) ^ /root/JavaX-Caches/tmp_1516479343/main.java:45: error: class, interface, or enum expected for (int x = mx1; x < mx2; x++) { ^ /root/JavaX-Caches/tmp_1516479343/main.java:45: error: class, interface, or enum expected for (int x = mx1; x < mx2; x++) { ^ /root/JavaX-Caches/tmp_1516479343/main.java:47: error: class, interface, or enum expected bestPositions.put(newPos, scorePosition(newPos, image)); ^ /root/JavaX-Caches/tmp_1516479343/main.java:48: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1516479343/main.java:50: error: class, interface, or enum expected guessWork = l(best); ^ /root/JavaX-Caches/tmp_1516479343/main.java:51: error: class, interface, or enum expected position = random(best); ^ /root/JavaX-Caches/tmp_1516479343/main.java:55: error: class, interface, or enum expected rememberImage(image); ^ /root/JavaX-Caches/tmp_1516479343/main.java:56: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1516479343/main.java:61: error: class, interface, or enum expected int diff = 0; ^ /root/JavaX-Caches/tmp_1516479343/main.java:62: error: class, interface, or enum expected for y to visionH: ^ /root/JavaX-Caches/tmp_1516479343/main.java:65: error: class, interface, or enum expected ret -diff; ^ /root/JavaX-Caches/tmp_1516479343/main.java:66: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1516479343/main.java:72: error: class, interface, or enum expected int vx = visionX1(), vy = visionY1(), i = 0; ^ /root/JavaX-Caches/tmp_1516479343/main.java:73: error: class, interface, or enum expected for y to visionH: ^ /root/JavaX-Caches/tmp_1516479343/main.java:76: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1516479343/main.java:78: error: class, interface, or enum expected int visionX1() { ret position.x-visionW; } ^ /root/JavaX-Caches/tmp_1516479343/main.java:79: error: class, interface, or enum expected int visionY1() { ret position.y-visionH; } ^ /root/JavaX-Caches/tmp_1516479343/main.java:83: error: class, interface, or enum expected } ^ 40 errors