Can you find the error due to which its showing wrong answer

Contest Code: PRACTICE Problem Code: FLOW009

COde:
#include<stdio.h>
int main(void)
{
int t;
scanf("\n%d",&t);
while(t–)
{
int q,p;
scanf("\n%d %d",&q,&p);
float d=0;
if(q>1000)
{
d=(float)0.10*(pq);
}
float a;
a=(p
q)-d;
printf("\n%f",a);
}
return 0;
}

Please either format your code or (better!) link to your submission - the forum software has mangled it and it won’t compile! :slight_smile: