Let \(f:R\to R\) and \(g:R\to R\) be defined as
\(f(x)=\begin{cases}x+a, & x<0\\ |x-1|, & x\ge 0\end{cases}\) and \(g(x)=\begin{cases}x+1, & x<0\\ (x-1)^2+b, & x\ge 0\end{cases}\),
where a, b are non-negative real numbers. If \((g\circ f)(x)\) is continuous for all \(x\in R\), then \(a+b\) is equal to ____________.