For problem statement at 1000-1999/1000-1099/1000-1009/1002/problemC2.txt this is a correct solution, but verifier at 1000-1999/1000-1099/1000-1009/1002/verifierC2.go ends with candidate failed verifier: invalid output on state 0 run 1: empty output (output="")
exit status 1 can you fix the verifier? package main
type Qubit = int
const One Qubit = 1
func M(q Qubit) Qubit {
return q
}
func H(q Qubit) {}
var c int
func Solve(q Qubit) int {
c++
if c&1 == 1 {
if M(q) == One {
return 1
}
return -1
}
H(q)
if M(q) == One {
return 0
}
return -1
}
func main() {}