Fit the value

Report a typo

Correct the data type of the variable a so that the desired value fits into it. Note that you shouldn't use unnecessarily large data types.

Tip: Check the table from the theory step to find the type with the appropriate range.

This problem uses the reflect package within the hidden main function to check if you used the expected integer data type for this task. However, don't be scared! You are not required to use the reflect package in your code to solve this task.
Write a program in Go
package main

import (
"fmt"
"reflect"
)

// nolint: gosimple // <- DO NOT delete this comment!
func solve() interface{} {
// Correct the data type of the variable 'a' so that the desired value fits into it
// But you should not use unnecessarily large data types
var a ?

a = -1000 // nolint: gomnd // <- DO NOT delete this comment!

return a
}
___

Create a free account to access the full topic