gaokao 2020 Q11

gaokao · China · shanghai 5 marks Curve Sketching Range and Image Set Determination
Let $a \in \mathbb{R}$. If there exists a function $f ( x )$ with domain $\mathbb{R}$ that satisfies both ``for any $x _ { 0 } \in \mathbb{R}$, the value of $f \left( x _ { 0 } \right)$ is either $x _ { 0 } ^ { 2 }$ or $x _ { 0 }$'' and ``the equation $f ( x ) = a$ has no real solutions'', find the range of $a$ as $\_\_\_\_$
$( - \infty , 0 ) \cup ( 0,1 ) \cup ( 1 , + \infty )$
Let $a \in \mathbb{R}$. If there exists a function $f ( x )$ with domain $\mathbb{R}$ that satisfies both ``for any $x _ { 0 } \in \mathbb{R}$, the value of $f \left( x _ { 0 } \right)$ is either $x _ { 0 } ^ { 2 }$ or $x _ { 0 }$'' and ``the equation $f ( x ) = a$ has no real solutions'', find the range of $a$ as $\_\_\_\_$