#include<iostream>
using namespace std;
int main()
{
double a=0;//月工资
double b=0;//总工资
double c=0;//平均工资
const int year = 6;
for ( int i = 0; i <= year; i++)
{
cout << "请输入第" << i+1 <<"个月工资";
cin >> a;
b += a;
}
c = b/year;
cout << "平均工资是:" << c << endl;
问题那里没报错,这是什么原因啊