fork download
  1. package main
  2. import "fmt"
  3.  
  4. func main(){
  5. x := uint32(64)
  6. fmt.Print(uint64(1 << 65 - 1 << x - 1))
  7. }
  8.  
  9. //https://pt.stackoverflow.com/q/288646/101
Compilation error #stdin compilation error #stdout 0s 4360KB
stdin
Standard input is empty
compilation info
# _/home/Nn3DOj
./prog.go:6: constant 36893488147419103232 overflows uint64
stdout
Standard output is empty