请问我这样写有啥错误呀,看一小时了没看出来,测试样例能过,可是提交不通过 谢谢! func main() { n := 0 fmt.Scanln(&n) arr := []int{} //数组长度n for i := 0; i < n; i++ { t := 0 fmt.Scan(&t) arr = append(arr, t) } m := 0 fmt.Scanln(&m) //操作次数 left := []int{} for i := 0; i < m; i++ { t := 0 fmt.Scan(&t) left = append(left, t) } right := []int{} for i := 0; i < m; i++ { t := 0 fmt.Scan(&t) right = append(right, t) } ope := "" fmt.Scanln(&ope) xarr := []int{} for i := 0; i < m; i++ { t := 0 fmt.Scan(&t) xarr = append(xarr, t) } for i := 0; i < m; i++ { l, r := left[i], right[i] o := ope[i] x := xarr[i] for j := l - 1; j < r; j++ { if o == '=' { arr[j] = x } else if o == '|' { arr[j] = x | arr[j] } else { arr[j] = x & arr[j] } } } for i := 0; i < len(arr)-1; i++ { fmt.Printf("%d ", arr[i]) } fmt.Print(arr[len(arr)-1]) }