已解决 方宇哲 资深守护 #include<iostream> #include<cstdio> using namespace std; int main() { int a,s=0,sum; cin>>a; while(a>0) { cin>>a; if(a>=80) { sum+=a; s++; } } sum=sum/s; if(sum>80) { cout<<"excellen"; }else { cout<<"good"; } return 0; } 为什么错了?