$||x|-3|=x+1$
$⇔$\(\left[ \begin{array}{l}|x|-3=x+1\\|x|-3=-x-1\end{array} \right.\)
⇔\(\left[ \begin{array}{l}|x|=x+4\\|x|=2-x\end{array} \right.\)
⇔\(\left[ \begin{array}{l}x=x+4;x=-x-4\\x=2-x;x=x-2\end{array} \right.\)
⇔\(\left[ \begin{array}{l}0x=4(loại);x=-2\\x=1;0x=-2(loại)\end{array} \right.\)
Thử lại: $x=-2(loại);x=1(tm)$
Vậy $S=${$;1$}