There cannot possibly be an error on that line since it is syntactically correct. Post the smallest and simplest (compilable) program that demonstrates the error, and then state what the error is, in full. Don't bother telling us in detail whatever else you tried; tell us your best attempt in full, and exactly what you want to do.