Another thing about compiler, if your input(source code) is stupid and not follow the expected format, it will outright refuse to generate output for you, no matter how much you ask or whatever trick you pull.
With LLM, if your input is stupid, the llm may/may not nudge you and happy to continue with that input and gives it 100% effort.