In the first case, I would probably write: I was confused: What should I write? However you do it, you certainly need some punctuation between "confused" and "what". Alternatively you could say: I was confused about what to / what I should write.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Cute572I want to know why we don't use question mark in such context you have explained. I have seen this type before but i don't know the exact reason for usage.