I pressed the "Run" button, resulting in compilation errors.
In many cases, ChatGPT fails to implement your command correctly. You might get the correct one by repeatedly pressing the "Run" button.
(That's why I think this PoC is impractical...)
I know it may sounds stupid but have you tried using "ChatGPT" itself to resolve the errors instead of having the user run the prompt again? You could put a maximum amount of attempts.