what did i do wrong
#include <iostream>
#include <cmath>
int main ()
{
using namespace std;
int ages[3];
ages[0]=25;
ages[1]=23;
ages[2]=21;
cout << ages[1] + ages[3];
return 0;
}
Tried to get the 4th elem of a 3 elem array?
Oh haha, thank you, I can't believe I didn't notice that.