Skip to content

Conversation

balababa
Copy link
Contributor

@balababa balababa commented Dec 14, 2020

In docker image judge0-v1120

  1. language_id for C is 48, 49, 50 or 75.
  2. Redundant "\n" after "%s" in "printf("hello, %s\n", name)" that will lead to
{
    "stdout": null,
    "time": null,
    "memory": null,
    "stderr": null,
    "token": "68080f57-f159-4e9d-b26f-633ef36c957e",
    "compile_output": "main.c:6:10: warning: missing terminating '\"' character [-Winvalid-pp-token]\n  printf(\"hello, %s\n         ^\nmain.c:6:10: error: expected expression\nmain.c:7:1: warning: missing terminating '\"' character [-Winvalid-pp-token]\n\", name);\n^\nmain.c:9:2: error: expected '}'\n}\n ^\nmain.c:3:16: note: to match this '{'\nint main(void) {\n               ^\n2 warnings and 2 errors generated.\n",
    "message": null,
    "status": {
        "id": 6,
        "description": "Compilation Error"
    }
}

in 75(Clang 7.0.1), or

{
    "error": "some attributes for this submission cannot be converted to UTF-8, use base64_encoded=true query parameter"
}

in 48, 49, 50(GCC)

1.  language_id for C (Clang 7.0.1) is 75.
2.  Redundant "\n" after "%s" in "printf(\"hello, %s\n\", name)"  that will lead to compilation error.
@hermanzdosilovic hermanzdosilovic merged commit ef29a7a into judge0:master Dec 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants