i created function "foreach" and it should prints values of array but it tells me this "no matching function for call to \'foreach(std::array