Program hangs up

If the two restrictions aren't met with Allegro and Dev-C++