Download server/tasks/task_medium_wrong_operator/task.json from SanketAI/chiforge: direct link, hf CLI and curl.
- Browser
- Download file 576 Bytes
-
https://huggingface.co/spaces/SanketAI/chiforge/resolve/main/server/tasks/task_medium_wrong_operator/task.json
- Command line
-
hf download hf://spaces/SanketAI/chiforge/server/tasks/task_medium_wrong_operator/task.json
-
curl -L -o task.json https://huggingface.co/spaces/SanketAI/chiforge/resolve/main/server/tasks/task_medium_wrong_operator/task.json
576 Bytes
| { | |
| "name": "task_medium_wrong_operator", | |
| "difficulty": "medium", | |
| "description": "Fix the carry-out logic in the full adder. The cout uses the wrong Boolean operator in its majority gate expression.", | |
| "bug_type": "logic", | |
| "hint": "The cout expression uses XOR (^) where it should use AND (&). Compare against the standard majority function.", | |
| "expected_sim_output": "a b cin | sum cout\n-------------------\n0 0 0 | 0 0\n0 0 1 | 1 0\n0 1 0 | 1 0\n0 1 1 | 0 1\n1 0 0 | 1 0\n1 0 1 | 0 1\n1 1 0 | 0 1\n1 1 1 | 1 1" | |
| } | |