我这个评测为啥是RE?求助大佬……
#include<bits/stdc++.h>
using namespace std;
int main()
{
string a,b,ans;
int tl=0,sum=0;
for(int i=0;i<62;i++)
{
int j;
cin>>ans;
for(j=0;ans[j+1]!=',';j++)
a[j]=ans[j];
j+=2;
for(;ans[j+1];j++)
b[j]=ans[j];
if(a=="Sweep the floor"||a=="Clean the table") tl+=20;
else if(a=="Clean the windows") tl+=15;
else if(a=="Cook the meal") tl+=25;
else if(a=="Wash the car") tl+=35;
else if(a=="Get the mail") tl+=10;
if(b=="Sweep the floor"||b=="Clean the table") tl+=20;
else if(b=="Clean the windows") tl+=15;
else if(b=="Cook the meal") tl+=25;
else if(b=="Wash the car") tl+=35;
else if(b=="Get the mail") tl+=10;
if(tl>60) sum++;
}
cout<<sum<<endl;
return 0;
}