I am running this code on my text editor sublime text and its working perfectly fine. But its not working here despite the fact that on compiling I am getting the right output.Please help me

#include
using namespace std;
int main() {
int a,b,c;
cin>>a>>b>>c;
int z;
z= bb - 4ac;
int ans=0;
int inc=1;
while(ans
ans<=z){
ans=ans+inc;
}
ans=ans-inc;
int rootz= ans;
int x1= (-b-rootz) / (2a);
int x2= (-b+rootz) / (2
a);
if(z>0){
cout<<" Real and distinct “<<endl;
cout<<x1<<” “<<x2<<endl;
}
if(z=0){
cout<<” Real and equal “<<endl;
cout<<x1<<” “<<x2<<endl;
}
if(z<0){
cout<<” Imaginary "<<endl;
}
return 0;
}

@shresth_2000
there are few mistakes in your code

  1. for z>0 print “Real and Distinct” D of distinct should be capital and there should not be any space in the beginning
  2. check line 21 it should be if(z==0) “==” not “=”
    3)for z==0 print “Real and Equal” E of equal should be capital and there should not be any space in the beginning.
  3. for z<0 print “Imaginary” there shouldn’t be any space in the beginning.

@shresth_2000
There is the updated code https://ide.codingblocks.com/s/292475
please check here

@shresth_2000
Please mark this doubt as resolved. You got 100 points for this question.