Quote:
I've tried renaming the variable to "rr" and it still warns me about "r".
THen either it's not looking at the same file as you, or it's a different "r"
Start at the beginning: look at the error message and it'll tell you the exact file, and the line number within the file, and probably a column number as well. In VS, you can double click the error message in the Errors Pane and it'll go directly to the line, otherwise open that file in an editor using the full path it provides and use CTRL+G to go directly to the line.
Which line is it? Where is "r" being used? Where is the declaration relative to that (VS right click will get you to the definition of a function or variable.)
If you rename it and the error message doesn't reflect the name change, you are looking at the wrong code for the problem!