run — focus on solving contest problems, not typing commands
run -f <filename> [options]
The run command is a shortcut to compile and/or execute solutions for programming contest problems.
It helps reduce repetitive typing and simplifies file organization by automatically handling execution details such as:
- language detection
- input/output redirection
- compilation or execution flags
The languages c, c++ and python have support.
Specifies the source file containing the solution to be executed.
Specifies the absolute or relative path of the source file.
Useful when multiple files with the same name exist in a directory.
Specifies the programming language explicitly.
If omitted, the language is automatically inferred from the file extension.
Additional flags passed to the compiler or interpreter. Flags prefixed with '-' must be preceted with backslash key.
Uses input.txt as the standard input.
Redirects the program output to output.txt.
Equivalent to using both --input and --output.