1 2 3 4 5 6 7 8 9 10 11 | package main import "fmt" func main() { for i := 0; i < 1000; i++ { fmt.Fprint("\u%d\n", i) } fmt.Println("hello\u0101") } |
cGFja2FnZSBtYWluCgppbXBvcnQgImZtdCIKCmZ1bmMgbWFpbigpIHsKICBmb3IgaSA6PSAwOyBpIDwgMTAwMDsgaSsrIHsKICAgIGZtdC5GcHJpbnQoIlx1JWRcbiIsIGkpCiAgfQogIGZtdC5QcmludGxuKCJoZWxsb1x1MDEwMSIpCn0K
prog.go:7: non-hex character in escape sequence: % prog.go:7: cannot use "\x00%d\n" (type string) as type io.Writer in function argument: string does not implement io.Writer (missing Write method)
-
result: Compilation error (maybe you wish to see an example for Go)



