Skip to content

rohi-devs/CodeForcesRunner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi-Language Code Runner

A versatile Go-based tool to compile, execute, and verify the output of source code files written in multiple programming languages — Go, C++, Rust, Java, and Python — against expected outputs.


Features

  • Automatic language detection based on source file extension
  • Supports compilation and execution for:
    • Go (.go)
    • C++ (.cpp, .cc, .cxx)
    • Rust (.rs)
    • Java (.java)
    • Python (.py)
  • Input/output redirection from/to files
  • Compares actual output with expected output and shows colorful, aligned diffs in terminal
  • Optional build directory cleanup (--cleanup)
  • Verbose logging for debugging (--verbose)
  • Stores compiled binaries/class files inside a build folder

Compile & Install

go build -o cf-runner main.go
sudo mv ./cf-runner /usr/bin

Usage

cf-runner [--cleanup] [--verbose] <source_file> <input_file> <output_file> <expected_output_file>

ScreenShots

image image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published