HERE IS THE CODE I AM WORKING ON:
int main() {
int a;
cin>>a;
int b;
cin>>b;
int c;
cin>>c;
int D=(b*b)-4(a*c);
int r1=(-b+pow(D,0.5))/2a;
int r2=(-b-pow(D,0.5))/2a;
if(D>0){
cout<<"real and distinct\n";
cout<<r1<<" "<<r2;
}
else if (D=0){
cout<<"real and equal";
r1=-b/2a;
cout<<r1<<" "<<r1;
}
else cout<<"imaginary";
return 0;
}
AND HERE IS THE ERROR:
source.cpp: In function ‘int main()’:
source.cpp:16:19: error: expression cannot be used as a function
16 | int D=(bb)-4(ac);
| ^
source.cpp:18:25: error: unable to find numeric literal operator ‘operator""a’
18 | int r1=(-b+pow(D,0.5))/2a;
| ^~
source.cpp:19:25: error: unable to find numeric literal operator ‘operator""a’
19 | int r2=(-b-pow(D,0.5))/2a;
| ^~
source.cpp:29:9: error: unable to find numeric literal operator ‘operator""a’
29 | r1=-b/2a;
PLS HELP ME FIND MY MISTAKE.THANK YOU.