ChatGPT doesn't generate code and getting stuck mid response

Sure enough, when having gpt write out some code using ^ instead of < or >, it got past the hiccup just fine. Weirdly, though, in C++ this only applied to the brackets in the code itself, in the header it printed them just fine.