Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "Which statement best describes using metrics::distance; inside a function?" on CodeWiki (https://codewiki.com/practice/mcq/cpp/namespaces/using-declaration-scope/).
Context (verbatim from the page):
"""
Which statement best describes using metrics::distance; inside a function?
It introduces the selected name or overload set into that scope.
It copies every member of metrics into the function.
It creates a new namespace named distance.
It changes the linkage of metrics::distance to internal.
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in C++. Where you are unsure, say so.