Detect variables implicitly declared

What prevents you from putting implicit none in every scope? This will catch all implicit local variables, but not module variables. Add explicit declarations for all local variables.

Then follow @Beliavsky’s advice to comment out the use statements one by one, and add use, only for each variable name that triggers an error.