Ta có: \(x+2y+3x=0\Leftrightarrow x=-\left(2y+3z\right)\)
Lại có: \(2xy+6yz+3xz=0\Leftrightarrow x\left(2y+3z\right)+6yz=0\)
\(\Leftrightarrow-\left(2y+3z\right)\left(2y+3z\right)+6yz=0\Leftrightarrow-\left(2y+3z\right)^2+6yz=0\)
\(\Leftrightarrow\left(2y+3z\right)^2-6yz=0\Leftrightarrow4y^2+12yz+9z^2-6yz=0\)
\(\Leftrightarrow4y^2+6yz+9z^2=0\Leftrightarrow\left(2y+\dfrac{3z}{2}\right)^2+\dfrac{27z^2}{4}=0\)
\(\Leftrightarrow\left\{{}\begin{matrix}\left(2y+\dfrac{3z}{2}\right)^2=0\\\dfrac{27z^2}{4}=0\end{matrix}\right.\) \(\Rightarrow y=z=0\Rightarrow x=0\)
\(\Rightarrow S=\dfrac{\left(-1\right)^{2019}-1^{2017}+\left(-1\right)^{2015}}{1^{2018}+2.0^{2016}+0^{2014}+2}=\dfrac{-1-1+-1}{1+0+0+2}=\dfrac{-3}{3}=-1\)