The domain of the function $f(x)=\dfrac{1}{\sqrt{[x]^2-[x]-2}}$ is (Here $[x]$ denotes the greatest integer not exceeding the value of $x$)
- A
$(-\infty,-2)\cup(1,\infty)$
- B
$(-\infty,-2)\cup(0,\infty)$
- C
$(-\infty,-2)\cup(2,\infty)$
- D
$(-\infty,-1)\cup[3,\infty)$