You are given a function
compile(s: String): Integer which returns
s could be compiled and anything other than
0 if it failed (the resulting code is not important).
- General code-golf rules apply.
- There is no strict output format; as long as it's readable and understandable it's ok.
- If these 5 languages are not enough for you then you can add your own favourites and you'll be rewarded with extra stars (★) (that do nothing).
Note1: the compiler is up to date with the latest standard of whatever language it's designed for.