It appears that the integer variable K is only declared with CHEQ enabled, hence the error message. This is a bug.
Perhaps you should consider a different CHARMM release, or an alternate compiler.
_________________________
Rick Venable
computational chemist