Shows wrong answer in codeblocks compiler but works finr using sublime tex
#include
using namespace std;
int main() {
signed int a,b,c;
int root1,root2;
cin>>a>>b>>c;
if(a!=0){
int deter = (bb) - (4a*c);
if (deter >=0){
root1 = ((-1)b + deter)/(2a);
root2 = ((-1)b - deter)/(2a);
}
if (deter == 0) {
cout<<“Real and Equal”<<endl;
cout<<root1<<" “<<root2;
}
if (deter > 0) {
cout<<“Real and Distinct”<<endl;
cout<<root1<<” "<<root2;
}
if (deter < 0) {
cout<<“Imaginary”<<endl;
}
}
return 0;
}