Recently, a TA of mine wrote
$$ \sum_{i=0}^n \sqrt x_i $$
to represent the sum
$$ \sqrt {x_0 + x_1 + \cdots + x_{n-1} + x_n}. $$
Is this an incorrect use of summation notation? My instinct is that the above sum is better represented by the following:
$$ \sqrt {\sum_{i=0}^n x_i} $$
Which is correct?