āMemory limit exceededā and āCompilation errorā in Code Playground
What causes a program to return these messages? Iāve never seen these while trying to run programs through Netbeans or via command line, so Iām assuming these are specific to the Code Playground. I suspected that āMemory limit exceededā might have been caused by a mistake in implementing a recursive method (i.e., maybe the message masked a StackOverflowError), but a test program I made to intentionally trigger that returned a StackOverflowError with stacktrace and āTime limit exceededā instead. So I still have no idea what the underlying problem is. āCompilation errorā is even more confusing, because I came across it when trying to run a program which had previously compiled correctly and had not been modified. It worked when I ran it again, so it seems like whatever problem there is is actually happening at runtime (and is probably somehow tied to output from the RNG). If itās relevant, Iām using the iOS app and coding in Java.