I can't pass testcases

code compilation is correct, output is correct . After submitting it says failed testcases .
and what we have to do with the first line of input in this question ?Can you plz explain?

https://ide.codingblocks.com/s/291533 .this the code,

u need to handle t test cases
while(t–) {
take input fro this test case
do computation
print
endl
}

Can someone help me with code??