Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Error de compilación
# command-line-arguments ./main.go:3:6: func main must have no arguments and no return values ./main.go:3:11: undefined: num1 ./main.go:3:17: undefined: num2 ./main.go:5:11: undefined: num1 ./main.go:5:18: undefined: num2 ./main.go:6:2: too many arguments to return have (int) want () |
||
#2 |
Error de compilación
# command-line-arguments ./main.go:3:6: func main must have no arguments and no return values ./main.go:3:11: undefined: num1 ./main.go:3:17: undefined: num2 ./main.go:5:11: undefined: num1 ./main.go:5:18: undefined: num2 ./main.go:6:2: too many arguments to return have (int) want () |
||
#3 |
Error de compilación
# command-line-arguments ./main.go:3:6: func main must have no arguments and no return values ./main.go:3:11: undefined: num1 ./main.go:3:17: undefined: num2 ./main.go:5:11: undefined: num1 ./main.go:5:18: undefined: num2 ./main.go:6:2: too many arguments to return have (int) want () |
||
#4 |
Error de compilación
# command-line-arguments ./main.go:3:6: func main must have no arguments and no return values ./main.go:3:11: undefined: num1 ./main.go:3:17: undefined: num2 ./main.go:5:11: undefined: num1 ./main.go:5:18: undefined: num2 ./main.go:6:2: too many arguments to return have (int) want () |
||
#5 |
Error de compilación
# command-line-arguments ./main.go:3:6: func main must have no arguments and no return values ./main.go:3:11: undefined: num1 ./main.go:3:17: undefined: num2 ./main.go:5:11: undefined: num1 ./main.go:5:18: undefined: num2 ./main.go:6:2: too many arguments to return have (int) want () |
package main func main(num1, num2){ var result = 0 result = num1 + num2 return result }