Find the bounds error in this function, which should total exactly four elements.
C++
int total_four(const int (&values)[4]) {
int total = 0;
for (int index = 0; index <= 4; ++index) {
total += values[index];
}
return total;
}