{
"source_code": "#include <stdio.h>\n\nint main(void) {\n char name[10];\n scanf(\"%s\", name);\n printf(\"hello, %s\\n\", name);\n return 0;\n}",
"language": "C",
"stdin": "world",
"expected_output":"hello, world\n"
}
curl --location --request POST '/judge/submit' \
--header 'Authorization: Bearer 131Fa67D3C52f8d27BbDb777eC23dE3Bb68A24109Fb4c46Cd78471fAa3f9d529' \
--header 'Content-Type: application/json' \
--data-raw '{
"source_code": "#include <stdio.h>\n\nint main(void) {\n char name[10];\n scanf(\"%s\", name);\n printf(\"hello, %s\\n\", name);\n return 0;\n}",
"language": "C",
"stdin": "world",
"expected_output":"hello, world\n"
}'
{
"code": 0,
"msg": "string",
"data": {
"title": "string",
"description": "string",
"input": "string",
"output": "string",
"sample_input": "string",
"sample_output": "string",
"hint": "string",
"tags": [
"string"
]
}
}