I can't seem to get this to compile for nothing; I'm new to this c++ any help out there?

```
#include <iostream>
int main()
{
//declare variables
double average = 0;
double sum = 0;
double array[10];
int k;
// User Input and Total of number input
for (k =0; k < 10; k++)
{
cout << "Enter Number: " << (k + 1) << end1;
cin >> array[k];
sum = sum + array[k];
}
average = sum/10;
for (k = 0; k < 10; k++)
{
cout << "The average of the numbers entered are: " << average << end1;
}
return ( 0 )
}
```