{
"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 '/ai/judge/submit' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdXRob3JpemVkIjp0cnVlLCJleHAiOjE3NDk0OTMwMTEsInVpZCI6M30.ZILhTAGVYhJN-lN0VU09JktCzok7UjjwUFVcGJna1Y0' \
--header 'Content-Type: application/json' \
--data '{
"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"
]
}
}