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

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

/root/JavaX-Caches/tmp_1619013786/main.java:1: error: class, interface, or enum expected !752 ^ /root/JavaX-Caches/tmp_1619013786/main.java:6: error: class, interface, or enum expected replaceToken(tok, "push_back", "add"); ^ /root/JavaX-Caches/tmp_1619013786/main.java:8: error: class, interface, or enum expected jreplace(tok, "int main()", "p"); ^ /root/JavaX-Caches/tmp_1619013786/main.java:11: error: class, interface, or enum expected jreplace(tok, "using namespace std;", ""); ^ /root/JavaX-Caches/tmp_1619013786/main.java:12: error: class, interface, or enum expected jreplace(tok, "#include <*>", ""); ^ /root/JavaX-Caches/tmp_1619013786/main.java:15: error: class, interface, or enum expected jreplace(tok, "list<", "new LinkedList<"); ^ /root/JavaX-Caches/tmp_1619013786/main.java:16: error: class, interface, or enum expected jreplace(tok, "vector<", "new ArrayList<"); ^ /root/JavaX-Caches/tmp_1619013786/main.java:17: error: class, interface, or enum expected jreplace(tok, "deque<*> *;", "LinkedList<$3> $4 = cppLinkedList("); // TODO ^ /root/JavaX-Caches/tmp_1619013786/main.java:19: error: class, interface, or enum expected jreplace(tok, "*.resize(", "resizeCollection($1, 0,"); ^ /root/JavaX-Caches/tmp_1619013786/main.java:21: error: class, interface, or enum expected jreplace(tok, "copy(*.begin(), *.end(), *.begin())", "cppCopy($3, $15)"); ^ /root/JavaX-Caches/tmp_1619013786/main.java:24: error: class, interface, or enum expected jreplace(tok, "cout << * << endl", "print($4)"); ^ /root/JavaX-Caches/tmp_1619013786/main.java:26: error: class, interface, or enum expected print(); ^ /root/JavaX-Caches/tmp_1619013786/main.java:27: error: class, interface, or enum expected print("!752\n\n" + join(tok)); ^ /root/JavaX-Caches/tmp_1619013786/main.java:28: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1619013786/main.java:32: error: class, interface, or enum expected for (int n = 0; n < 10000; n++) { ^ /root/JavaX-Caches/tmp_1619013786/main.java:32: error: class, interface, or enum expected for (int n = 0; n < 10000; n++) { ^ /root/JavaX-Caches/tmp_1619013786/main.java:32: error: class, interface, or enum expected for (int n = 0; n < 10000; n++) { ^ /root/JavaX-Caches/tmp_1619013786/main.java:34: error: class, interface, or enum expected if (i < 0) { ^ /root/JavaX-Caches/tmp_1619013786/main.java:36: error: class, interface, or enum expected ret; ^ /root/JavaX-Caches/tmp_1619013786/main.java:37: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1619013786/main.java:39: error: class, interface, or enum expected S expansion = expandRefs(out, subList); ^ /root/JavaX-Caches/tmp_1619013786/main.java:40: error: class, interface, or enum expected clearAllTokens(tok.subList(i, i+l(tokin)-2)); ^ /root/JavaX-Caches/tmp_1619013786/main.java:41: error: class, interface, or enum expected tok.set(i, expansion); ^ /root/JavaX-Caches/tmp_1619013786/main.java:42: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1619013786/main.java:44: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1619013786/main.java:49: error: class, interface, or enum expected for (int i = 1; i < l(tok)-2; i += 2) { ^ /root/JavaX-Caches/tmp_1619013786/main.java:49: error: class, interface, or enum expected for (int i = 1; i < l(tok)-2; i += 2) { ^ /root/JavaX-Caches/tmp_1619013786/main.java:49: error: class, interface, or enum expected for (int i = 1; i < l(tok)-2; i += 2) { ^ /root/JavaX-Caches/tmp_1619013786/main.java:52: error: class, interface, or enum expected tok.set(i, x); ^ /root/JavaX-Caches/tmp_1619013786/main.java:53: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1619013786/main.java:56: error: class, interface, or enum expected } ^ 31 errors