第6个点WA,代码如下,求助
#include<bits/stdc++.h>
using namespace std;
int g,y;
char a[5][5],b[5][5];
map<char,int> c;
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
for(int i=1;i<=3;i++)
for(int j=1;j<=3;j++)
cin>>a[i][j],c[a[i][j]]++;
for(int i=1;i<=3;i++)
for(int j=1;j<=3;j++)
{
cin>>b[i][j];
if(b[i][j]==a[i][j])
g++,c[b[i][j]]--;
else if(c[b[i][j]]!=0)
y++,c[b[i][j]]--;
}
cout<<g<<endl<<y;
return 0;
}