what you mean with this? i tried cases like name_ _name and _. Those cases print Error! like it should be.
PD:
excuse me, i dont know how to put code in the forum in the right way u.u. Yes, I include those libraries
i dont know why my code is still throwing WA or TLE, i might be ignoring a casse maybe? dont think so, i read the problem statement a lot of times.
PD: excuse me for my english, im trying my best
edit: sorry, i made a mistake, the libraries I include are iostream, cstdio and string, take the link to my code in ideone http://ideone.com/9yK50H hope be useful. idk if i am ignoring a test case. The code in ideone is the right one