WONT IDENTIFY ERRORS

I am having difficult to identify the errors in this program. Please help.


#include "stdafx.h"
#include <iostream>
using namespace std;


int main()
{
int pollution_level[6];
int average;
int counter =0;

while (counter<=6)
{
cout<<"Enter pollution level for day "<<counter<<" range (1-100): ";
cin>>pollution_level[counter];
average = average + pollution_level[counter];
}
cout<<endl;
cout<< "The average pollution level over those 6 days was :"<<average/6<<endl;

return 0;
}
Please use code tags
http://www.cplusplus.com/articles/z13hAqkS/

initialize average to zero
Topic archived. No new replies allowed.