Judge a solution locally
repovive_judge_solutionRun solution code against test cases locally and get per-case verdicts with failing input and expected vs actual output. Validate before submitting to the platform.
Instructions
Run a solution against test cases on this host and return a per-case verdict (Accepted / Wrong Answer / Time Limit Exceeded / Memory Limit Exceeded / Runtime Error / Compilation Error) with the failing input, expected and actual output. Supply either problem_json or test_cases_json. Use this before repovive_submit_solution — it costs nothing and does not touch the platform. Executes the code you pass, so only judge code you trust.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Solution source code | |
| language | No | python | cpp | c | java | javascript | python |
| problem_json | No | A problem object JSON (its testCases are used). Provide this OR test_cases_json. | |
| time_limit_s | No | Per-case wall-clock limit (seconds) | |
| memory_limit_mb | No | Per-case memory cap in MB (enforced on Linux hosts) | |
| test_cases_json | No | A JSON list of {"input", "expectedOutput"}. Provide this OR problem_json. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |