submit_code
Submit source code solutions to programming problems on the Orange Juice Online Judge. Specify the problem ID, programming language, and your code to evaluate your solution.
Instructions
Submit code to the Online Judge for a specific problem.
problem_id: the internal system ID of the problem.
language: string such as "C", "C++", "Python3".
code: the source code to submit.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"problem_id": "<problem_id>",
"code": "<code>",
"language": "<language>"
},
"name": "submit_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| problem_id | Yes | ||
| code | Yes | ||
| language | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |