The Fortran standard sqrt intrinsic has always had a prototype of “SQRT(x)” where X is a REAL or Complex. In order use an integer you would need to first convert it.
Though, I’m not sure how you’re getting this particular error. The code as shown should get a link error (undefined reference to ‘sqrt’) and adding an ‘implicit none’ will give a syntax error that ‘sqrt’ is not defined.