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

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

/root/JavaX-Caches/tmp_2122969138/main.java:1: error: class, interface, or enum expected static File playRandomSoundFromFreesoundOrg(S query) { ^ /root/JavaX-Caches/tmp_2122969138/main.java:3: error: class, interface, or enum expected S url = "https://freesound.org/search/?q=" + urlencode(query); ^ /root/JavaX-Caches/tmp_2122969138/main.java:4: error: class, interface, or enum expected S html = loadPage(url); ^ /root/JavaX-Caches/tmp_2122969138/main.java:5: error: class, interface, or enum expected L<S> tok = htmlTok(html); ^ /root/JavaX-Caches/tmp_2122969138/main.java:6: error: class, interface, or enum expected LL<S> tags = findContainerTagWithParams(tok, 'a, class := 'mp3_file); ^ /root/JavaX-Caches/tmp_2122969138/main.java:6: error: unclosed character literal LL<S> tags = findContainerTagWithParams(tok, 'a, class := 'mp3_file); ^ /root/JavaX-Caches/tmp_2122969138/main.java:6: error: <identifier> expected LL<S> tags = findContainerTagWithParams(tok, 'a, class := 'mp3_file); ^ /root/JavaX-Caches/tmp_2122969138/main.java:6: error: unclosed character literal LL<S> tags = findContainerTagWithParams(tok, 'a, class := 'mp3_file); ^ /root/JavaX-Caches/tmp_2122969138/main.java:7: error: class, interface, or enum expected L<S> tag = random(tags); ^ /root/JavaX-Caches/tmp_2122969138/main.java:8: error: class, interface, or enum expected if (tag == null) null; ^ /root/JavaX-Caches/tmp_2122969138/main.java:9: error: class, interface, or enum expected L<S> duration = first(findContainerTagWithParams( ^ /root/JavaX-Caches/tmp_2122969138/main.java:10: error: unclosed character literal subList(tok, indexOfSubList(tok, tag)-1), 'span, class := 'duration)); ^ /root/JavaX-Caches/tmp_2122969138/main.java:10: error: <identifier> expected subList(tok, indexOfSubList(tok, tag)-1), 'span, class := 'duration)); ^ /root/JavaX-Caches/tmp_2122969138/main.java:10: error: unclosed character literal subList(tok, indexOfSubList(tok, tag)-1), 'span, class := 'duration)); ^ /root/JavaX-Caches/tmp_2122969138/main.java:11: error: class, interface, or enum expected printStruct(+duration); ^ /root/JavaX-Caches/tmp_2122969138/main.java:12: error: class, interface, or enum expected S mp3 = "https://freesound.org" + getTagParam(second(tag), "href"); ^ /root/JavaX-Caches/tmp_2122969138/main.java:13: error: class, interface, or enum expected File mp3File = programFile(urlencode(mp3)); ^ /root/JavaX-Caches/tmp_2122969138/main.java:14: error: class, interface, or enum expected if (fileLength(mp3File) == 0) ^ /root/JavaX-Caches/tmp_2122969138/main.java:16: error: class, interface, or enum expected playMP3(mp3File); ^ /root/JavaX-Caches/tmp_2122969138/main.java:17: error: class, interface, or enum expected ret mp3File; ^ /root/JavaX-Caches/tmp_2122969138/main.java:18: error: class, interface, or enum expected } ^ 21 errors