Help me in solving LBCC21 problem

My issue

My code

#include <stdio.h>
int main() 
{
  int t;
  scanf("%d",&t); 
  while(t--)
  {
  int P;
  scanf("%d",&P);
  if(P<100)
  {
      printf("\n%d",P);
  }
  else if((P%100)<=10)
  {
      printf("\n%d",(P/100)+(P%100));
  }
  else
  {
      printf("\n-1");
  }
   }
return 0;
}

Learning course: Solve Programming problems using C
Problem Link: CodeChef: Practical coding for everyone