Ouch, you're really stuck with some basic mistakes. You should try simple things one at a time rather than doing so much. As others have said, the problem isn't the compiler, it's your code, so you should be posting on a more appropriate forum such as
this newbie forum. Anyway, to put you out of your misery...:
/*This program gets the ages of 5 kids and averages them*\
should be
/* This program gets the ages of 5 kids and averages them */
Also, don't include .h files unless that's what you really want:
#include <iostream> // not #include <iostream.h>
Furthermore, some of your stream operations are in the wrong direction
cout << "First student's age:";
cin >> age1;
cout << "Second student's age:";
cin >> age2;
cout << "Third student's age:"; // not cout >> "Third student's age:";
cin >> age3;
cout << "Fourth student's age:"; // not cout >> "Fourth student's age:";
cin >> age4;
cout << "Fifth student's age:"; // not cout >> "Fifth student's age:
cin >> age5;
[...]
cout << "The average age of all five students is:" << AverageAge; // not cout >> "The average age ...
Finally, it is standard for main() to return an int, so it should start with
and end with
Returning 0 typically indicates the program ran successfully. Check something like POSIX standards for examples of other return codes.