How do I fix the following problem?
I am not intentionally using a double but I'm guessing the function sqrt() in the cmath library is a double because this is the line the error occurs on?
Error: converting to 'int' from 'double'
Is there a way to make the sqrt function be an int? If so, how do I do this?