The code executor tasks can be used to execute a given code and retrieve the result it produced on the standard output.
The code to execute.
A JSON object with the following fields:
- returncode (int) – the return code of the executed code
- stdout (string) – the content of the standard output, if any (optional)
- stderr (string) – the content of the standard error, if any (optional)
The following example is a Python program printing Hello World!
on the standard output:
print('Hello World!', end='')
{
"returncode": 0,
"stdout": "Hello World!",
"stderr": ""
}
- Ada (6.1)
- Algol68 (2.8)
- Bash (4.4)
- C (GCC 6.3)
- C++ (G++ 6.3)
- Go (1.7)
- Java (OpenJDK 8)
- Lua (5.3)
- NodeJS (4.8.2)
- PHP (7.0)
- Prolog (7.2.3)
- Python (3.5.3-1)
- Rexx (3.6)
- Rust (1.24.1)
- Tcl (8.6.6)