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

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

/root/JavaX-Caches/tmp_581262692/main.java:1: error: class, interface, or enum expected sclass SimpleRecognizer { ^ /root/JavaX-Caches/tmp_581262692/main.java:4: error: class, interface, or enum expected S initial = [[ ^ /root/JavaX-Caches/tmp_581262692/main.java:10: error: class, interface, or enum expected Lock lock = lock(); ^ /root/JavaX-Caches/tmp_581262692/main.java:18: error: class, interface, or enum expected new Map<S, GlyphInfo> glyphInfos; ^ /root/JavaX-Caches/tmp_581262692/main.java:21: error: class, interface, or enum expected Map<BWImage, S> fullSearchMap; ^ /root/JavaX-Caches/tmp_581262692/main.java:23: error: class, interface, or enum expected S unknownCharacter = diamond(); // "\u2666" - diamond suit symbol; used for unknown characters ^ /root/JavaX-Caches/tmp_581262692/main.java:25: error: class, interface, or enum expected *() { ^ /root/JavaX-Caches/tmp_581262692/main.java:27: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_581262692/main.java:31: error: class, interface, or enum expected recognizeGrouped_cache.clear(); ^ /root/JavaX-Caches/tmp_581262692/main.java:32: error: class, interface, or enum expected new Matches m; ^ /root/JavaX-Caches/tmp_581262692/main.java:33: error: class, interface, or enum expected for (S s : toLinesFullTrim(info)) { ^ /root/JavaX-Caches/tmp_581262692/main.java:36: error: class, interface, or enum expected L<S> characters = eachCharAsString(dropSpaces($2)); ^ /root/JavaX-Caches/tmp_581262692/main.java:37: error: class, interface, or enum expected saveMeanings(md5s, characters); ^ /root/JavaX-Caches/tmp_581262692/main.java:38: error: class, interface, or enum expected } else if (find3("the images * are the grouped characters *", s, m)) { ^ /root/JavaX-Caches/tmp_581262692/main.java:40: error: class, interface, or enum expected L<S> characters = ocr_parseGlyphs(dropSpaces($2)); ^ /root/JavaX-Caches/tmp_581262692/main.java:41: error: class, interface, or enum expected saveMeanings(md5s, characters); ^ /root/JavaX-Caches/tmp_581262692/main.java:42: error: class, interface, or enum expected } else if (nempty(javaTokC(s))) { ^ /root/JavaX-Caches/tmp_581262692/main.java:44: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_581262692/main.java:52: error: class, interface, or enum expected if (info.multi) ret; ^ /root/JavaX-Caches/tmp_581262692/main.java:53: error: class, interface, or enum expected if (hasDifferent(info.meaning, meaning)) { ^ /root/JavaX-Caches/tmp_581262692/main.java:56: error: class, interface, or enum expected info.multi = true; ^ /root/JavaX-Caches/tmp_581262692/main.java:58: error: class, interface, or enum expected } else ^ /root/JavaX-Caches/tmp_581262692/main.java:60: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_581262692/main.java:65: error: class, interface, or enum expected if (info == null) ^ /root/JavaX-Caches/tmp_581262692/main.java:67: error: class, interface, or enum expected ret info; ^ /root/JavaX-Caches/tmp_581262692/main.java:68: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_581262692/main.java:71: error: class, interface, or enum expected if (l(md5s) != l(characters)) { print("huh?"); ret; } ^ /root/JavaX-Caches/tmp_581262692/main.java:71: error: class, interface, or enum expected if (l(md5s) != l(characters)) { print("huh?"); ret; } ^ /root/JavaX-Caches/tmp_581262692/main.java:74: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_581262692/main.java:79: error: class, interface, or enum expected Scored<GlyphInfo> scored = recognizeGlyph(img, false); ^ /root/JavaX-Caches/tmp_581262692/main.java:80: error: class, interface, or enum expected GlyphInfo info = getVar(scored); ^ /root/JavaX-Caches/tmp_581262692/main.java:81: error: class, interface, or enum expected if (info != null && info.meaning != null) ret scored(info.meaning, scored); ^ /root/JavaX-Caches/tmp_581262692/main.java:82: error: class, interface, or enum expected null; ^ /root/JavaX-Caches/tmp_581262692/main.java:83: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_581262692/main.java:87: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_581262692/main.java:91: error: class, interface, or enum expected ret scored(ocr_joinGroups(s!), s); ^ /root/JavaX-Caches/tmp_581262692/main.java:92: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_581262692/main.java:96: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_581262692/main.java:100: error: class, interface, or enum expected int cantCache, cacheHits, cacheMisses; ^ /root/JavaX-Caches/tmp_581262692/main.java:102: error: class, interface, or enum expected Scored<L<S>> recognizeGrouped(BWImage img, L<Rect> clips_out) { ^ /root/JavaX-Caches/tmp_581262692/main.java:104: error: class, interface, or enum expected if (clips_out != null || !useCache1) ++cantCache; ^ /root/JavaX-Caches/tmp_581262692/main.java:105: error: class, interface, or enum expected else { ^ /root/JavaX-Caches/tmp_581262692/main.java:107: error: class, interface, or enum expected Scored<L<S>> result = recognizeGrouped_cache.get(md5); ^ /root/JavaX-Caches/tmp_581262692/main.java:108: error: class, interface, or enum expected if (result != null) { ^ /root/JavaX-Caches/tmp_581262692/main.java:110: error: class, interface, or enum expected ret result; ^ /root/JavaX-Caches/tmp_581262692/main.java:111: error: class, interface, or enum expected } else ++cacheMisses; ^ /root/JavaX-Caches/tmp_581262692/main.java:112: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_581262692/main.java:115: error: class, interface, or enum expected if (md5 != null) recognizeGrouped_cache.put(md5, result); ^ /root/JavaX-Caches/tmp_581262692/main.java:116: error: class, interface, or enum expected ret result; ^ /root/JavaX-Caches/tmp_581262692/main.java:117: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_581262692/main.java:122: error: class, interface, or enum expected Scored<S> s = recognizeCheat(img); ^ /root/JavaX-Caches/tmp_581262692/main.java:123: error: class, interface, or enum expected if (s != null) { ^ /root/JavaX-Caches/tmp_581262692/main.java:125: error: class, interface, or enum expected ret scored(ll(ocr_escapeMeaning(s!)), s); // hmm... how to group? does it matter? ^ /root/JavaX-Caches/tmp_581262692/main.java:126: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_581262692/main.java:129: error: class, interface, or enum expected L<Rect> rects = horizontalAutoSplit2ThenAutoCrop(img); ^ /root/JavaX-Caches/tmp_581262692/main.java:130: error: class, interface, or enum expected if (empty(rects)) ret scored(ll(unknownCharacter), 0.5); ^ /root/JavaX-Caches/tmp_581262692/main.java:131: error: class, interface, or enum expected new L<Scored> scores; ^ /root/JavaX-Caches/tmp_581262692/main.java:132: error: class, interface, or enum expected iLoop: for (int i = 0; i < l(rects); i++) { ^ /root/JavaX-Caches/tmp_581262692/main.java:132: error: class, interface, or enum expected iLoop: for (int i = 0; i < l(rects); i++) { ^ /root/JavaX-Caches/tmp_581262692/main.java:132: error: class, interface, or enum expected iLoop: for (int i = 0; i < l(rects); i++) { ^ /root/JavaX-Caches/tmp_581262692/main.java:134: error: class, interface, or enum expected for (int j = i; j < l(rects); j++) { ^ /root/JavaX-Caches/tmp_581262692/main.java:134: error: class, interface, or enum expected for (int j = i; j < l(rects); j++) { ^ /root/JavaX-Caches/tmp_581262692/main.java:134: error: class, interface, or enum expected for (int j = i; j < l(rects); j++) { ^ /root/JavaX-Caches/tmp_581262692/main.java:136: error: class, interface, or enum expected BWImage cImg = img.clip(r); ^ /root/JavaX-Caches/tmp_581262692/main.java:137: error: class, interface, or enum expected Scored<GlyphInfo> scored = recognizeGlyph(cImg, false); ^ /root/JavaX-Caches/tmp_581262692/main.java:138: error: class, interface, or enum expected GlyphInfo info = getVar(scored); ^ /root/JavaX-Caches/tmp_581262692/main.java:139: error: class, interface, or enum expected if (info != null && info.meaning != null) { ^ /root/JavaX-Caches/tmp_581262692/main.java:141: error: class, interface, or enum expected buf.addAll(rep("_", j-i)); ^ /root/JavaX-Caches/tmp_581262692/main.java:142: error: class, interface, or enum expected if (clips_out != null) clips_out.addAll(rep(r, j-i+1)); ^ /root/JavaX-Caches/tmp_581262692/main.java:143: error: class, interface, or enum expected scores.add(scored); ^ /root/JavaX-Caches/tmp_581262692/main.java:144: error: class, interface, or enum expected i = j; ^ /root/JavaX-Caches/tmp_581262692/main.java:145: error: class, interface, or enum expected continue iLoop; ^ /root/JavaX-Caches/tmp_581262692/main.java:146: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_581262692/main.java:149: error: class, interface, or enum expected Scored<GlyphInfo> scored = recognizeGlyph(img.clip(r), true); ^ /root/JavaX-Caches/tmp_581262692/main.java:150: error: class, interface, or enum expected GlyphInfo info = getVar(scored); ^ /root/JavaX-Caches/tmp_581262692/main.java:151: error: class, interface, or enum expected if (info != null && info.meaning != null) ^ /root/JavaX-Caches/tmp_581262692/main.java:153: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_581262692/main.java:155: error: class, interface, or enum expected if (clips_out != null) clips_out.add(r); ^ /root/JavaX-Caches/tmp_581262692/main.java:156: error: class, interface, or enum expected scores.add(scored); ^ /root/JavaX-Caches/tmp_581262692/main.java:157: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_581262692/main.java:159: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_581262692/main.java:163: error: class, interface, or enum expected static int cacheHits2, cacheMisses2; ^ /root/JavaX-Caches/tmp_581262692/main.java:165: error: class, interface, or enum expected Scored<GlyphInfo> recognizeGlyph(BWImage img, bool fullSearch) { ^ /root/JavaX-Caches/tmp_581262692/main.java:167: error: class, interface, or enum expected GlyphInfo info = glyphInfos.get(md5); ^ /root/JavaX-Caches/tmp_581262692/main.java:168: error: class, interface, or enum expected if (info != null || !fullSearch || fullSearchMap == null) ret fullScored(info); ^ /root/JavaX-Caches/tmp_581262692/main.java:169: error: class, interface, or enum expected if (useCache2) { ^ /root/JavaX-Caches/tmp_581262692/main.java:171: error: class, interface, or enum expected if (result != null) { ++cacheHits2; ret result; } ^ /root/JavaX-Caches/tmp_581262692/main.java:171: error: class, interface, or enum expected if (result != null) { ++cacheHits2; ret result; } ^ /root/JavaX-Caches/tmp_581262692/main.java:171: error: class, interface, or enum expected if (result != null) { ++cacheHits2; ret result; } ^ /root/JavaX-Caches/tmp_581262692/main.java:173: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_581262692/main.java:176: error: class, interface, or enum expected for (BWImage cImg : keys(fullSearchMap)) { ^ /root/JavaX-Caches/tmp_581262692/main.java:178: error: class, interface, or enum expected best.put(fullSearchMap.get(cImg), sim); ^ /root/JavaX-Caches/tmp_581262692/main.java:179: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_581262692/main.java:181: error: class, interface, or enum expected if (useCache2) ^ /root/JavaX-Caches/tmp_581262692/main.java:183: error: class, interface, or enum expected ret result; ^ /root/JavaX-Caches/tmp_581262692/main.java:184: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_581262692/main.java:189: error: class, interface, or enum expected } ^ 97 errors