Coderunner is a command line tool for compiling and running code. The input is read from an input file and the output is redirected to an output file. Coderunner can be installed on Linux systems and is suitable for competitive programmers. Coderunner supports C++, Java and Python.
Language | Compiler / Interpreter |
---|---|
C++ | GNU G++ |
Java | Default JDK |
Python | Python 3.9.6 |
To install coderunner, click here to download the coderunner Debian file and perform the following steps.
- Navigate to
~/Downloads
to find the downloaded Debian package. - Install coderunner using the command
sudo dpkg -i coderunner.deb
. - Run the command
coderunner --version
to verify installation.
- Create a file for input and name it
input.txt
. - Create a file for output and name it
output.txt
. - For executing C++ code, write the code in a file named
codefile.cpp
and run the commandcoderunner
orcoderunner -l cpp
. - For executing Java code, write the code in a file named
codefile.java
and run the commandcoderunner -l java
. - For executing Python code, write the code in a file named
codefile.python
and run the commandcoderunner -l python
. - The input will be read from
input.txt
and the output will be written tooutput.txt
. - Note that the three files, input file, output file and the code file must be present in the same directory.