the "f" for female is not being recognized so it is not outputting what it should and also the count statement is giving out an incorrect format could someone give me some pointers as to what im doing wrong
#include<iostream>
#include<string>
using namespace std;
int main(){
int femalecount=0,malecount=0,total;
string race,office,sex;
for(int i=0; i<2; i++)
{
cout<<"\nwhat is your sex?? answer using f(female) or m(male) ";
cin>>sex;
cout<<"\nwhat is your race?? answer using b(black) or w(white) ";
cin>>race;
cout<<"\ndo you work in a office?? y(yes) n(no)";
cin>>office;
if((sex=="F")||(sex=="m") && race=="w" && office=="y" )
{
cout<<"\nyou are allowed to enter the clan ";
cout<<endl;
}
else
{
cout<<"\nyou cannot join the clan ";
}
if ((sex=="f")||(sex=="m")&&race=="w" && office=="y" ){
femalecount=femalecount+1;
malecount=malecount+1;
total=malecount+femalecount;
}
}
cout<<"\nthe num
ber of persons allowed to join the clan are "<<total;
}