Help needed in MIN MAX STRING

which line?
“You now have a 100% reproducible testcase, and the compiler-flags needed to expose the error in your code; use gdb to debug it :slight_smile:
ok,Thanks

But can you please still tell why it is not taking x as input in the 4th test case

https://www.codechef.com/viewsolution/36686753
please help me in this code this done by using hashing but getting tle