Run Details #712

Score

0

Correct (≥100)

0/1

Incorrect (<100)

1

Median Time

5380.0ms

Tokens Used

365

Cost

269µ$

Run Date: 2026-03-03 00:03:26
Coding question results (1)
0302_python_gcd:0 Incorrect
Score: 0 • 5380ms • 365 tokens • 269µ$
Question: Write Python 3.12 code only. Define exactly one function named gcd_checked(a, b). It must return the greatest common divisor of two integers. Raise TypeError if either argument is not an int. Raise ValueError if either argument is <= 0. Do not use any imports (no numpy, requests, or other libraries). Sandbox note: dunder attribute access is blocked (for example, type(x).__name__). Avoid names/attributes starting with '__'. Expected output format: - Return exactly one fenced Markdown code block starting with ```python and ending with ```. - Put only valid Python code inside that block (no prose before/after). - Use 4 spaces for indentation (not tabs). - Do not return JSON and do not wrap code in a "function" key. Sample input/output behavior: - gcd_checked(54, 24) -> 6 Task: Write a Python 3.12 function that calculates GCD (greatest common denominator) and raises exceptions for invalid input.
Submitted code
<pre class="markdown">function gcd_checked(a, b):
    # Return exactly one fenced Markdown code block starting with ```python and ending with ```.
    # Put only valid Python code inside that block (no prose before/after).
    # Use 4 spaces for indentation (not tabs).
    # Do not return JSON and do not wrap code in a "function" key.
</pre>

Test case results
# Status Args Expected Actual Error
0 Fail - - - SyntaxError: invalid syntax