I’ve looked over the tutorial and I think you’re using the wrong brackets.
This error message says that you’ve forgotten the semicolon and that’s why the declaration is wrong. Probably because the compiler expected different brackets.
The right code:
float weaponRange{1000};