Liberary Problem

#include
int main() {
int a,b,c,r,rr;
cin>>a>>b>>c;
r=((-b)+sqrt(b^2)-(4ac))/(2a);
rr=((-b)+sqrt(b^2)+(4
ac))/(2a);
d=(bb)-4a*c;
if(d==0){
cout<<“Real and Equal”;
if(r>rr){
cout<<rr<<" “<r;
}
else{
cout<<r<<” “<<rr;
}
}
else if(d>0){
cout<<“Real and Distinct”;
if(r>rr){
cout<<rr<<” “<r;
}
else{
cout<<r<<” “<<rr;
}
}
else{
cout<<” Imaginary";
}

return 0;

}

this is my code Revising Quadratic Equation
but compiler showing cin ,cout not declared

hi @yashtripathi6969_0cd127807d833066 write using namespace std before main

now it’s showing error for ‘sqrt’

hi @yashtripathi6969_0cd127807d833066 add
#include <bits/stdc++.h> for including all headers

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.