← Home
For problem statement at 1000-1999/1800-1899/1870-1879/1877/problemA.txt this is a correct solution, but verifier at 1000-1999/1800-1899/1870-1879/1877/verifierA.go ends with All 100 tests passed can you fix the verifier? ```go
package main

import (
	"bufio"
	"fmt"
	"os"
)

func main() {
	in := bufio.NewReader(os.Stdin)
	out := bufio.NewWriter(os.Stdout)
	defer out.Flush()

	var t int
	fmt.Fscan(in, &t)
	for ; t > 0; t-- {
		var n int
		fmt.Fscan(in, &n)
		sum := 0
		for i := 0; i < n-1; i++ {
			var a int
			fmt.Fscan(in, &a)
			sum += a
		}
		fmt.Fprintln(out, -sum)
	}
}
```