You're trying to call a function that doesn't exist.
The function sqrt does not take an int. You are trying to give it an int. Your compiler has three sqrt functions it knows about (more recent compilers have more). One takes a float. One takes a double. One takes a long double.
The compiler is not psychic. It cannot guess which of these functions you actually meant to use. You will have to tell it.