Error in the quadratic equation code

want to know the error in the quadratic equation code. it is working for every thing still it shows a error.

hey @prachi_poonia, please share code saved in coding blocks ide

#include
using namespace std;
int main() {
float a, b, c, discriminant;
cout << "Enter coefficients a, b and c: ";
cin >> a >> b >> c;
discriminant = bb - 4a*c;

if (discriminant > 0) {
   
    cout << "Roots are real and different." << endl;
    
}

else if (discriminant == 0) {
    cout << "Roots are real and same." << endl;
   
}
else {
    cout << "Roots are complex and different."  << endl;
   
}
return 0;

}

hey @prachi_poonia, check the output format, in case of real and distinct root and real and equal roots,You have to print the roots too. Moreover it should be real and distinct instead of Roots are real and different. and real and equal instead of Roots are real and same and imaginary instead of Roots are complex and different.

while printing roots when D>0, print smaller root first.