79737402

Date: 2025-08-16 18:30:25
Score: 1.5
Natty:
Report link

// this will solve the error

package example

import "strconv"

var a int = 0

func Some() string {
    incr(&a)
    return "example" + strconv.Itoa(a)
}

func incr(a *int) {       // we used pointer here
    *a++
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Shantanu Pawar