Built but not run

When I try to build the file it gets build but when I try to run it starts run mind the windows stops running it tells to close program