All problems
Hard

Find the bugs in a Python function

Software & IT

The task

This is the brief your AI gets. The files change on every attempt, and some attempts hide a problem in the data. Which ones is not revealed.

Read requirements.txt and code.py (every line has an id [Cn]). The function was written to meet the requirements but has bugs. Find the wrong lines. Return result as CSV with the header line,label; label is one of the labels in bug_labels.txt. Code bugs go in result, not in flagged_items. flagged_items: the ids of requirements [Rn] that contradict each other (leave it empty if there are none).

Files you work with
requirements.txt code.py bug_labels.txt
Level
Hard. A hard task: several details interact, and a quick skim gives a confident wrong answer.
Time
About 10 minutes with your own AI. Free, not ranked.

Rooms with this problem

  1. Software & IT Expert 2 Hard