The thing is that you need to first decide on your definitions.
The thing is that the operation $+$ is defined on a pair of real numbers. Given a number $x$ and a number $y$, then the operation $+$ tells you what the number $x+y$ is.
Using this, you can also calculate what the sum of any finite amount of real numbers is, by adding parentheses:
$$a_1+a_2+\cdots + a_n = a_1+(a_2+(\cdots + (\cdots + a_n))\cdots )$$
Now, because the finite sum is still a real number, you can manipulate it like other real numbers. For example, if $x=a_1 +\cdots + a_n$, and if I know that $a_2 + \cdots + a_n = 1$, then I also know that $x = a_1 + 1$ and I can calculate $x$. That is, algebraic manipulation works on finite sums.
However, there is no clear and natural way to define an infinite sum. What this means is that, for a general sequence $a_1,a_2,\dots$, the sum $$\sum_{i=1}^\infty a_i$$
is NOT defined.
Usually, we ovecome this problem by saying:
For a sequence $a_n$, if the limit $$\lim_{n\to\infty}\sum_{i=1}^na_i$$ exists, then the infinite sum $$\sum_{i=1}^\infty a_i$$ is equal to that limit.
However, with this definition, $1-1+1-1+\dots$ does NOT exist!