Wrote /root/JavaX-Caches/tmp_412311033/main.java - 4406 bytes (written=4406, should be 4406)
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_72831780 /root/JavaX-Caches/tmp_412311033/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_412311033/main.java:1: error: class, interface, or enum expected
!636
^
/root/JavaX-Caches/tmp_412311033/main.java:3: error: expected
!auto-import
^
/root/JavaX-Caches/tmp_412311033/main.java:12: error: class, interface, or enum expected
main {
^
/root/JavaX-Caches/tmp_412311033/main.java:16: error: class, interface, or enum expected
while (true) {
^
/root/JavaX-Caches/tmp_412311033/main.java:18: error: class, interface, or enum expected
in = in.trim();
^
/root/JavaX-Caches/tmp_412311033/main.java:20: error: class, interface, or enum expected
if (in.equals("restart")) {
^
/root/JavaX-Caches/tmp_412311033/main.java:22: error: class, interface, or enum expected
learner.restart();
^
/root/JavaX-Caches/tmp_412311033/main.java:23: error: class, interface, or enum expected
continue;
^
/root/JavaX-Caches/tmp_412311033/main.java:24: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_412311033/main.java:29: error: class, interface, or enum expected
String guess = learner.processIn(in);
^
/root/JavaX-Caches/tmp_412311033/main.java:30: error: class, interface, or enum expected
if (guess != null && guess.length() != 0) {
^
/root/JavaX-Caches/tmp_412311033/main.java:32: error: class, interface, or enum expected
String ok = readLine("\nOK (y/n)? ");
^
/root/JavaX-Caches/tmp_412311033/main.java:33: error: class, interface, or enum expected
ok = ok.toLowerCase().trim();
^
/root/JavaX-Caches/tmp_412311033/main.java:34: error: class, interface, or enum expected
boolean yes = ok.startsWith("y") || ok.startsWith("j");
^
/root/JavaX-Caches/tmp_412311033/main.java:35: error: class, interface, or enum expected
if (yes) {
^
/root/JavaX-Caches/tmp_412311033/main.java:39: error: class, interface, or enum expected
} else {
^
/root/JavaX-Caches/tmp_412311033/main.java:48: error: class, interface, or enum expected
out = out.trim();
^
/root/JavaX-Caches/tmp_412311033/main.java:49: error: class, interface, or enum expected
learner.processInOut(in, out);
^
/root/JavaX-Caches/tmp_412311033/main.java:50: error: class, interface, or enum expected
System.out.println("OK. " + in + " => " + out);
^
/root/JavaX-Caches/tmp_412311033/main.java:51: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_412311033/main.java:55: error: class, interface, or enum expected
static String readLine(String prompt) {
^
/root/JavaX-Caches/tmp_412311033/main.java:57: error: class, interface, or enum expected
return system_in.nextLine();
^
/root/JavaX-Caches/tmp_412311033/main.java:58: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_412311033/main.java:62: error: class, interface, or enum expected
Matcher m = p.matcher(s);
^
/root/JavaX-Caches/tmp_412311033/main.java:63: error: class, interface, or enum expected
List list = new ArrayList();
^
/root/JavaX-Caches/tmp_412311033/main.java:64: error: class, interface, or enum expected
while (m.find())
^
/root/JavaX-Caches/tmp_412311033/main.java:66: error: class, interface, or enum expected
return list.toArray(new BigInteger[list.size()]);
^
/root/JavaX-Caches/tmp_412311033/main.java:67: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_412311033/main.java:71: error: class, interface, or enum expected
for (int i = 0; i < a.length; i++)
^
/root/JavaX-Caches/tmp_412311033/main.java:71: error: class, interface, or enum expected
for (int i = 0; i < a.length; i++)
^
/root/JavaX-Caches/tmp_412311033/main.java:71: error: class, interface, or enum expected
for (int i = 0; i < a.length; i++)
^
/root/JavaX-Caches/tmp_412311033/main.java:73: error: class, interface, or enum expected
return true;
^
/root/JavaX-Caches/tmp_412311033/main.java:74: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_412311033/main.java:152: error: class, interface, or enum expected
}
^
34 errors