The question is calculate the value of the integral, $$\int_{-\infty}^{\infty}\frac{dx}{1+x^4}$$ These are the steps that I followed,
Let $x$ be a complex number. So, the poles of the function $f(x)=\frac{1}{1+x^4}$ occur when $x$ is equal to the roots of the equation $1+x^4=0$, i.e $x=e^{i\pi/4},e^{3i\pi/4},e^{5i\pi/4},e^{7i\pi/4}$. They are all poles of degree 4.
Now Cauchy's theorem says that, $$\frac{1}{2\pi i}\int_C dx\ f(x)=\sum_i\text{Res}(f,x_i)$$ where $x_i$ are the poles of $f$ that lies within $C$. I am pretty sure that my poles lie within $-\infty$ and $\infty$. So, I calculated the residues of $\frac{1}{1+x^4}$ at $x=e^{i\pi/4},e^{3i\pi/4},e^{5i\pi/4},e^{7i\pi/4}$ and they are equal to $-\frac14e^{i\pi/4},-\frac14e^{3i\pi/4},-\frac14e^{5i\pi/4},-\frac14e^{7i\pi/4}$. Wolfram Alpha confirms my calculations.
The sum of residues is $$\sum_i\text{Res}=-\frac14e^{i\pi/4}-\frac14e^{3i\pi/4}-\frac14e^{5i\pi/4}-\frac14e^{7i\pi/4}=0$$ and therefore the integral, $$\int_{-\infty}^{\infty}\frac{dx}{1+x^4}$$ must be equal to zero. However, Wolfram alpha says it is not zero but equal to$\frac{\pi}{\sqrt 2}$. Where am I making a mistake?