Showing wrong output

you’re entering the input wrong.You’re not taking input for t

@shivamgoel150

  1. you had to use long long ans.
  2. you were not printing a new line after each test case.
    I have fixed the code please check
    https://ide.codingblocks.com/s/250817