Revising quadratic equation

#include
#include<math.h>
using namespace std;
int main() {
int t;
cin >> t;
while(t–){
int a,b,c;
cin >> a >> b >> c;

int d = b*b - (4*a*c); 

int f1 =  (-b + sqrt(d))/(2*a);
int f2 =  (-b - sqrt(d))/(2*a);

if(f1>0 && f2>0){
	cout << "Real and distinct \n" <<  f2 <<  " " <<f1  << endl;
}
else if(f1  == 0 && f2 == 0){
    cout << "Real and equal \n" <<  f1 * f2 << endl;
}
else{
    cout << "imaginary"<< endl;
}

}
return 0;
}

what’s wrong in tis code