It seems that you hava a old installation of mingw on your system.
This are necessary steps, you HAVE to perform them, don't think, that reinstalling is a good thing, you have to remove the old software first:
1) uninstall Codeblocks
2) Clear your system by uninstalling all what has to do with mingw in the system manager Start->Control Panel->Programs and Features (don't know how this is called in italian)
3) delete all folder s that are called mingw (like c:\Mingw)
4) Reinstall Codeblocks 16.01 with mingw and fortran
greetings