有一个WA,哪里错了?
#include <iostream>
using namespace std;
int main(){
int a1,a2,b1,b2,c1,c2,d1,d2,e1,e2,f1,f2,g1,g2;
cin>>a1>>a2>>b1>>b2>>c1>>c2>>d1>>d2>>e1>>e2>>f1>>f2>>g1>>g2;
int a,b,c,d,e,f,g;
a=a1+a2;
b=b1+b2;
c=c1+c2;
d=d1+d2;
e=e1+e2;
f=f1+f2;
g=g1+g2;
if (a > 8){
cout << 1;
}
else if (b > 8){
cout << 2;
}
else if (c > 8){
cout << 3;
}
else if (d > 8){
cout << 4;
}
else if (e > 8){
cout << 5;
}
else if (f > 8){
cout << 6;
}
else if (g > 8){
cout << 7;
}
else{
cout << 0;
}
return 0;
}