here is my code for the problem STRHH (half of half) http://cpp.sh/2lwasif set t=1 as test case the process stops, similarly if i set t=2 it stop after 1 test case, please help me where i am getting wrong...
Please post your code inline. After you paste it, hightlight it all and select the preformatted text button.
Use fflush(stdin)
Why? That has undefined behaviour.