internal reference failed on case 1: runtime error: exit status 1 # command-line-arguments ./487E.go:143:18: cannot use min64(res, segT[l]) (value of type int64) as int value in assignment ./487E.go:143:24: cannot use res (variable of type int) as int64 value in argument to min64 ./487E.go:146:18: cannot use min64(res, segT[r]) (value of type int64) as int value in assignment ./487E.go:146:24: cannot use res (variable of type int) as int64 value in argument to min64 ./487E.go:150:11: cannot use res (variable of type int) as int64 value in return statement input: 5 6 3 46 9 63 38 26 1 2 2 3 3 4 4 5 1 3 5 2 C 1 8 A 5 2 A 3 5 exit status 1