I got a contradiction. Help me to understand it. It is about answer by Sándor Kovács of a question https://mathoverflow.net/questions/55526/example-of-a-variety-with-k-x-mathbb-q-cartier-but-not-cartier
Kovács gave an example $X$. Basically this $X$ is a toric variety. It is not hard to calculate class group of $X$. For any toric variety class group is generated by tor-invariant divisors. For $X$ there are three such divisors. Set theoretically they are defined by equations $x^2=0$, $y^2=0$ and $z^2=0$. But those functions have zero of order two on corresponding divisors. So it is better to write
$$D_1 = \frac{1}{2} div( x^2 )$$ $$D_2 = \frac{1}{2} div( y^2 )$$ $$D_3 = \frac{1}{2} div( z^2 )$$
Relations between these divisors are generated by monomials. $$D_1 + D_2 = div (xy) = 0$$ $$2 D_3 = div(z^2) = 0$$ $$ \dots $$
Relations are as follows $D_1 + D_2$, $D_2 + D_3$, $D_3 + D_1$, $2D_1$, $2D_2$, $2D_3$.
Evidently the class group which is generated by $D_1$, $D_2$ and $D_3$ modulo relations is just $\mathbb{Z} / 2 \mathbb{Z}$. After tensoring with $\mathbb{Q}$ it becomes 0.
So the $K_X$ is a $\mathbb{Q}$ divisor which is just zero. But $\pi^* K_X$ is not zero as a $\mathbb{Q}$ divisor (it follows from Kovács calculations).
Question: What is wrong?
You are right, there was a tiny mistake in my answer, although it did not change anything. The degree of $V$ is $4$, not $2$, but as you point out the calculation still leads to getting $\dfrac 12 E$.
Furthermore, since you calculated that $K_X$ generates the class group $\mathbb Z/2\mathbb Z$, it shows the original claim that $K_X$ is not Cartier, but $2K_X$ is.
For the record, $\dfrac 12E$ is not integral despite any calculation. You can say that $E$ is linearly equivalent to twice an integral divisor, but that is not the same. One has to be careful distinguishing between divisors and divisor classes!