void cannot be used in this context.

I’m new to coding can someone please see where I went wrong. the problem is on line 42.

You try to declare a “void” inside a “void”, just get it out there :smile:

Can see where the problem is, but where is line 42? Can you please reformat your code here:

No idea what IDE you’re using but I’d look at getting a better one that formats your code properly.

1 Like