X1055: Find all nighter in C++

We have a program that keeps track of the hours someone sleeps each night, with an array of seven integers that represent each day of the week. Complete the function allnighter that receives that array and uses a pointer to locate the first instance of an "all nighter" in the array (a day with 0 hours sleep) and returns the pointer. However, if there are no such days found, the function should return nullptr.

Your Answer:

Feedback

Your feedback will appear here when you check your answer.