\(sin\alpha+cos\alpha=a\Rightarrow\left(sin\alpha+cos\alpha\right)^2=a^2\)
\(\Rightarrow sin^2\alpha+cos^2\alpha+2sin\alpha.cos\alpha=a^2\)
\(\Rightarrow1+2sin\alpha.cos\alpha=a^2\)
\(\Rightarrow sin\alpha.cos\alpha=\dfrac{a^2-1}{2}\)
\(\Rightarrow m=1;n=2\Rightarrow m-n=-1\)