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

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

/root/JavaX-Caches/tmp_898173587/main.java:2: error: class, interface, or enum expected sclass SuffixTree { ^ /root/JavaX-Caches/tmp_898173587/main.java:4: error: class, interface, or enum expected S fullText; ^ /root/JavaX-Caches/tmp_898173587/main.java:5: error: class, interface, or enum expected int nodeCount; ^ /root/JavaX-Caches/tmp_898173587/main.java:7: error: class, interface, or enum expected Comparator<IFirstChar> childComparator = (a, b) -> a.firstCharOrMinus1()-b.firstCharOrMinus1(); ^ /root/JavaX-Caches/tmp_898173587/main.java:8: error: class, interface, or enum expected new DummyNode dummyNode; ^ /root/JavaX-Caches/tmp_898173587/main.java:10: error: class, interface, or enum expected sinterface IFirstChar { ^ /root/JavaX-Caches/tmp_898173587/main.java:12: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_898173587/main.java:17: error: class, interface, or enum expected public int firstCharOrMinus1() { ret firstChar; } ^ /root/JavaX-Caches/tmp_898173587/main.java:17: error: class, interface, or enum expected public int firstCharOrMinus1() { ret firstChar; } ^ /root/JavaX-Caches/tmp_898173587/main.java:22: error: class, interface, or enum expected CompactTreeSet<IFirstChar> children; // actually, <Node> ^ /root/JavaX-Caches/tmp_898173587/main.java:23: error: class, interface, or enum expected IntBuffer positions; ^ /root/JavaX-Caches/tmp_898173587/main.java:25: error: class, interface, or enum expected *() {} ^ /root/JavaX-Caches/tmp_898173587/main.java:30: error: class, interface, or enum expected positions.add(i); ^ /root/JavaX-Caches/tmp_898173587/main.java:31: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_898173587/main.java:35: error: class, interface, or enum expected children.add(n); ^ /root/JavaX-Caches/tmp_898173587/main.java:36: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_898173587/main.java:38: error: class, interface, or enum expected CompactTreeSet<IFirstChar> makeEmptyChildrenSet(SuffixTree tree) { ret new CompactTreeSet<>(tree.childComparator); } ^ /root/JavaX-Caches/tmp_898173587/main.java:40: error: class, interface, or enum expected public int firstCharOrMinus1() { ^ /root/JavaX-Caches/tmp_898173587/main.java:42: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_898173587/main.java:46: error: class, interface, or enum expected tree.dummyNode.firstChar = c; ^ /root/JavaX-Caches/tmp_898173587/main.java:47: error: class, interface, or enum expected ret (Node) children.find(tree.dummyNode); ^ /root/JavaX-Caches/tmp_898173587/main.java:48: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_898173587/main.java:54: error: class, interface, or enum expected ++nodeCount; ^ /root/JavaX-Caches/tmp_898173587/main.java:55: error: class, interface, or enum expected for i over fullText: { ^ /root/JavaX-Caches/tmp_898173587/main.java:57: error: class, interface, or enum expected if (((i+1) % 1000000) == 0) ^ /root/JavaX-Caches/tmp_898173587/main.java:59: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_898173587/main.java:65: error: class, interface, or enum expected while (!empty(s)) { ^ /root/JavaX-Caches/tmp_898173587/main.java:67: error: class, interface, or enum expected s = s.substring(_n); ^ /root/JavaX-Caches/tmp_898173587/main.java:68: error: class, interface, or enum expected if (_n >= l(node.text)) { // node text exhausted ^ /root/JavaX-Caches/tmp_898173587/main.java:71: error: class, interface, or enum expected ret; ^ /root/JavaX-Caches/tmp_898173587/main.java:72: error: class, interface, or enum expected } else { ^ /root/JavaX-Caches/tmp_898173587/main.java:74: error: class, interface, or enum expected if (n == null) { ^ /root/JavaX-Caches/tmp_898173587/main.java:76: error: class, interface, or enum expected ++nodeCount; ^ /root/JavaX-Caches/tmp_898173587/main.java:77: error: class, interface, or enum expected n.addPosition(position); ^ /root/JavaX-Caches/tmp_898173587/main.java:78: error: class, interface, or enum expected node.addChild(SuffixTree.this, n); ^ /root/JavaX-Caches/tmp_898173587/main.java:79: error: class, interface, or enum expected ret; ^ /root/JavaX-Caches/tmp_898173587/main.java:80: error: class, interface, or enum expected } else ^ /root/JavaX-Caches/tmp_898173587/main.java:82: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_898173587/main.java:86: error: class, interface, or enum expected ++nodeCount; ^ /root/JavaX-Caches/tmp_898173587/main.java:87: error: class, interface, or enum expected nOld.positions = node.positions; ^ /root/JavaX-Caches/tmp_898173587/main.java:88: error: class, interface, or enum expected node.positions = null; ^ /root/JavaX-Caches/tmp_898173587/main.java:89: error: class, interface, or enum expected nOld.children = node.children; ^ /root/JavaX-Caches/tmp_898173587/main.java:90: error: class, interface, or enum expected node.children = null; ^ /root/JavaX-Caches/tmp_898173587/main.java:91: error: class, interface, or enum expected node.text = node.text.substring(0, _n); ^ /root/JavaX-Caches/tmp_898173587/main.java:92: error: class, interface, or enum expected node.addChild(SuffixTree.this, nOld); ^ /root/JavaX-Caches/tmp_898173587/main.java:95: error: class, interface, or enum expected Node nNew = new Node(s); ^ /root/JavaX-Caches/tmp_898173587/main.java:96: error: class, interface, or enum expected ++nodeCount; ^ /root/JavaX-Caches/tmp_898173587/main.java:97: error: class, interface, or enum expected nNew.addPosition(position); ^ /root/JavaX-Caches/tmp_898173587/main.java:98: error: class, interface, or enum expected node.addChild(SuffixTree.this, nNew); ^ /root/JavaX-Caches/tmp_898173587/main.java:99: error: class, interface, or enum expected ret; ^ /root/JavaX-Caches/tmp_898173587/main.java:100: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_898173587/main.java:104: error: class, interface, or enum expected public L<Int> indicesOf(S pattern) { ^ /root/JavaX-Caches/tmp_898173587/main.java:106: error: class, interface, or enum expected getIndicesOf(out, root, pattern, 0); ^ /root/JavaX-Caches/tmp_898173587/main.java:107: error: class, interface, or enum expected ret out.asVirtualList(); ^ /root/JavaX-Caches/tmp_898173587/main.java:108: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_898173587/main.java:112: error: class, interface, or enum expected while true { ^ /root/JavaX-Caches/tmp_898173587/main.java:114: error: class, interface, or enum expected iPattern += n; ^ /root/JavaX-Caches/tmp_898173587/main.java:115: error: class, interface, or enum expected if (iPattern >= lPattern) break; // pattern exhausted - done ^ /root/JavaX-Caches/tmp_898173587/main.java:116: error: class, interface, or enum expected if (n < l(node.text)) ret; // mismatch, exit ^ /root/JavaX-Caches/tmp_898173587/main.java:117: error: class, interface, or enum expected Node child = node.getChild(SuffixTree.this, charAtAsIntOrMinus1(pattern, iPattern)); ^ /root/JavaX-Caches/tmp_898173587/main.java:118: error: class, interface, or enum expected if (child != null) continue with node = child; ^ /root/JavaX-Caches/tmp_898173587/main.java:119: error: class, interface, or enum expected ret; ^ /root/JavaX-Caches/tmp_898173587/main.java:120: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_898173587/main.java:123: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_898173587/main.java:127: error: class, interface, or enum expected collectPositions(out, node); ^ /root/JavaX-Caches/tmp_898173587/main.java:128: error: class, interface, or enum expected ret out.asVirtualList(); ^ /root/JavaX-Caches/tmp_898173587/main.java:129: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_898173587/main.java:133: error: class, interface, or enum expected out.addAll(node.positions); ^ /root/JavaX-Caches/tmp_898173587/main.java:134: error: class, interface, or enum expected fOr (IFirstChar n : node.children) ^ /root/JavaX-Caches/tmp_898173587/main.java:136: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_898173587/main.java:140: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_898173587/main.java:144: error: class, interface, or enum expected fOr (IFirstChar _n : node.children) { ^ /root/JavaX-Caches/tmp_898173587/main.java:146: error: class, interface, or enum expected printNode(indent + " ", "[" + (empty(n.text) ? "end" : quote(n.text.charAt(0))) + "] ", n); ^ /root/JavaX-Caches/tmp_898173587/main.java:147: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_898173587/main.java:152: error: class, interface, or enum expected stack.add(iteratorLL(root)); ^ /root/JavaX-Caches/tmp_898173587/main.java:153: error: class, interface, or enum expected ret iteratorFromFunction_if0(() -> { ^ /root/JavaX-Caches/tmp_898173587/main.java:157: error: class, interface, or enum expected else { ^ /root/JavaX-Caches/tmp_898173587/main.java:159: error: class, interface, or enum expected stack.add((Iterator) iterator(n.children)); ^ /root/JavaX-Caches/tmp_898173587/main.java:160: error: class, interface, or enum expected ret n; ^ /root/JavaX-Caches/tmp_898173587/main.java:161: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_898173587/main.java:164: error: class, interface, or enum expected }); ^ /root/JavaX-Caches/tmp_898173587/main.java:165: error: class, interface, or enum expected } ^ 82 errors