Yes, undefined means that there are no answers. When you have an undefined slope, it means the slope is infinite. Infinity is an undefined term. So is negative infinity. If your answer is either of these, then the problem is undefined.
This specific problem has an answer.