Biggest number formation

https://ide.codingblocks.com/s/227780 , my code works for single testcase, whats error in my code for multiple testcases.

add endline character after each test case