Runtime error on coding blocks IDE but working on Eclipse