结果显示编译错误,求大神找出错误
#include<bits/stdc++.h>
using naamespace std;
int main(){
int a,b;
char c;
cin>>a>>b;
cin>>c;
if(b==0&&c=='/'){
cout<<"Divided by zero!"<<endl;
return 0;
}
if(c=='+')
cout<<a+b<<endl;
else if(c=='-')
cout<<a-b<<endl;
else if(c=='*')
cout<<a*b<<endl;
else if(c=='/'){
if(b==0){
cout<<"Divided by zero!"<<endl;
return 0;
}
cout<<a/b<<endl;
}
else
cout<<"Invalid operator!"<<endl;
return 0;
}